Files
packages_apps_Messaging/res/layout/contact_picker_fragment.xml
Michael W 6cdd458b69 Messaging: Tint recipient field properly
We need to tint the underline ourselves, reyling on forceDarkAllowed
does nothing here

Change-Id: I2c390a76df5aef6e16512295521d073dbe25d5fc
2024-12-26 17:43:06 +01:00

81 lines
3.4 KiB
XML

<?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:forceDarkAllowed="false"
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>