diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-01-09 12:00:30 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-01-09 12:00:30 -0800 |
commit | 613989772f7d7f7317349568a4809bf08b942bd7 (patch) | |
tree | 7f77a9a8561729b6329551e5c4962e41256b5bc8 /api/current.txt | |
parent | 7944704e6c4cc10105838b78d3d8403bf66a066b (diff) | |
download | frameworks_base-613989772f7d7f7317349568a4809bf08b942bd7.zip frameworks_base-613989772f7d7f7317349568a4809bf08b942bd7.tar.gz frameworks_base-613989772f7d7f7317349568a4809bf08b942bd7.tar.bz2 |
Unhide Resources APIs for getting resources at specific densities.
This adds Resources.getDrawableForDensity() and
Resources.getValueForDensity(). These are needed for applications
to correctly retrieve larger icons such as in launcher when
running on a tablet. We had already exposed the APIs to tell the
application which density to use for app icons on the current
device, but didn't unhide these APIs that allowed you to
actually retrieve them.
This is safe to do without introducing a new API level (as long
as we do it soon) because we know these APIs already exist in
Android 4.0, and there is no reason for anyone to be removing
them when building a device.
Change-Id: I5138e5dc908197b66a98d20af73c5374cb5d41d3
Diffstat (limited to 'api/current.txt')
-rw-r--r-- | api/current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index ddf5baf..68fb4bc 100644 --- a/api/current.txt +++ b/api/current.txt @@ -6611,6 +6611,7 @@ package android.content.res { method public int getDimensionPixelSize(int) throws android.content.res.Resources.NotFoundException; method public android.util.DisplayMetrics getDisplayMetrics(); method public android.graphics.drawable.Drawable getDrawable(int) throws android.content.res.Resources.NotFoundException; + method public android.graphics.drawable.Drawable getDrawableForDensity(int, int) throws android.content.res.Resources.NotFoundException; method public float getFraction(int, int, int); method public int getIdentifier(java.lang.String, java.lang.String, java.lang.String); method public int[] getIntArray(int) throws android.content.res.Resources.NotFoundException; @@ -6633,6 +6634,7 @@ package android.content.res { method public java.lang.CharSequence[] getTextArray(int) throws android.content.res.Resources.NotFoundException; method public void getValue(int, android.util.TypedValue, boolean) throws android.content.res.Resources.NotFoundException; method public void getValue(java.lang.String, android.util.TypedValue, boolean) throws android.content.res.Resources.NotFoundException; + method public void getValueForDensity(int, int, android.util.TypedValue, boolean) throws android.content.res.Resources.NotFoundException; method public android.content.res.XmlResourceParser getXml(int) throws android.content.res.Resources.NotFoundException; method public final android.content.res.Resources.Theme newTheme(); method public android.content.res.TypedArray obtainAttributes(android.util.AttributeSet, int[]); |