diff options
author | Danny Baumann <dannybaumann@web.de> | 2016-09-21 16:48:44 +0200 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-07 01:31:33 +0200 |
commit | eedb190e984f4781d19e2a3069777f4550f2e90b (patch) | |
tree | e1ea9e29cc545e9299b5cf11e460fcc55b8a6a8c /res/layout | |
parent | 5c0ab46bd57d502a9ba49f5752608801ffb249ef (diff) | |
download | android_packages_apps_Dialer-eedb190e984f4781d19e2a3069777f4550f2e90b.tar.gz android_packages_apps_Dialer-eedb190e984f4781d19e2a3069777f4550f2e90b.tar.bz2 android_packages_apps_Dialer-eedb190e984f4781d19e2a3069777f4550f2e90b.zip |
Give speed dial entry editor a sane layout.
Change-Id: Ia882540fc66f10fd0b7c5ca8d86ef31ad783a856
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/add_speed_dial_dialog.xml | 82 |
1 files changed, 21 insertions, 61 deletions
diff --git a/res/layout/add_speed_dial_dialog.xml b/res/layout/add_speed_dial_dialog.xml index 7b8296f17..28c8853c8 100644 --- a/res/layout/add_speed_dial_dialog.xml +++ b/res/layout/add_speed_dial_dialog.xml @@ -29,67 +29,27 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical"> + android:padding="24dp" + android:orientation="horizontal"> + + <EditText + android:id="@+id/edit_container" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:minEms="12" + android:hint="@string/speed_dial_input_hint" + android:inputType="phone" + android:singleLine="true" /> + + <ImageButton + android:id="@+id/select_contact" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="8dp" + android:layout_toEndOf="@+id/edit_container" + android:src="@drawable/ic_person_24dp" /> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="0dip" - android:layout_weight="1.0" - android:gravity="center_vertical" - android:baselineAligned="false" - android:paddingStart="10dip" - android:paddingEnd="10dip"> - - <EditText - android:id="@+id/edit_container" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_weight="1.0" - android:orientation="vertical" - android:hint="@string/input_number" - android:inputType="phone" - android:singleLine="true" /> - - <ImageButton - android:id="@+id/select_contact" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="10dip" - android:src="@drawable/ic_person_24dp" /> - </LinearLayout> - - <View - android:background="?android:dividerHorizontal" - android:layout_width="fill_parent" - android:layout_height="1dip" /> - - <LinearLayout - android:orientation="horizontal" - android:layout_width="fill_parent" - android:layout_height="wrap_content" > - - <Button - android:id="@+id/btn_cancel" - android:focusable="true" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_weight="1.0" - android:text="@string/speed_dial_cancel" - style="?android:attr/buttonBarButtonStyle" /> - - <View - android:background="?android:dividerHorizontal" - android:layout_width="1dip" - android:layout_height="fill_parent" /> - - <Button - android:id="@+id/btn_complete" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_weight="1.0" - android:text="@string/speed_dial_ok" - style="?android:attr/buttonBarButtonStyle" /> - </LinearLayout> </LinearLayout> |