diff options
author | Paul Lawrence <paullawrence@google.com> | 2014-07-16 10:21:04 -0700 |
---|---|---|
committer | Paul Lawrence <paullawrence@google.com> | 2014-07-17 13:29:23 -0700 |
commit | aa05738cd2ea933fde7238b153da1e42421d1b02 (patch) | |
tree | 2693e0ba1edc84681c8fbe0d5009628f7d3e4bbd /res/layout/crypt_keeper_password_entry.xml | |
parent | 5427b9a7990d408df1f2231ec649501f848f7d3d (diff) | |
download | packages_apps_Settings-aa05738cd2ea933fde7238b153da1e42421d1b02.zip packages_apps_Settings-aa05738cd2ea933fde7238b153da1e42421d1b02.tar.gz packages_apps_Settings-aa05738cd2ea933fde7238b153da1e42421d1b02.tar.bz2 |
Final touches to material theme for phones
Fix layout
Improve text color/size
Improve edit box look
Hide status bar at top
Bug: 15328359
Change-Id: Ia0ea75c74b352963ccf47db0ff7c9684adc1f2a3
Diffstat (limited to 'res/layout/crypt_keeper_password_entry.xml')
-rw-r--r-- | res/layout/crypt_keeper_password_entry.xml | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/res/layout/crypt_keeper_password_entry.xml b/res/layout/crypt_keeper_password_entry.xml index ecbfefd..6e99527 100644 --- a/res/layout/crypt_keeper_password_entry.xml +++ b/res/layout/crypt_keeper_password_entry.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- ** -** Copyright 2011, The Android Open Source Project +** Copyright 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. @@ -20,29 +20,36 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical" -> + android:orientation="vertical"> + <include layout="@layout/crypt_keeper_status" /> <LinearLayout - android:layout_height="wrap_content" + android:layout_height="0dp" android:layout_width="match_parent" - android:layout_marginStart="8dip" - android:layout_marginEnd="8dip" - android:orientation="horizontal" - > - <include layout="@layout/crypt_keeper_password_field" /> + android:layout_weight="1" + android:layout_marginStart="@dimen/crypt_keeper_edit_text_margin" + android:layout_marginEnd="@dimen/crypt_keeper_edit_text_margin" + android:orientation="vertical" + android:gravity="center_vertical"> + + <LinearLayout + android:background="@color/crypt_keeper_password_background" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <include layout="@layout/crypt_keeper_password_field" /> + </LinearLayout> + </LinearLayout> + <!-- Emergency call button. Text is set by CryptKeeper.updateEmergencyCallButtonState() --> <Button android:id="@+id/emergencyCallButton" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center" - android:layout_marginTop="16dip" - style="?android:attr/borderlessButtonStyle" - android:textSize="14sp" - android:drawablePadding="6dip" - /> + android:layout_gravity="center_horizontal" + android:layout_marginTop="@dimen/crypt_keeper_emergency_call_space_above" + style="?android:attr/borderlessButtonStyle" /> </LinearLayout> |