1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- 4 ~ Copyright (C) 2015 The Android Open Source Project 5 ~ 6 ~ Licensed under the Apache License, Version 2.0 (the "License"); 7 ~ you may not use this file except in compliance with the License. 8 ~ You may obtain a copy of the License at 9 ~ 10 ~ http://www.apache.org/licenses/LICENSE-2.0 11 ~ 12 ~ Unless required by applicable law or agreed to in writing, software 13 ~ distributed under the License is distributed on an "AS IS" BASIS, 14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ~ See the License for the specific language governing permissions and 16 ~ limitations under the License 17 --> 18 19<!-- LinearLayout --> 20<com.android.systemui.statusbar.policy.RemoteInputView 21 xmlns:android="http://schemas.android.com/apk/res/android" 22 android:id="@+id/remote_input" 23 android:layout_height="match_parent" 24 android:layout_width="match_parent"> 25 <LinearLayout 26 android:layout_height="wrap_content" 27 android:layout_width="wrap_content" 28 android:id="@+id/remote_input_content" 29 android:orientation="vertical" 30 android:clipToPadding="false" 31 android:layout_marginEnd="0dp" 32 android:layout_marginStart="16dp" 33 android:layout_marginTop="5dp" 34 android:layout_marginBottom="16dp" 35 android:layout_weight="1"> 36 <FrameLayout 37 android:id="@+id/remote_input_content_container" 38 android:layout_height="66dp" 39 android:layout_width="66dp" 40 android:layout_marginTop="0dp" 41 android:layout_marginStart="4dp" 42 android:layout_marginBottom="0dp" 43 android:visibility="gone" 44 android:layout_gravity="center_vertical"> 45 <ImageView 46 android:id="@+id/remote_input_attachment_image" 47 android:layout_width="48dp" 48 android:layout_height="48dp" 49 android:layout_gravity="start|bottom" 50 android:clipToOutline="true" 51 android:background="@drawable/rounded_rect_background" 52 android:scaleType="centerCrop" /> 53 <ImageView 54 android:id="@+id/remote_input_delete_bg" 55 android:paddingTop="6dp" 56 android:paddingEnd="6dp" 57 android:paddingStart="18dp" 58 android:paddingBottom="18dp" 59 android:layout_width="48dp" 60 android:layout_height="48dp" 61 android:layout_gravity="end|top" 62 android:src="@drawable/thumbnail_delete_btn_bg"/> 63 <ImageView 64 android:id="@+id/remote_input_delete" 65 android:paddingTop="9dp" 66 android:paddingEnd="9dp" 67 android:paddingStart="21dp" 68 android:paddingBottom="21dp" 69 android:layout_width="48dp" 70 android:layout_height="48dp" 71 android:layout_gravity="end|top" 72 android:src="@drawable/ic_close" 73 android:contentDescription="@string/notif_inline_reply_remove_attachment_description"/> 74 </FrameLayout> 75 76 <view class="com.android.systemui.statusbar.policy.RemoteInputView$RemoteEditText" 77 android:id="@+id/remote_input_text" 78 android:layout_height="wrap_content" 79 android:layout_width="match_parent" 80 android:layout_weight="1" 81 android:paddingTop="14dp" 82 android:paddingStart="4dp" 83 android:paddingBottom="16dp" 84 android:paddingEnd="12dp" 85 android:layout_gravity="start|center_vertical" 86 android:textAppearance="?android:attr/textAppearance" 87 android:textColor="@color/remote_input_text" 88 android:textColorHint="@color/remote_input_hint" 89 android:textSize="16sp" 90 android:background="@null" 91 android:maxLines="4" 92 android:ellipsize="start" 93 android:inputType="textShortMessage|textMultiLine|textAutoCorrect|textCapSentences" 94 android:imeOptions="actionSend|flagNoExtractUi|flagNoFullscreen" /> 95 </LinearLayout> 96 97 <FrameLayout 98 android:layout_width="56dp" 99 android:layout_height="match_parent" 100 android:layout_gravity="center_vertical"> 101 102 <ImageButton 103 android:layout_width="48dp" 104 android:layout_height="48dp" 105 android:layout_gravity="center_horizontal|bottom" 106 android:layout_marginBottom="22dp" 107 android:id="@+id/remote_input_send" 108 android:src="@drawable/ic_send" 109 android:contentDescription="@*android:string/ime_action_send" 110 android:tint="@color/remote_input_send" 111 android:tintMode="src_in" 112 android:background="@drawable/ripple_drawable" /> 113 114 <ProgressBar 115 android:id="@+id/remote_input_progress" 116 android:layout_width="24dp" 117 android:layout_height="24dp" 118 android:layout_marginBottom="34dp" 119 android:layout_gravity="center_horizontal|bottom" 120 android:visibility="invisible" 121 android:indeterminate="true" 122 style="?android:attr/progressBarStyleSmall" /> 123 124 </FrameLayout> 125 126</com.android.systemui.statusbar.policy.RemoteInputView> 127