diff options
author | samalin <samalin@google.com> | 2018-05-30 22:18:44 +0800 |
---|---|---|
committer | Sama Lin <samalin@google.com> | 2018-05-31 18:04:47 +0000 |
commit | e9858082a6c75eb488954078b0c7545900deeb2d (patch) | |
tree | 471f02b20f5629b91c6095d7ad19bc1d8e616c9d | |
parent | 978f6e037ea208bbc27e7879f6ebf31535b5f085 (diff) | |
download | Stk-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-x | res/layout/stk_title.xml | 18 |
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" |