blob: 78350d7094ac359f9b788e286bfd60774cf9fac2 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:minHeight="?attr/actionBarSize"
android:background="@color/action_bar_background_color"
app:theme="@style/ThemeOverlay.AppCompat.ActionBar">
<com.android.messaging.ui.MaxHeightScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:maxHeight="@dimen/compose_message_chips_view_max_height">
<com.android.messaging.ui.contact.ContactRecipientAutoCompleteView
android:id="@+id/recipient_text_view"
style="@style/RecipientEditTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:minHeight="@dimen/compose_message_contacts_height"
android:popupBackground="@drawable/contact_popup_background"
android:dropDownWidth="match_parent"
android:hint="@string/recipient_hint"
app:avatarPosition="start"
app:chipHeight="@dimen/compose_message_chip_height"
app:chipPadding="@dimen/compose_message_chip_padding"
app:imageSpanAlignment="baseline"
app:unselectedChipTextColor="@color/chips_text_color"
app:unselectedChipBackgroundColor="@color/chips_background_color">
<!-- Put focus on the chips view by default so soft keyboard can be shown -->
<requestFocus />
</com.android.messaging.ui.contact.ContactRecipientAutoCompleteView>
</com.android.messaging.ui.MaxHeightScrollView>
</androidx.appcompat.widget.Toolbar>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<com.android.messaging.ui.CustomHeaderViewPager
android:id="@+id/contact_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<View
android:id="@+id/compose_contact_divider"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_gravity="top"
android:background="@drawable/compose_chips_divider_gradient"/>
</FrameLayout>
</LinearLayout>