summaryrefslogtreecommitdiffstats
path: root/tests/DpiTest/res
Commit message (Collapse)AuthorAgeFilesLines
* New xlarge screen size.Dianne Hackborn2010-04-283-0/+57
| | | | | | | | | | | | | Not complete, only for experimentation at this point. This includes a reworking of how screen size configurations are matched, so that if you are on a larger screen we can select configurations for smaller screens if there aren't any exactly matching the current screen. The screen size at which we switch to xlarge has been arbitrarily chosen; the compatibility behavior has not yet been defined. Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
* Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-299-0/+98
| | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* Allow for screen density drawables in compatibility mode.Dianne Hackborn2009-07-246-0/+0
| | | | | | | | | | | | | | | | | | This change allows us to use drawables that match the current screen density even when being loaded in compatibility mode. In this case, the bitmap is loaded in the screen density, and the bitmap and nine-patch drawables take care of accounting for the density difference. This should be safe for existing applications, for the most part, since they shouldn't really be pulling the bitmap out of the drawable. For the small rare chance of them breaking, it worth getting the correct graphics. Also this will only happen when there is actually a resource of the matching density, and no existing apps should have resources for anything besides the default density (though of course all of the framework resources will be available in the native density). As part of this, the bitmap density API has been changed to a single integer provider the DPI unit density.
* First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-2113-3/+155
| | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
* Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-173-0/+0
| | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* Expand support for different screen sizes.Dianne Hackborn2009-06-264-0/+76
| | | | | | | | | Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-0/+0
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-033-0/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-103-0/+0