| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Also added some new SceneStatus enums.
Change-Id: I225c58201d81cb1109d1d533fea48b6eacb2e286
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I020342a4fe205161328f22e9dabb0b03343677b5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Iabbd49cdd52419b947b83fb84f9fb3a5d4576471
|
|
|
|
|
|
|
| |
- support for View and LayoutParams
- support for default property value map.
Change-Id: I70028710b1f76329a8bd501428fbd68a14fafa1e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
This is the new API to move to a stateful layoutlib, allowing
for faster actions on an inflated layout.
Change-Id: Ice6324c056efc6e82d5760b5f4e3d40b58938368
|
|
|
|
| |
Change-Id: I744833ec03d0d379ea526c193549f99f25f6811a
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
This is so that other code (like the manifest parser) can use them.
Change-Id: I53be59bbe752e77752e90cedb528f25cf3b3792f
|
|
Change-Id: I8a54705a75d79c743e59c763ed2464408a836ebf
|