OSDN Git Service

Fill FrameLayout children on drop depending on metadata
authorTor Norbye <tnorbye@google.com>
Mon, 21 Feb 2011 23:18:38 +0000 (16:18 -0700)
committerTor Norbye <tnorbye@google.com>
Mon, 21 Feb 2011 23:18:38 +0000 (16:18 -0700)
commit24f957ae68d99dead09cdb6f70f6d1b9c1327aef
treeda5aaad144c897d7a4745f9b5b4c2d0223de60df
parente9d914614f659a96c2aa9b20c9409d3ed857e13b
Fill FrameLayout children on drop depending on metadata

Adds a drop handler to the FrameLaoyut rule which looks up the
metadata for the dropped child, and sets the width and/or height to
fill based on that metadata.  For example, a LinearLayout dropped into
a FrameLayout (or say a ViewFlipper which inherits from it), then the
layout will fill. A button on the other hand will not fill, and an
EditText will fill horizontally but not vertically, and so on.

Change-Id: I65a9379fa7128cc9c68d9bfd1849b0f1dc0f4a86
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/FrameLayoutRule.java