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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <androidx.appcompat.widget.Toolbar
25        android:id="@+id/toolbar"
26        android:layout_height="wrap_content"
27        android:layout_width="match_parent"
28        android:minHeight="?attr/actionBarSize"
29        android:background="@color/action_bar_background_color"
30        app:theme="@style/ThemeOverlay.AppCompat.ActionBar">
31
32        <com.android.messaging.ui.MaxHeightScrollView
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:layout_gravity="center_horizontal"
36            android:maxHeight="@dimen/compose_message_chips_view_max_height">
37
38            <com.android.messaging.ui.contact.ContactRecipientAutoCompleteView
39                android:id="@+id/recipient_text_view"
40                style="@style/RecipientEditTextView"
41                android:layout_width="match_parent"
42                android:layout_height="wrap_content"
43                android:layout_gravity="center_vertical"
44                android:minHeight="@dimen/compose_message_contacts_height"
45                android:popupBackground="@drawable/contact_popup_background"
46                android:dropDownWidth="match_parent"
47                android:hint="@string/recipient_hint"
48                app:avatarPosition="start"
49                app:chipHeight="@dimen/compose_message_chip_height"
50                app:chipPadding="@dimen/compose_message_chip_padding"
51                app:imageSpanAlignment="baseline"
52                app:unselectedChipTextColor="@color/chips_text_color"
53                app:unselectedChipBackgroundColor="@color/chips_background_color">
54
55                <!-- Put focus on the chips view by default so soft keyboard can be shown -->
56                <requestFocus />
57            </com.android.messaging.ui.contact.ContactRecipientAutoCompleteView>
58
59        </com.android.messaging.ui.MaxHeightScrollView>
60
61    </androidx.appcompat.widget.Toolbar>
62
63    <FrameLayout
64        android:layout_width="match_parent"
65        android:layout_height="0dp"
66        android:layout_weight="1">
67        <com.android.messaging.ui.CustomHeaderViewPager
68            android:id="@+id/contact_pager"
69            android:layout_width="match_parent"
70            android:layout_height="match_parent"/>
71
72        <View
73            android:id="@+id/compose_contact_divider"
74            android:layout_width="match_parent"
75            android:layout_height="4dp"
76            android:layout_gravity="top"
77            android:background="@drawable/compose_chips_divider_gradient"/>
78    </FrameLayout>
79</LinearLayout>
80