From 45cab39eea097bf622cd1ed67d91d2336d78663a Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 2 Oct 2013 17:45:32 -0700 Subject: Tweaking the front cling to support more verbose languages. (Bug 11015051) --- res/layout-land/first_run_cling.xml | 19 ++++++++++++------- res/layout-land/workspace_cling.xml | 6 ++---- res/layout-port/first_run_cling.xml | 19 ++++++++++++------- res/layout-port/workspace_cling.xml | 5 ++--- res/layout/apps_customize_pane.xml | 6 ------ res/values/colors.xml | 2 +- src/com/android/launcher3/Cling.java | 2 +- src/com/android/launcher3/WidgetPreviewLoader.java | 2 +- 8 files changed, 31 insertions(+), 30 deletions(-) diff --git a/res/layout-land/first_run_cling.xml b/res/layout-land/first_run_cling.xml index 3b21e14f6..9baee64b7 100644 --- a/res/layout-land/first_run_cling.xml +++ b/res/layout-land/first_run_cling.xml @@ -25,26 +25,31 @@ android:layout_height="match_parent"> + android:textSize="30sp" + android:gravity="center" /> + android:textSize="16sp" + android:gravity="center" /> diff --git a/res/layout-land/workspace_cling.xml b/res/layout-land/workspace_cling.xml index 08fb8cf23..db33db06f 100644 --- a/res/layout-land/workspace_cling.xml +++ b/res/layout-land/workspace_cling.xml @@ -25,13 +25,11 @@ android:layout_height="match_parent" android:layout_marginStart="25dp" android:layout_marginEnd="25dp" - android:layout_marginTop="20dp" - android:layout_marginBottom="100dp"> + android:layout_marginTop="310dp"> + android:textSize="30sp" + android:gravity="center" /> + android:textSize="16sp" + android:gravity="center" /> diff --git a/res/layout-port/workspace_cling.xml b/res/layout-port/workspace_cling.xml index 38d385896..db33db06f 100644 --- a/res/layout-port/workspace_cling.xml +++ b/res/layout-port/workspace_cling.xml @@ -25,12 +25,11 @@ android:layout_height="match_parent" android:layout_marginStart="25dp" android:layout_marginEnd="25dp" - android:layout_marginTop="20dp" - android:layout_marginBottom="120dp"> + android:layout_marginTop="310dp"> - - diff --git a/res/values/colors.xml b/res/values/colors.xml index e4278d991..dc35a3f68 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -36,5 +36,5 @@ #FF333333 #FFFFFFFF - #FF8BB4E9 + #64b1ea diff --git a/src/com/android/launcher3/Cling.java b/src/com/android/launcher3/Cling.java index 2656ad6a8..de92605d9 100644 --- a/src/com/android/launcher3/Cling.java +++ b/src/com/android/launcher3/Cling.java @@ -327,7 +327,7 @@ public class Cling extends FrameLayout implements Insettable, View.OnLongClickLi } if (mDrawIdentifier.equals(FIRST_RUN_PORTRAIT) || mDrawIdentifier.equals(FIRST_RUN_LANDSCAPE)) { - // Draw the white circle + // Draw the circle View bubbleContent = findViewById(R.id.bubble_content); Rect bubbleRect = new Rect(); bubbleContent.getGlobalVisibleRect(bubbleRect); diff --git a/src/com/android/launcher3/WidgetPreviewLoader.java b/src/com/android/launcher3/WidgetPreviewLoader.java index b1bb1e855..956fd99cd 100644 --- a/src/com/android/launcher3/WidgetPreviewLoader.java +++ b/src/com/android/launcher3/WidgetPreviewLoader.java @@ -469,7 +469,7 @@ public class WidgetPreviewLoader { .getIntrinsicWidth(); final int previewDrawableHeight = previewDrawable .getIntrinsicHeight(); - previewWidth = previewDrawableWidth * cellHSpan; // subtract 2 dips + previewWidth = previewDrawableWidth * cellHSpan; previewHeight = previewDrawableHeight * cellVSpan; defaultPreview = Bitmap.createBitmap(previewWidth, previewHeight, -- cgit v1.2.3