summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamalin <samalin@google.com>2018-05-30 22:18:44 +0800
committerSama Lin <samalin@google.com>2018-05-31 18:04:47 +0000
commite9858082a6c75eb488954078b0c7545900deeb2d (patch)
tree471f02b20f5629b91c6095d7ad19bc1d8e616c9d
parent978f6e037ea208bbc27e7879f6ebf31535b5f085 (diff)
downloadStk-pie-dev.tar.gz
To show full content of menu title in action barpie-dev
For cases of TS 51.010-4 TC 27.22.4.8.1/2 SET_UP_MENU and TC 27.22.4.9.1/5 SELECT ITEM with large alpha identifier, the text length of title shall too long for action bar area. In order to show complete content, put text view into a scrollable widget so that the full content of title can be presented and comply the expected result of this TC. Bug: 80451706 Bug: 80452457 Test: Confirmed the expected behavior by local test Change-Id: I41d7b00365747d40ab8f1aabb6d87ccc57d319a4
-rwxr-xr-xres/layout/stk_title.xml18
1 files changed, 12 insertions, 6 deletions
diff --git a/res/layout/stk_title.xml b/res/layout/stk_title.xml
index c5ca16c..a5ef109 100755
--- a/res/layout/stk_title.xml
+++ b/res/layout/stk_title.xml
@@ -36,13 +36,19 @@
android:layout_alignParentLeft="true"
android:scaleType="fitCenter" />
- <TextView android:id="@+id/title_text"
- android:gravity="center_vertical"
+ <HorizontalScrollView
android:layout_width="match_parent"
- android:layout_height="32dip"
- android:ellipsize="end"
- android:maxLines="1"
- style="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" />
+ android:layout_height="match_parent"
+ android:scrollbars="none">
+ <TextView android:id="@+id/title_text"
+ android:gravity="center_vertical"
+ android:layout_width="match_parent"
+ android:layout_height="32dip"
+ android:ellipsize="end"
+ android:maxLines="1"
+ style="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" />
+ </HorizontalScrollView>
+
</LinearLayout>
<LinearLayout android:id="@+id/right_container"