OSDN Git Service

ADT/Layoutlib: update API to control how layout expands.
authorXavier Ducrohet <xav@android.com>
Fri, 19 Nov 2010 21:54:48 +0000 (13:54 -0800)
committerXavier Ducrohet <xav@android.com>
Fri, 19 Nov 2010 22:18:55 +0000 (14:18 -0800)
commit018f0ada85957d49db115b11dd630b2e94f9fdfb
tree7e173ccd58484bcf214e1ac803994a90bcd1cb92
parentd59c1f5ad1dc6219fd901940a8c40f320dad5685
ADT/Layoutlib: update API to control how layout expands.

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
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/GraphicalEditorPart.java
eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/ApiDemosRenderingTest.java
ide_common/src/com/android/ide/common/layoutlib/LayoutBridgeWrapper.java
layoutlib_api/src/com/android/layoutlib/api/SceneParams.java