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:forceHasOverlappingRendering="false" 24 android:layout_height="match_parent" 25 android:layout_width="match_parent"> 26 <LinearLayout 27 android:layout_height="wrap_content" 28 android:layout_width="wrap_content" 29 android:id="@+id/remote_input_content" 30 android:orientation="vertical" 31 android:clipToPadding="false" 32 android:layout_marginEnd="0dp" 33 android:layout_marginStart="16dp" 34 android:layout_marginTop="5dp" 35 android:layout_marginBottom="16dp" 36 android:layout_weight="1"> 37 <FrameLayout 38 android:id="@+id/remote_input_content_container" 39 android:layout_height="66dp" 40 android:layout_width="66dp" 41 android:layout_marginTop="0dp" 42 android:layout_marginStart="4dp" 43 android:layout_marginBottom="0dp" 44 android:visibility="gone" 45 android:layout_gravity="center_vertical"> 46 <ImageView 47 android:id="@+id/remote_input_attachment_image" 48 android:layout_width="48dp" 49 android:layout_height="48dp" 50 android:layout_gravity="start|bottom" 51 android:clipToOutline="true" 52 android:background="@drawable/rounded_rect_background" 53 android:scaleType="centerCrop" /> 54 <ImageView 55 android:id="@+id/remote_input_delete_bg" 56 android:paddingTop="6dp" 57 android:paddingEnd="6dp" 58 android:paddingStart="18dp" 59 android:paddingBottom="18dp" 60 android:layout_width="48dp" 61 android:layout_height="48dp" 62 android:layout_gravity="end|top" 63 android:src="@drawable/thumbnail_delete_btn_bg"/> 64 <ImageView 65 android:id="@+id/remote_input_delete" 66 android:paddingTop="9dp" 67 android:paddingEnd="9dp" 68 android:paddingStart="21dp" 69 android:paddingBottom="21dp" 70 android:layout_width="48dp" 71 android:layout_height="48dp" 72 android:layout_gravity="end|top" 73 android:src="@drawable/ic_close" 74 android:contentDescription="@string/notif_inline_reply_remove_attachment_description"/> 75 </FrameLayout> 76 77 <view class="com.android.systemui.statusbar.policy.RemoteInputView$RemoteEditText" 78 android:id="@+id/remote_input_text" 79 android:layout_height="wrap_content" 80 android:layout_width="match_parent" 81 android:layout_weight="1" 82 android:paddingTop="14dp" 83 android:paddingStart="4dp" 84 android:paddingBottom="16dp" 85 android:paddingEnd="12dp" 86 android:layout_gravity="start|center_vertical" 87 android:textAppearance="?android:attr/textAppearance" 88 android:textColor="@color/remote_input_text" 89 android:textColorHint="@color/remote_input_hint" 90 android:textSize="16sp" 91 android:background="@null" 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