Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2015 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <RelativeLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:padding="@dimen/widget_margin" |
| 23 | android:background="@android:color/transparent" > |
| 24 | <LinearLayout |
| 25 | android:id="@+id/widget_header" |
| 26 | android:layout_width="match_parent" |
| 27 | android:layout_height="48dp" |
| 28 | android:orientation="horizontal" |
| 29 | android:paddingLeft="10dip" |
| 30 | android:paddingRight="10dip" |
| 31 | android:layout_alignParentTop="true"> |
| 32 | <TextView |
| 33 | android:id="@+id/widget_label" |
| 34 | style="@style/WidgetConversationTitle" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:layout_width="0dip" |
| 37 | android:layout_weight = "1" |
| 38 | android:layout_gravity="center_vertical" |
| 39 | android:freezesText="true" /> |
| 40 | <ImageView |
| 41 | android:id="@+id/launcher_icon" |
| 42 | android:src="@drawable/ic_launcher" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_width="0dip" |
| 45 | android:layout_weight = "1" |
| 46 | android:scaleType="fitStart" |
| 47 | android:paddingTop="12dip" |
| 48 | android:paddingBottom="12dip" |
| 49 | android:visibility="gone" |
| 50 | android:importantForAccessibility="no" /> |
| 51 | <ImageButton |
| 52 | android:id="@+id/widget_goto_conversation_list" |
| 53 | style="@style/WidgetHeaderImage" |
| 54 | android:layout_width="@dimen/widget_header_new_conv_button_width" |
| 55 | android:layout_height="match_parent" |
| 56 | android:src="@drawable/ic_widget_list" |
| 57 | android:background="?android:attr/selectableItemBackground" |
| 58 | android:contentDescription="@string/widget_conversation_list_content_description" |
| 59 | android:layout_gravity="center_vertical" /> |
| 60 | </LinearLayout> |
| 61 | <ListView |
| 62 | android:id="@+id/message_list" |
| 63 | android:layout_below="@+id/top_line" |
| 64 | android:layout_above="@+id/bottom_line" |
| 65 | android:layout_marginTop="-2dp" |
| 66 | android:layout_width="match_parent" |
| 67 | android:layout_height="0dip" |
| 68 | android:layout_weight="1" |
| 69 | android:drawSelectorOnTop="true" |
| 70 | android:transcriptMode="alwaysScroll" |
| 71 | android:stackFromBottom="true" |
| 72 | android:overScrollMode="never" |
| 73 | android:divider="@null" /> |
| 74 | <TextView |
| 75 | android:id="@+id/widget_configuration" |
| 76 | style="@style/WidgetConversationTitle" |
| 77 | android:layout_below="@+id/top_line" |
| 78 | android:layout_above="@+id/bottom_line" |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="0dip" |
| 81 | android:layout_weight="1" |
| 82 | android:orientation="horizontal" |
| 83 | android:gravity="center_vertical" |
| 84 | android:visibility="gone" |
| 85 | android:singleLine="false" |
| 86 | android:paddingRight="20dp" |
| 87 | android:paddingLeft="20dp" |
| 88 | android:paddingBottom="20dp" |
| 89 | android:text="@string/tap_to_configure" /> |
| 90 | <ImageView |
| 91 | android:id="@id/top_line" |
| 92 | android:layout_width="match_parent" |
| 93 | android:layout_height="wrap_content" |
| 94 | android:background="@drawable/widget_hr" |
| 95 | android:importantForAccessibility="no" |
| 96 | android:contentDescription="@null" |
| 97 | android:layout_marginTop="-2dp" |
| 98 | android:layout_below="@id/widget_header" |
| 99 | /> |
| 100 | <ImageView |
| 101 | android:id="@id/bottom_line" |
| 102 | android:layout_width="match_parent" |
| 103 | android:layout_height="wrap_content" |
| 104 | android:background="@drawable/widget_hr" |
| 105 | android:importantForAccessibility="no" |
| 106 | android:contentDescription="@null" |
Taesu Lee | f3ae4c1 | 2020-02-10 18:25:07 +0900 | [diff] [blame^] | 107 | android:layout_marginTop="-2dp" |
Mike Dodd | d3b009a | 2015-08-11 11:16:59 -0700 | [diff] [blame] | 108 | android:layout_alignParentBottom="true" |
| 109 | /> |
| 110 | </RelativeLayout> |