aboutsummaryrefslogtreecommitdiffstats
path: root/layoutlib_api
Commit message (Collapse)AuthorAgeFilesLines
* 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-0712-0/+643
Change-Id: I8a54705a75d79c743e59c763ed2464408a836ebf