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:theme="@style/systemui_theme_remote_input"
23        android:id="@+id/remote_input"
24        android:layout_height="match_parent"
25        android:layout_width="match_parent">
26
27    <view class="com.android.systemui.statusbar.policy.RemoteInputView$RemoteEditText"
28            android:id="@+id/remote_input_text"
29            android:layout_height="match_parent"
30            android:layout_width="0dp"
31            android:layout_weight="1"
32            android:paddingTop="2dp"
33            android:paddingBottom="4dp"
34            android:paddingStart="16dp"
35            android:paddingEnd="12dp"
36            android:gravity="start|center_vertical"
37            android:textAppearance="?android:attr/textAppearance"
38            android:textColor="@color/remote_input_text"
39            android:textColorHint="@color/remote_input_hint"
40            android:textSize="16sp"
41            android:background="@null"
42            android:singleLine="true"
43            android:ellipsize="start"
44            android:inputType="textShortMessage|textAutoCorrect|textCapSentences"
45            android:textIsSelectable="true"
46            android:imeOptions="actionNone|flagNoExtractUi" />
47
48    <FrameLayout
49            android:layout_width="wrap_content"
50            android:layout_height="match_parent"
51            android:layout_gravity="center_vertical">
52
53        <ImageButton
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:layout_gravity="center"
57                android:paddingStart="12dp"
58                android:paddingEnd="24dp"
59                android:paddingTop="16dp"
60                android:paddingBottom="16dp"
61                android:id="@+id/remote_input_send"
62                android:src="@drawable/ic_send"
63                android:contentDescription="@*android:string/ime_action_send"
64                android:tint="@color/remote_input_send"
65                android:tintMode="src_in"
66                android:background="@drawable/ripple_drawable" />
67
68        <ProgressBar
69                android:id="@+id/remote_input_progress"
70                android:layout_width="24dp"
71                android:layout_height="24dp"
72                android:layout_marginEnd="6dp"
73                android:layout_gravity="center"
74                android:visibility="invisible"
75                android:indeterminate="true"
76                style="?android:attr/progressBarStyleSmall" />
77
78    </FrameLayout>
79
80</com.android.systemui.statusbar.policy.RemoteInputView>
81