diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2014-11-17 23:53:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-17 23:53:13 +0000 |
commit | d85aa17894db4928d010c1590c2c6ea781546230 (patch) | |
tree | e9b9db316c64f17931b45859d9ee9a5b2f29c28e /res/layout | |
parent | 79381a928b998cc45ffeeea624d8bc4b77c6529a (diff) | |
parent | a8bd025d35bdbc2986c192e32468170a2bed365a (diff) | |
download | packages_apps_Settings-d85aa17894db4928d010c1590c2c6ea781546230.zip packages_apps_Settings-d85aa17894db4928d010c1590c2c6ea781546230.tar.gz packages_apps_Settings-d85aa17894db4928d010c1590c2c6ea781546230.tar.bz2 |
Merge "Adding icons to sim color selection in settings UI." into lmp-mr1-dev
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/multi_sim_dialog.xml | 30 | ||||
-rw-r--r-- | res/layout/select_account_list_item.xml | 3 | ||||
-rw-r--r-- | res/layout/settings_color_picker_item.xml | 47 |
3 files changed, 62 insertions, 18 deletions
diff --git a/res/layout/multi_sim_dialog.xml b/res/layout/multi_sim_dialog.xml index c373edd..b17b86e 100644 --- a/res/layout/multi_sim_dialog.xml +++ b/res/layout/multi_sim_dialog.xml @@ -21,7 +21,6 @@ <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="@dimen/sim_dialog_padding" android:orientation="vertical"> <LinearLayout android:id="@+id/type" @@ -33,19 +32,20 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/sim_dialog_margin_top" - android:paddingStart="@dimen/sim_label_padding" - android:text="@string/sim_editor_name" - style="?android:attr/textAppearanceMedium" /> + android:paddingStart="@dimen/sim_content_padding" + android:text="@string/sim_editor_name" /> <EditText android:id="@+id/sim_name" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="true" - android:layout_marginStart="@dimen/sim_content_padding" + android:paddingStart="@dimen/sim_content_padding" android:paddingBottom="@dimen/sim_dialog_margin_bottom" android:hint="@string/wifi_ssid_hint" android:inputType="textNoSuggestions" - android:maxLength="@integer/sim_name_length" /> + android:maxLength="@integer/sim_name_length" + android:textColor="@android:color/black" + style="?android:attr/textAppearanceMedium" /> </LinearLayout> @@ -58,16 +58,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/sim_dialog_margin_top" - android:paddingStart="@dimen/sim_label_padding" - android:text="@string/color_title" - style="?android:attr/textAppearanceMedium" /> + android:paddingStart="@dimen/sim_content_padding" + android:text="@string/color_title" /> <Spinner android:id="@+id/spinner" - android:layout_width="wrap_content" + android:layout_width="@dimen/color_picker_width" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/sim_dialog_margin_top" - android:paddingStart="@dimen/sim_label_padding" /> + android:paddingStart="@dimen/sim_content_padding" /> </LinearLayout> @@ -80,14 +78,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/sim_dialog_margin_top" - android:paddingStart="@dimen/sim_label_padding" + android:paddingStart="@dimen/sim_content_padding" android:text="@string/sim_editor_carrier" /> <TextView android:id="@+id/carrier" android:textColor="@android:color/black" android:layout_width="match_parent" android:layout_height="wrap_content" - android:paddingStart="@dimen/sim_label_padding" + android:paddingStart="@dimen/sim_content_padding" android:paddingBottom="@dimen/sim_dialog_margin_bottom" android:singleLine="true" style="?android:attr/textAppearanceMedium" /> @@ -103,14 +101,14 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/sim_dialog_margin_top" - android:paddingStart="@dimen/sim_label_padding" + android:paddingStart="@dimen/sim_content_padding" android:text="@string/sim_editor_number" /> <TextView android:id="@+id/number" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/sim_dialog_margin_bottom" - android:paddingStart="@dimen/sim_label_padding" + android:paddingStart="@dimen/sim_content_padding" android:singleLine="true" android:textColor="@android:color/black" style="?android:attr/textAppearanceMedium" /> diff --git a/res/layout/select_account_list_item.xml b/res/layout/select_account_list_item.xml index 55484b1..3587e55 100644 --- a/res/layout/select_account_list_item.xml +++ b/res/layout/select_account_list_item.xml @@ -19,8 +19,7 @@ android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?android:attr/selectableItemBackground" - android:padding="4dp" > + android:background="?android:attr/selectableItemBackground" > <ImageView android:id="@+id/icon" android:layout_width="48dp" diff --git a/res/layout/settings_color_picker_item.xml b/res/layout/settings_color_picker_item.xml new file mode 100644 index 0000000..c171950 --- /dev/null +++ b/res/layout/settings_color_picker_item.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:background="?android:attr/selectableItemBackground" > + + <ImageView + android:id="@+id/color_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingRight="8dp" + android:paddingLeft="6dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:layout_gravity="center_vertical" /> + + <TextView + android:id="@+id/color_text" + android:gravity="center_vertical" + android:layout_height="wrap_content" + android:layout_width="0dp" + android:layout_weight="1" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingRight="8dp" + android:paddingLeft="8dp" + android:textColor="@android:color/black" + style="?android:attr/textAppearanceMedium" /> + +</LinearLayout>
\ No newline at end of file |