aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api/src/com/android/layoutlib
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the TV dpi.Xavier Ducrohet2011-06-031-0/+1
| | | | Change-Id: I97fedc69644d83801b50d7882bb759db7089d8f0
* Update the Layoutlib API to contain part of the current config.Xavier Ducrohet2011-01-271-2/+1
| | | | | | | | | | | | | | | | | | 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
* LayoutLib API refactoringXavier Ducrohet2010-12-2120-1317/+27
| | | | Change-Id: I40abba4c4f786755c2a1c0e70df4d7bc08e2bcde
* Fix javadoc for layout lib api.Xavier Ducrohet2010-12-157-24/+19
| | | | Change-Id: I42b835ef2dc34af069567555ce9a4e4ecfcd6639
* Clean up the api around Layoutlib.Xavier Ducrohet2010-12-1010-17/+305
| | | | | | | | | | | | | | | | | | | | | | | | Move (Style/DensityBased)ResourceValue into layoutlib_api and make the API use that instead of the interface. We'll get ride of the interfaces once only obsolete platforms use them. In ide-commons also got rid of LayoutBridgeWrapper and moved the code in LayoutLibrary which does not expose the bridge anymore, and instead expose an API similar to the LayoutBridge class. Updated ADT to use LayoutLibrary directly instead of going through LayoutLibrary.getBridge(). This allows us to hide some things like querying the API level and relying instead on Capabilities (with special handle for legacy bridges). Also added an error message to LayoutLibrary to display why it may have failed to load. Added a check to the API level and don't load layoutlib that are more recent than the client. Change-Id: Ie4e615d8d32485ee577bb88e95cd3f562bf590cb
* LayoutLib API: new log API + updated SceneStatus API.Xavier Ducrohet2010-12-065-29/+69
| | | | Change-Id: I8fe107397c2322cca979e7953d2be5933a59d0bf
* LayoutLib API: SceneResult API clean up.Xavier Ducrohet2010-12-031-23/+74
| | | | Change-Id: I1cb80da55f9ff16d0422eb6c4767448a4691b74b
* LayoutLib API: add capability query.Xavier Ducrohet2010-12-023-5/+62
| | | | | | | Also add a map of new layout params attribute when moving views from one parent to another. Change-Id: If12d861d29f1bb0ec59c15d85439630ebdad4b82
* LayoutLib API: fixed wrong camelcase in API.Xavier Ducrohet2010-12-021-1/+1
| | | | Change-Id: Iddc8681b841d445747f583380c136310d64c41fc
* LayoutLib API: move add/moveChild API back to using index.Xavier Ducrohet2010-12-022-50/+49
| | | | | | Also add an optional data bundle to SceneResult. Change-Id: I9f9d4ca1f1f05d536a87a005a7939a6d42d0d8a4
* LayoutLib API: New SceneStatus enum.Xavier Ducrohet2010-12-011-0/+1
| | | | Change-Id: I1c2ac6ddcabe1faeffe3753735b9f87fde683fd3
* Layoutlib API: updated API for insert/move/remove child.Xavier Ducrohet2010-12-012-20/+92
| | | | | | Also added some new SceneStatus enums. Change-Id: I225c58201d81cb1109d1d533fea48b6eacb2e286
* ADT/Layoutlib: New API to let the caller instantiate the bitmap.Xavier Ducrohet2010-11-302-0/+52
| | | | | | | | | | | | | This allows us to use a bitmap more compatible with SWT. In ADT's case, because the bitmap needs to be converted to SWT before being displayed, we create a BufferedImage using a byte[] instead of a int[] so that we can simply do an array copy. Also, we reuse the generated BufferedImage unless the size changed, which lets us see less GC during animation playback. Change-Id: I0062a4f4442ff6469cf0ad4f501c1fbe8c719400
* ADT: more animation stuff.Xavier Ducrohet2010-11-291-5/+19
| | | | Change-Id: I020342a4fe205161328f22e9dabb0b03343677b5
* ADT: Animation preparation.Xavier Ducrohet2010-11-293-25/+95
| | | | | | | | | | | | | | Update layoutlib API to work better with the new scene locking mechanism (for concurrent renderings), new error types in SceneResult, and updated Animation listener. ADT changes to record the view object in CanvasViewInfo, and the current LayoutScene in ViewHierarchy. Added a test menu item to start an animation. This is temporary and will be fixed later. Change-Id: I67df2d116afdfd23c093e4645d4a0f99695c5d95
* ADT/Layoutlib: update API to control how layout expands.Xavier Ducrohet2010-11-191-8/+30
| | | | | | | | | | | | | | Previous API was a single on/off to let the layouts expand at render time depending on how much space they needed. The new API can now control expansion is horizontal and/or vertical (or not at all) Basic implementation in the editor, with a manual detect of "ScrollView" as top element. We should make the ViewRule handle this somehow. Change-Id: Idc503bc0d1d3df98fbf01cc84625952ca55a8afb
* ADT/GLE: Platform selection when rendering layouts.Xavier Ducrohet2010-11-161-3/+3
| | | | Change-Id: Iabbd49cdd52419b947b83fb84f9fb3a5d4576471
* Update ViewInfo in the layoutlib API.Xavier Ducrohet2010-11-112-21/+47
| | | | | | | - support for View and LayoutParams - support for default property value map. Change-Id: I70028710b1f76329a8bd501428fbd68a14fafa1e
* Make ADT use the new layoutlib API.Xavier Ducrohet2010-11-112-17/+10
| | | | | | | | | | | | | | | | | | | | | | ADT now exclusively use the new API. The older platforms that still use the old API are accessed through a compatibility layer provided by the class LayoutBridgeWrapper that converts the old to the new API (both input and output). The wrapper and the loading code for the bridge have moved to layoutlib_utils, but into the ide.common package. Layoutlib_utils is to be renamed ide-common later. .sdk.LoadStatus has moved into .ide.common too since it's used by the bridge loading code. As we'll move more code into ide-common it's ok to have it there anyway. Also did some minor fix to the API: - missing implementation of ViewInfo - Made a singleton for SUCCESS state of SceneResult. Change-Id: I5e7130ca03b92ad71dc9c293b2ffc40566df645c
* Improvements to the new Layoutlib API.Xavier Ducrohet2010-11-108-157/+566
| | | | | | | | | | | | | Move to classes instead of interfaces so that the layoutlib API code can provide default implementation. This will reduce the testing on the ADT side about whether a method is present for the current API level or not. Also moved all the parameters of startLayout (actually renamed createScene) into a SceneParams class. Change-Id: I58389cd1bed9e79f6825b7c4e5a79206496ca439
* Minor update to the layoutlib API.Xavier Ducrohet2010-11-092-2/+4
|
* New layoutlib API.Xavier Ducrohet2010-11-095-8/+249
| | | | | | | This is the new API to move to a stateful layoutlib, allowing for faster actions on an inflated layout. Change-Id: Ice6324c056efc6e82d5760b5f4e3d40b58938368
* Fix resource issues in ADT.Raphael2010-10-271-0/+1
| | | | Change-Id: I744833ec03d0d379ea526c193549f99f25f6811a
* ADT GLE2: Deal with missing custom view classes.Raphael Moll2010-07-231-8/+8
| | | | | | | | | | - Detect missing view classes and replace them by a MockView. (This alone makes the rendering useful instead of not updating it on error.) - Display the name of the missing view classes. - Make them hot links and display the New Class Wizard to create them. Change-Id: I20b69db5428751c4a6c1367103462b3867fa9c7d
* move the resource enums from the qualifier classes to sdklib.Xavier Ducrohet2010-05-181-0/+15
| | | | | | This is so that other code (like the manifest parser) can use them. Change-Id: I53be59bbe752e77752e90cedb528f25cf3b3792f
* Move LayoutLib API library to sdk.gitXavier Ducrohet2010-01-078-0/+591
Change-Id: I8a54705a75d79c743e59c763ed2464408a836ebf