summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Komalo <benkomalo@google.com>2011-09-01 10:30:13 -0700
committerBen Komalo <benkomalo@google.com>2011-09-01 10:42:45 -0700
commit9cec1becd600273254b319cc311e43fe31794d06 (patch)
treeaf997a9d964be10028d9ae0eb8957ffaea3817b2
parent24e073071df2b61afb6ba8b31206bef71cc22b91 (diff)
downloadpackages_apps_settings-9cec1becd600273254b319cc311e43fe31794d06.zip
packages_apps_settings-9cec1becd600273254b319cc311e43fe31794d06.tar.gz
packages_apps_settings-9cec1becd600273254b319cc311e43fe31794d06.tar.bz2
Misc UI fixes for settings (mostly cryptkeeper)
- fix padding issues in a lot of cryptkeeper screens - fix sizing of clock that didn't fit anymore with the new font - change titles from green to the new holo blue Bug: 5247866 Change-Id: Ib934e9661c32cce26e1af40eaff133bae11f78dc
-rw-r--r--res/layout-land/crypt_keeper_progress.xml2
-rw-r--r--res/layout-sw600dp-land/wifi_settings_for_setup_wizard_xl.xml2
-rw-r--r--res/layout-sw600dp/crypt_keeper_password_entry.xml3
-rw-r--r--res/layout-sw600dp/crypt_keeper_progress.xml9
-rw-r--r--res/layout-sw600dp/wifi_settings_for_setup_wizard_xl.xml2
-rw-r--r--res/layout-sw720dp/date_time_settings_setupwizard.xml2
-rw-r--r--res/layout/crypt_keeper_progress.xml2
-rw-r--r--res/layout/crypt_keeper_status.xml12
-rwxr-xr-xres/values-sw600dp/dimens.xml1
-rw-r--r--res/values/colors.xml11
-rwxr-xr-xres/values/dimens.xml2
11 files changed, 28 insertions, 20 deletions
diff --git a/res/layout-land/crypt_keeper_progress.xml b/res/layout-land/crypt_keeper_progress.xml
index 62fb297..3361603 100644
--- a/res/layout-land/crypt_keeper_progress.xml
+++ b/res/layout-land/crypt_keeper_progress.xml
@@ -30,7 +30,7 @@
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:textSize="30dip"
- android:textColor="#ff99cc00"
+ android:textColor="@color/title_color"
android:text="@string/crypt_keeper_setup_title"
android:gravity="bottom"
/>
diff --git a/res/layout-sw600dp-land/wifi_settings_for_setup_wizard_xl.xml b/res/layout-sw600dp-land/wifi_settings_for_setup_wizard_xl.xml
index 7c5b274..8094b74 100644
--- a/res/layout-sw600dp-land/wifi_settings_for_setup_wizard_xl.xml
+++ b/res/layout-sw600dp-land/wifi_settings_for_setup_wizard_xl.xml
@@ -47,7 +47,7 @@
android:layout_marginLeft="16dip"
android:layout_below="@id/top_padding_layout"
android:textSize="32dip"
- android:textColor="#ff99cc00"
+ android:textColor="@color/title_color"
android:text="@string/wifi_setup_title"
android:gravity="bottom"/>
diff --git a/res/layout-sw600dp/crypt_keeper_password_entry.xml b/res/layout-sw600dp/crypt_keeper_password_entry.xml
index bc2b353..ad8205a 100644
--- a/res/layout-sw600dp/crypt_keeper_password_entry.xml
+++ b/res/layout-sw600dp/crypt_keeper_password_entry.xml
@@ -20,6 +20,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
>
+ <include layout="@layout/crypt_keeper_status" />
+
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -38,6 +40,7 @@
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/encroid"
android:layout_marginTop="37dip"
+ android:paddingLeft="17dip"
android:paddingRight="17dip"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
diff --git a/res/layout-sw600dp/crypt_keeper_progress.xml b/res/layout-sw600dp/crypt_keeper_progress.xml
index b55781a..f958f00 100644
--- a/res/layout-sw600dp/crypt_keeper_progress.xml
+++ b/res/layout-sw600dp/crypt_keeper_progress.xml
@@ -23,6 +23,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
+ android:padding="64dip"
>
<ImageView
android:id="@+id/encroid"
@@ -42,8 +43,9 @@
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
android:textSize="30dip"
- android:textColor="#ff99cc00"
+ android:textColor="@color/title_color"
android:text="@string/crypt_keeper_setup_title"
android:gravity="bottom"
/>
@@ -68,8 +70,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/top_divider"
- android:paddingLeft="152dip"
android:paddingTop="21dip"
+ android:layout_marginLeft="16dip"
+ android:layout_marginRight="16dip"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
@@ -78,7 +81,6 @@
android:id="@+id/bottom_divider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingLeft="152dip"
android:layout_above="@+id/factory_reset"
android:visibility="gone"
>
@@ -96,6 +98,7 @@
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="80dip"
+ android:layout_marginRight="16dip"
android:text="@string/master_clear_button_text"
android:visibility="gone"
/>
diff --git a/res/layout-sw600dp/wifi_settings_for_setup_wizard_xl.xml b/res/layout-sw600dp/wifi_settings_for_setup_wizard_xl.xml
index 9260702..20f5784 100644
--- a/res/layout-sw600dp/wifi_settings_for_setup_wizard_xl.xml
+++ b/res/layout-sw600dp/wifi_settings_for_setup_wizard_xl.xml
@@ -47,7 +47,7 @@
android:layout_marginLeft="16dip"
android:layout_below="@id/top_padding_layout"
android:textSize="32dip"
- android:textColor="#ff99cc00"
+ android:textColor="@color/title_color"
android:text="@string/wifi_setup_title"
android:gravity="bottom"/>
diff --git a/res/layout-sw720dp/date_time_settings_setupwizard.xml b/res/layout-sw720dp/date_time_settings_setupwizard.xml
index 1fc25da..b484472 100644
--- a/res/layout-sw720dp/date_time_settings_setupwizard.xml
+++ b/res/layout-sw720dp/date_time_settings_setupwizard.xml
@@ -34,7 +34,7 @@
android:layout_marginLeft="16dip"
android:layout_alignParentTop="true"
android:textSize="32dip"
- android:textColor="#FF99cc00"
+ android:textColor="@color/title_color"
android:text="@string/date_and_time_settings_title_setup_wizard"
android:gravity="bottom" />
diff --git a/res/layout/crypt_keeper_progress.xml b/res/layout/crypt_keeper_progress.xml
index 9677c3d..35760cf 100644
--- a/res/layout/crypt_keeper_progress.xml
+++ b/res/layout/crypt_keeper_progress.xml
@@ -30,7 +30,7 @@
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:textSize="30dip"
- android:textColor="#ff99cc00"
+ android:textColor="@color/title_color"
android:text="@string/crypt_keeper_setup_title"
android:gravity="bottom"
/>
diff --git a/res/layout/crypt_keeper_status.xml b/res/layout/crypt_keeper_status.xml
index 59d2365..b9c8288 100644
--- a/res/layout/crypt_keeper_status.xml
+++ b/res/layout/crypt_keeper_status.xml
@@ -19,10 +19,10 @@
<!-- Status to show on the left side of lock screen -->
<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
>
<com.android.internal.widget.DigitalClock android:id="@+id/time"
@@ -41,7 +41,7 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="none"
- android:textSize="120sp"
+ android:textSize="@dimen/crypt_clock_size"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/crypt_keeper_clock_background"
android:layout_marginBottom="6dip"
@@ -52,7 +52,7 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="none"
- android:textSize="120sp"
+ android:textSize="@dimen/crypt_clock_size"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/crypt_keeper_clock_foreground"
android:layout_alignLeft="@*android:id/timeDisplayBackground"
diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml
index 9469a99..1fb7e59 100755
--- a/res/values-sw600dp/dimens.xml
+++ b/res/values-sw600dp/dimens.xml
@@ -24,4 +24,5 @@
<dimen name="title_height">48dip</dimen>
<dimen name="content_margin_left">16dip</dimen>
<dimen name="description_margin_top">26dip</dimen>
+ <dimen name="crypt_clock_size">120sp</dimen>
</resources>
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 09f2ca2..2bba937 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -4,9 +4,9 @@
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.
@@ -25,12 +25,11 @@
<color name="memory_dcim">#793A7F</color>
<color name="memory_music">#8E562A</color>
<color name="memory_misc">#7C3030</color>
-
+
<color name="crypt_keeper_clock_background">#ff9a9a9a</color>
<color name="crypt_keeper_clock_foreground">#ff666666</color>
<color name="crypt_keeper_clock_am_pm">#ff9a9a9a</color>
<color name="divider_color">#20ffffff</color>
- <color name="title_color">#ff99cc00</color>
-</resources>
-
+ <color name="title_color">@android:color/holo_blue_light</color>
+</resources> \ No newline at end of file
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index dbe4c32..ffdec52 100755
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -32,4 +32,6 @@
<dimen name="data_usage_chart_optimalWidth">440dip</dimen>
<dimen name="volume_seekbar_side_margin">8dip</dimen>
+
+ <dimen name="crypt_clock_size">100sp</dimen>
</resources>