aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/ide/common/rendering/api/Params.java
Commit message (Collapse)AuthorAgeFilesLines
* Add app name/icon and current render locale to the LayoutLib API.Xavier Ducrohet2011-02-041-235/+0
| | | | | | | | | | | | This allows the layoutlib to render system/title/action bars as a window decor like it would look on the device. This can be disabled with RenderParams.setForceNoDecor(). (BTW, Params was renamed RenderParams too) Also minor update to the API by replacing an int with Density since the enum is now accessible to the API and layoutlib. Change-Id: Ic37770a9276d12af90c60199a84b04cb64e7c3a1
* Update the Layoutlib API to contain part of the current config.Xavier Ducrohet2011-01-271-0/+13
| | | | | | | | | | | | | | | | | | Right now only the screen size is needed. We can add more to Params as needed. Since we should use the existing enum classes for this, I moved all the current enum from sdklib into a new jar file called resources.jar. ADT, sdklib, layoutlib_api all depend on it. Changes to resources should always be API compatible and the result should be copied into the in-dev platform branch in prebuilt, similar to layoutlib_api. See the README.txt files in layoutlib_api/ and resources/ Change-Id: I877ba3cad555ec497954bb0866639e51e7751020
* Add min/targetSdkVersion to the LayoutLib API.Xavier Ducrohet2011-01-171-1/+19
| | | | | | | | This will allow some widgets to properly behave based on the minSdkVersion and targetSdkVersion of the project during rendering. Change-Id: I96d432b8b92fbc211ce122da51bd18049708c14f
* Move the resource resolution code into ide-common.Xavier Ducrohet2011-01-171-40/+16
| | | | | | | | | | | Also move the LayoutLib API to use a new class for all resource info instead of 2 maps, one string, and a boolean. The goal is to move resource resolution code into ADT so that we can use it to better display resource information in the UI. Change-Id: Iad1c1719ab0b08d1a7d0987b92d4be1d3a895adf
* LayoutLib API refactoringXavier Ducrohet2010-12-211-0/+228
Change-Id: I40abba4c4f786755c2a1c0e70df4d7bc08e2bcde