summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorTakanori Nakano <takanori.nakano@sony.com>2017-07-21 15:27:49 +0900
committerYoshiaki Naka <yoshiaki.naka@sony.com>2017-10-11 02:30:49 +0000
commit9ecdba7aef29f4dbb247308a769cab603f0dcd36 (patch)
tree3154c1c9119eebf0ec6fcb197ca449d1d97e6f94 /res
parentcbe32d35d67b1bfdd2958e4ee7e5452e570b4cce (diff)
downloadStk-9ecdba7aef29f4dbb247308a769cab603f0dcd36.tar.gz
Terminal shall display icon specified by DISPLAY TEXT command
Terminal must be able to display icon on the pop-up message if it is requested by DISPLAY TEXT command. If not, terminal cannot pass the test cases described in ETSI TS 102 384 - 27.22.4.1.5 DISPLAY TEXT (Display of icons). Bug: 63914016 Test: Confirmed that the icon can be displayed as expected. Change-Id: I7b8b82cbc6951b582926add1b5f0640b977683ed
Diffstat (limited to 'res')
-rwxr-xr-xres/layout/stk_msg_dialog.xml46
1 files changed, 46 insertions, 0 deletions
diff --git a/res/layout/stk_msg_dialog.xml b/res/layout/stk_msg_dialog.xml
new file mode 100755
index 0000000..8f0c23c
--- /dev/null
+++ b/res/layout/stk_msg_dialog.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:orientation="vertical">
+
+ <ImageView
+ android:id="@+id/icon"
+ 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:paddingTop="10dip"
+ android:scaleType="fitCenter"/>
+
+ <ScrollView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:paddingTop="2dip"
+ android:paddingBottom="12dip"
+ android:paddingStart="14dip"
+ android:paddingEnd="10dip">
+ <TextView android:id="@+id/message"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="5dip"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
+ </ScrollView>
+
+</LinearLayout> \ No newline at end of file