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<LinearLayout
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:orientation="vertical">
24    <LinearLayout
25        android:id="@+id/widget_header"
26        android:layout_width="match_parent"
27        android:layout_height="@dimen/widget_header_height"
28        android:orientation="horizontal"
29        android:paddingLeft="8dip"
30        android:background="@drawable/widget_top_background"
31        android:gravity="center_vertical">
32        <TextView
33            android:id="@+id/widget_label"
34            style="@style/WidgetTitle"
35            android:layout_height="wrap_content"
36            android:layout_width="0dip"
37            android:layout_weight = "1"
38            android:contentDescription="@string/widget_title_content_description"
39            android:freezesText="true" />
40        <ImageButton
41            android:id="@+id/widget_compose"
42            style="@style/WidgetHeaderImage"
43            android:layout_width="@dimen/widget_header_new_conv_button_width"
44            android:layout_height="match_parent"
45            android:src="@drawable/ic_add_white"
46            android:background="?android:attr/selectableItemBackground"
47            android:contentDescription="@string/widget_new_conversation_content_description"
48            android:paddingRight="8dip"
49            android:paddingBottom="4dip" />
50    </LinearLayout>
51    <ImageView
52        android:layout_width="match_parent"
53        android:layout_height="1dp"
54        android:background="#aaaaaa"
55        android:importantForAccessibility="no"
56        android:contentDescription="@null" />
57    <ListView
58        android:id="@+id/conversation_list"
59        android:layout_width="match_parent"
60        android:layout_height="0dip"
61        android:layout_weight="1"
62        android:cacheColorHint="#00000000"
63        android:divider="@android:drawable/divider_horizontal_bright"
64        android:background="@drawable/widget_bottom_background" />
65</LinearLayout>
66