summaryrefslogtreecommitdiffstats
path: root/tools/layoutlib/bridge/resources
Commit message (Collapse)AuthorAgeFilesLines
* Fix nav bar spacing for tablets.Deepanshu Gupta2015-05-182-6/+75
| | | | Change-Id: Ieee2c2174a3041a0f967cc75bbe74d8bf882ced7
* Update nav bar icons.Deepanshu Gupta2015-05-1320-9/+18
| | | | | | | | | | - Add a script to copy the icons from the original source. - Update layout used for the navigation bar to be closer to the original layout. - Update test image with the latest rendering. - Add a nexus 5 landscape device config to help with testing. Change-Id: I0b6674955e0970a6a8cce148b1b7aa61e1752ccd
* Add primitive shadows support to LayoutLibDeepanshu Gupta2014-11-0714-0/+0
| | | | | | | | | | | | | | | The shadows rendered are not the same as rendered by the framework. The main purpose of the shadows here is let the user know when shadows will be cast. Currently rectangular shadows are available in only two intensities. Any elevation below 10dp uses one shadow and any elevation over 10 dp uses the other. Also, even though the code for arbitrary shapes exist, it doesn't quite work yet. No shadows are visible when that code is run. Change-Id: Ie8235ffccf1d3809713f5d8f82afde434817d6b2
* Add time to status bar and fix wifi icon.Deepanshu Gupta2014-08-185-14/+33
| | | | | | Add vector drawable for wifi icon. Also add time to the status bar. Change-Id: I01da833087a607e9bb6ff085929e3844990179f8
* am a4ceb9e6: am 32faabbe: Layoutlib: Update wifi and battery icon for KKDeepanshu Gupta2014-08-186-0/+0
|\ | | | | | | | | * commit 'a4ceb9e64cd1ee6302e41c7799ebb6610af96d0e': Layoutlib: Update wifi and battery icon for KK
| * Layoutlib: Update wifi and battery icon for KKDeepanshu Gupta2014-08-1611-0/+0
| | | | | | | | | | Change-Id: Ic5c80e83366bb7672049a6bf726d11cf6717f400 (cherry picked from commit 59eedf528ca29a32b6d7f358f5076929f8fbb164)
| * Overflow menu popup for Action Bar in Layoutlib [DO NOT MERGE]Deepanshu Gupta2014-04-151-6/+0
| | | | | | | | | | | | | | Adds MenuBuilderAccessor in addition to the cherry-picked changes. Change-Id: Ib7cc314079099c010f7d53849e204db36c410357 (cherry-picked from commit 929eea6bc1824bf98d244550c0984ecf8ea98811)
| * Action bar rendering in layoutlib [DO NOT MERGE]Deepanshu Gupta2014-04-151-4/+3
| | | | | | | | | | | | | | | | | | | | | | This also makes a couple of changes to the framework: 1. ShareActionProvider - Use edit mode to execute activity chooser code. 2. ActionBarImpl - add a new constructor for use by layoutlib. This also relies on some changes to the plugin to pass the correct params. Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2 (cherry-picked from 14bf0cef7eeed572a67c29a328581afac4decc20)
| * Layoutlib: Update the wifi icon in the status bar.Deepanshu Gupta2013-10-147-3/+5
| | | | | | | | | | | | Issue: https://code.google.com/p/android/issues/detail?id=60993 Change-Id: Ia43ed40b42c79f67dcd5809b827d4fecbc823c25
| * Fix layout rendering for RTL localesDeepanshu Gupta2013-09-046-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | This changeset adds the framework resources for RTL locales and mirrors the layout if the application is RTL aware. Use ICU to check the character orientation of the locale - right to left or left to right. Set the layout direction on the top level layout accordingly. Also, load the RTL resources for Nav Bar when the locale is RTL. Change-Id: I1ed0d516ab64120a0abca413ba678036661508f8
* | Add KitKat wifi and battery icons.Deepanshu Gupta2014-08-1345-2/+9
| | | | | | | | | | | | | | | | | | This adds wifi and battery icons for Gingerbread and KitKat. This also improves the icon resolution code by extracting it out in its own class. The resources are now organized such that each API level resource directory is used as a backup for all API levels lower than itself. Change-Id: I937c83638adcc9fa8cd407e0a3023c3abe95530d
* | Update system icon resolution in LayoutLib.Deepanshu Gupta2014-06-2740-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This fixes some bugs with the resolution of icons for Status Bar and Navigation Bar by separating the icons into v21 and v11 directories. An icon is searched in v21 directory by default. For simulating older platforms, v11 directory is searched first and then v21 is used as a fallback. This also adds xxhdpi versions of home, back and recent icons. Change-Id: Ia6eafc83856eacafc4fb0b13d87793d4aa24f106
* | Add navigtaion bar icons to simulate older platforms.Deepanshu Gupta2014-06-2327-0/+0
| | | | | | | | | | | | | | | | | | | | | | LayoutLib can simulate older versions of the platform to a very limited extent. This change adds the old navigtaion bar icons back and moves the latest ones to directories suffixed with "-v21". The code handles this resolution in a very crude way. This also removes a bunch of unused code and fixes some style warnings. Change-Id: Ib6e7bfd8dfb34b2ccd87f660ca979eb5ef14bae7
* | Material navigation bar for layoutlib.Deepanshu Gupta2014-06-1815-0/+0
| | | | | | | | Change-Id: Id65600e5f4ffb3cd0f90c3c710f88d9b668f754f
* | Add overflow menu popup for Action Bar in LayoutlibDeepanshu Gupta2014-04-141-6/+0
| | | | | | | | Change-Id: Ib7cc314079099c010f7d53849e204db36c410357
* | Action bar rendering in layoutlibDeepanshu Gupta2014-04-101-4/+3
| | | | | | | | | | | | | | | | | | | | This also makes a couple of changes to the framework: 1. ShareActionProvider - Use edit mode to execute activity chooser code. 2. WindowDecorActionBar - add a new constructor for use by layoutlib. This also relies on some changes to the plugin to pass the correct params. Change-Id: Ia30fef816afd91ec1e439734d56b59b1323bfee2
* | Manual merge of changes from frameworks/base/toolsDeepanshu Gupta2014-01-277-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Manually merge of following changes: 9cb5f5b5233f2331748d108d71f4b685762f32a7 1cf5df38f4bdafa1beb2674ca548ad6d9650766b 083e3caf66c21f7cc9511db479726c38d90e2d2f 81f74f4bc96ea4266cebe1b785d095558f540800 39e75835399f4d979cf82069dae2bd1ec496fb81 272d1bce798a5fef42cc2ee31f629d00c89f66eb 45f5cd49fa898a59484edfd8e291dbe10df82db2 Change-Id: Ie21ca480ac117e16e28eb554474835b762ccb104
* | Fix layout rendering for RTL localesDeepanshu Gupta2014-01-276-0/+0
| | | | | | | | | | | | | | | | | | | | | | This changeset adds the framework resources for RTL locales and mirrors the layout if the application is RTL aware. Use ICU to check the character orientation of the locale - right to left or left to right. Set the layout direction on the top level layout accordingly. Also, load the RTL resources for Nav Bar when the locale is RTL. Change-Id: Icbb57ee2ac7c6d8dfc34c2f04dce34d820b9b1ed
* | Revert "Move frameworks/base/tools/ to frameworks/tools/"Adam Lesinski2014-01-2717-0/+48
| | | | | | | | This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
* | Move frameworks/base/tools/ to frameworks/tools/Mike Lockwood2013-08-2817-48/+0
|/ | | | Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
* Update layoutlib for jb mr1.Xavier Ducrohet2012-10-1720-8/+4
| | | | | | | | | | | Status bar displayed on all devices. Update logic for displaying nav bar to whether or not device has soft button. Update navigation buttons to new look. Remove battery and signal from navigation bar. Change-Id: I8241d71269a17126218a3062ba727e379a8e6c25
* Setup ActionBars in layoutlib the same way the platform does it.Xavier Ducrohet2012-02-061-6/+4
| | | | | | | | | | | Instead of using a simple ImageView for the icon, this uses the platform layout/action_bar_home which uses a custom class to position and resize the icon (and also supports the Up icon that we don't yet support). This ensures that the icon is properly positionned and sized like on devices. Change-Id: I57432afa82d257bb043247001320b368045d7f55
* new button graphics for layoutlib.Xavier Ducrohet2011-07-119-0/+0
| | | | Change-Id: I12a6bf9df87552321452ca3344449814cd3102bb
* LayoutLib: misc fixes.Xavier Ducrohet2011-02-231-1/+3
| | | | | | | - implement some Paint methods that are needed for 2.x - fix the phone system bar to display the icons on the right. Change-Id: I3a938b14ec9a449dbc23a33303a3c8405a5369a8
* LayoutLib: improved rendering for system/title/action bars.Xavier Ducrohet2011-02-067-11/+13
| | | | Change-Id: I926531e9ad4a7b98e04e23cac3837794f7c89449
* LayoutLib: render system/title/action bars.Xavier Ducrohet2011-02-048-0/+50
Also a few generic fixes in the layoutlib itself to support this. Change-Id: Ie3f24c9056bd3cc72f39f8a4f2c0861be15bff55