From d12b95093770f1a71f60f67be9a5e28277b634a1 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Mon, 23 May 2011 16:44:24 -0700 Subject: Fix 4462497: Make lockscreen preference screen layouts more dynamic This reduces the dependency of LockScreen preference screens on a particular device size by using centering logic instead of absolute offsets/sizes. Change-Id: I6ff9e71dc122e12493148437dda647820ae0f308 --- res/layout-sw600dp-land/choose_lock_pattern.xml | 51 +++++++++------ .../choose_lock_pattern_tutorial.xml | 51 +++++++++------ res/layout-sw600dp-land/confirm_lock_pattern.xml | 74 +++++++++++++++------- res/layout-sw600dp/choose_lock_pattern.xml | 23 ++++--- .../choose_lock_pattern_tutorial.xml | 18 ++++-- res/layout-sw600dp/confirm_lock_pattern.xml | 22 ++++--- 6 files changed, 159 insertions(+), 80 deletions(-) (limited to 'res') diff --git a/res/layout-sw600dp-land/choose_lock_pattern.xml b/res/layout-sw600dp-land/choose_lock_pattern.xml index fc5e787..a32a5fb 100644 --- a/res/layout-sw600dp-land/choose_lock_pattern.xml +++ b/res/layout-sw600dp-land/choose_lock_pattern.xml @@ -21,44 +21,41 @@ android:layout_width="match_parent" android:layout_height="match_parent"> + + android:layout_weight="1" + android:gravity="center_horizontal|center_vertical" + android:orientation="horizontal"> - - - - + + + + - + + + + + + + + diff --git a/res/layout-sw600dp-land/choose_lock_pattern_tutorial.xml b/res/layout-sw600dp-land/choose_lock_pattern_tutorial.xml index 32b452d..1320ba0 100644 --- a/res/layout-sw600dp-land/choose_lock_pattern_tutorial.xml +++ b/res/layout-sw600dp-land/choose_lock_pattern_tutorial.xml @@ -21,33 +21,30 @@ android:layout_width="match_parent" android:layout_height="match_parent"> + + android:layout_weight="1" + android:gravity="center_horizontal|center_vertical" + android:orientation="horizontal"> - - - - + + + + - + - + + + + + + + + > diff --git a/res/layout-sw600dp-land/confirm_lock_pattern.xml b/res/layout-sw600dp-land/confirm_lock_pattern.xml index 04c3e85..ad08e44 100644 --- a/res/layout-sw600dp-land/confirm_lock_pattern.xml +++ b/res/layout-sw600dp-land/confirm_lock_pattern.xml @@ -13,48 +13,78 @@ See the License for the specific language governing permissions and limitations under the License. --> - + + android:layout_weight="1" + android:gravity="center_horizontal|center_vertical" + android:orientation="horizontal"> - - - - + + + + + + + + + +