OSDN Git Service

ADT: always give fill_parent to layoutlib.
authorXavier Ducrohet <xav@android.com>
Mon, 13 Dec 2010 22:18:09 +0000 (14:18 -0800)
committerXavier Ducrohet <xav@android.com>
Mon, 13 Dec 2010 22:58:39 +0000 (14:58 -0800)
commit2d55525e583b0c49f4ca435b678f69be11d5256e
tree0ba527df2bfec40bfe46e8bad90e932790bc15e5
parenta0151b285963c68005ed224e525c028003a62135
ADT: always give fill_parent to layoutlib.

If a layout is created for Android 2.3 but then rendered in 1.5 it'll
fail because 1.5 doesn't know what match_parent is.

This change makes the parser given to layoutlib replace on the fly
match_parent with fill_parent.

Change-Id: I45a22dea98388f8f0c5673bdaa9cbbf9a88f5422
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ContextPullParser.java
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/UiElementPullParser.java