1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 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<RelativeLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:background="?android:attr/colorBackground"> 22 23 <ScrollView 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_above="@+id/divider"> 27 28 <LinearLayout 29 android:id="@+id/message_container" 30 android:orientation="vertical" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content"/> 33 </ScrollView> 34 35 <View 36 android:id="@+id/divider" 37 android:layout_width="match_parent" 38 android:layout_height="@dimen/message_divider_height" 39 android:background="#12000000" 40 android:layout_above="@+id/edittext_container"/> 41 42 <RelativeLayout 43 android:id="@+id/edittext_container" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_alignParentBottom="true"> 47 48 <EditText 49 android:id="@+id/custom_message" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:padding="@dimen/textview_item_padding" 53 android:textSize="@dimen/message_item_text_size" 54 android:hint="@string/custom_message_hint" 55 android:textColor="?android:attr/textColorPrimary" 56 android:textColorHint="?android:attr/textColorHint" 57 android:background="?android:attr/colorBackground" 58 android:textCursorDrawable="@drawable/edittext_custom_cursor" 59 android:layout_toStartOf="@+id/count_and_send_container" 60 android:inputType="textShortMessage|textCapSentences" 61 android:imeOptions="flagNoExtractUi|actionSend"/> 62 63 <LinearLayout 64 android:id="@+id/count_and_send_container" 65 android:orientation="vertical" 66 android:layout_width="@dimen/send_container_width" 67 android:layout_height="wrap_content" 68 android:layout_alignParentEnd="true" 69 android:layout_centerVertical="true" 70 android:paddingEnd="@dimen/textview_item_padding" 71 android:gravity="center"> 72 73 <ImageView 74 android:id="@+id/send_message" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:visibility="gone" 78 android:src="@drawable/quantum_ic_send_white_24" 79 android:background="?android:attr/selectableItemBackgroundBorderless" 80 android:tint="@color/dialer_tint_state"/> 81 82 <TextView 83 android:id="@+id/remaining_characters" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:visibility="gone" 87 android:textSize="@dimen/message_remaining_char_text_size" 88 android:textColor="?android:attr/textColorHint"/> 89 </LinearLayout> 90 </RelativeLayout> 91</RelativeLayout>