diff options
author | Romain Guy <romainguy@android.com> | 2010-01-22 15:08:38 -0800 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2010-01-22 15:11:12 -0800 |
commit | 5e5e6ccc37151c3e5d5272e8c1997955b6bed069 (patch) | |
tree | 6664703f541c26649a512747a02b1aae1b7fbf1b /core/res | |
parent | 2e61d7ca64639ae842a16639975202fd4ad2f4be (diff) | |
download | frameworks_base-5e5e6ccc37151c3e5d5272e8c1997955b6bed069.zip frameworks_base-5e5e6ccc37151c3e5d5272e8c1997955b6bed069.tar.gz frameworks_base-5e5e6ccc37151c3e5d5272e8c1997955b6bed069.tar.bz2 |
Make dialogs look better when their content is small.
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/layout/alert_dialog.xml | 8 | ||||
-rw-r--r-- | core/res/res/values/attrs.xml | 5 |
2 files changed, 10 insertions, 3 deletions
diff --git a/core/res/res/layout/alert_dialog.xml b/core/res/res/layout/alert_dialog.xml index 4a63c5b..231e11c 100644 --- a/core/res/res/layout/alert_dialog.xml +++ b/core/res/res/layout/alert_dialog.xml @@ -18,7 +18,8 @@ */ --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<com.android.internal.widget.WeightedLinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -27,7 +28,8 @@ android:paddingBottom="3dip" android:paddingLeft="3dip" android:paddingRight="1dip" - > + android:majorWeight="0.5" + android:minorWeight="0.8"> <LinearLayout android:id="@+id/topPanel" android:layout_width="match_parent" @@ -143,4 +145,4 @@ android:visibility="gone" /> </LinearLayout> </LinearLayout> -</LinearLayout> +</com.android.internal.widget.WeightedLinearLayout> diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 140ab09..287e3a0 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -2334,6 +2334,11 @@ <attr name="orientation" /> </declare-styleable> + <!-- @hide --> + <declare-styleable name="WeightedLinearLayout"> + <attr name="majorWeight" format="float" /> + <attr name="minorWeight" format="float" /> + </declare-styleable> <!-- ========================= --> <!-- Drawable class attributes --> |