1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-11 20:15:03 -05:00

Centered next buttons in dialogs.

This commit is contained in:
Sander Bogaert 2011-07-08 12:59:18 +02:00 committed by Andrew Chen
parent 7e4b4c4bc7
commit 7914a14a66
2 changed files with 24 additions and 16 deletions

View File

@ -39,10 +39,16 @@
android:lines="1" android:lines="1"
android:text="@string/account_setup_basics_manual_setup_action"/> android:text="@string/account_setup_basics_manual_setup_action"/>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp">
<Button android:id="@+id/account_dialog_next" <Button android:id="@+id/account_dialog_next"
android:text="@string/next_action" android:text="@string/next_action"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:drawableRight="@drawable/button_indicator_next"/> android:layout_centerInParent="true"
android:drawableRight="@drawable/button_indicator_next" />
</RelativeLayout>
</LinearLayout> </LinearLayout>

View File

@ -25,14 +25,16 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:text="@string/account_setup_basics_manual_setup_action"/> android:text="@string/account_setup_basics_manual_setup_action"/>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp">
<Button android:id="@+id/account_dialog_next" <Button android:id="@+id/account_dialog_next"
android:text="@string/next_action" android:text="@string/next_action"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_centerInParent="true"
android:drawableRight="@drawable/button_indicator_next" /> android:drawableRight="@drawable/button_indicator_next" />
<!-- android:layout_marginBottom="-4dip" </RelativeLayout>
android:layout_alignParentRight="true"
android:layout_centerVertical="false"-->
</LinearLayout> </LinearLayout>