Commit 6139897
Dianne Hackborn
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: I5138e5dc908197b66a98d20af73c5374cb5d41d31 parent 7944704 commit 6139897
File tree
3 files changed
+4
-2
lines changed- api
- core/java/android/content/res
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6611 | 6611 | | |
6612 | 6612 | | |
6613 | 6613 | | |
| 6614 | + | |
6614 | 6615 | | |
6615 | 6616 | | |
6616 | 6617 | | |
| |||
6633 | 6634 | | |
6634 | 6635 | | |
6635 | 6636 | | |
| 6637 | + | |
6636 | 6638 | | |
6637 | 6639 | | |
6638 | 6640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6611 | 6611 | | |
6612 | 6612 | | |
6613 | 6613 | | |
| 6614 | + | |
6614 | 6615 | | |
6615 | 6616 | | |
6616 | 6617 | | |
| |||
6633 | 6634 | | |
6634 | 6635 | | |
6635 | 6636 | | |
| 6637 | + | |
6636 | 6638 | | |
6637 | 6639 | | |
6638 | 6640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | 686 | | |
688 | 687 | | |
689 | 688 | | |
| |||
1032 | 1031 | | |
1033 | 1032 | | |
1034 | 1033 | | |
1035 | | - | |
1036 | 1034 | | |
1037 | 1035 | | |
1038 | 1036 | | |
| |||
0 commit comments