summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorYoshiaki Naka <yoshiaki.naka@sonymobile.com>2017-08-03 21:20:38 +0900
committerJordan Liu <jminjie@google.com>2017-09-25 12:21:15 -0700
commitdd0dbb10a55f3486f7092f18bea558e32e216865 (patch)
treec5cd03e36e53f230e21df164f19c76a321714e64 /res
parent8ffca3e4b7b42d2449cbc5000130c8e08994e280 (diff)
downloadStk-dd0dbb10a55f3486f7092f18bea558e32e216865.tar.gz
Icon must be placed near the text string on the input screen
A small icon can be displayed on the action bar of the input screen in the current implementation, but it is better to display it near the text string because icon can replace text string if it is self-explanatory icon. The size of text string should also be enlarged. Bug: 64371064 Test: Manual - Verified both with icon and without icon cases. Change-Id: I36a3dde9cc3717bb2910c55004da214d689e4274
Diffstat (limited to 'res')
-rwxr-xr-x[-rw-r--r--]res/layout/stk_input.xml18
1 files changed, 15 insertions, 3 deletions
diff --git a/res/layout/stk_input.xml b/res/layout/stk_input.xml
index 9c3807e..fdc554d 100644..100755
--- a/res/layout/stk_input.xml
+++ b/res/layout/stk_input.xml
@@ -24,11 +24,21 @@
android:orientation="vertical"
android:padding="20dip"
android:layout_gravity="center_horizontal">
+ <ImageView
+ android:id="@+id/icon"
+ android:visibility="gone"
+ android:layout_width="@android:dimen/notification_large_icon_width"
+ android:layout_height="@android:dimen/notification_large_icon_height"
+ android:adjustViewBounds="true"
+ android:layout_gravity="center"
+ android:scaleType="fitCenter"/>
<TextView
android:id="@+id/prompt"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textStyle="bold"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorPrimary"
android:gravity="center_horizontal"
android:paddingBottom="30dip" />
<LinearLayout
@@ -51,12 +61,14 @@
<TextView
android:id="@+id/input_type"
android:gravity="left"
- android:textColor="@color/ltgrey"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorSecondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/num_of_chars"
- android:textColor="@color/ltgrey"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorSecondary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="4dip" />