blob: e4ea08edbc8995f7f2e96a5ae1f6470b356825f7 [file] [log] [blame]
Adrian Roos497ab022015-02-10 20:49:33 +01001<?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
Adrian Roosfe84e1f2015-11-04 15:55:39 -080019<!-- LinearLayout -->
Adrian Roos497ab022015-02-10 20:49:33 +010020<com.android.systemui.statusbar.policy.RemoteInputView
21 xmlns:android="http://schemas.android.com/apk/res/android"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080022 android:theme="@style/systemui_theme_remote_input"
23 android:id="@+id/remote_input"
Adrian Roos497ab022015-02-10 20:49:33 +010024 android:layout_height="match_parent"
Adrian Roos5389a172016-04-20 13:58:03 -070025 android:layout_width="match_parent">
Adrian Roos497ab022015-02-10 20:49:33 +010026
27 <view class="com.android.systemui.statusbar.policy.RemoteInputView$RemoteEditText"
28 android:id="@+id/remote_input_text"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080029 android:layout_height="match_parent"
30 android:layout_width="0dp"
31 android:layout_weight="1"
Adrian Roosdc5b4532016-01-06 20:49:41 +010032 android:paddingTop="2dp"
33 android:paddingBottom="4dp"
34 android:paddingStart="16dp"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080035 android:paddingEnd="12dp"
36 android:gravity="start|center_vertical"
37 android:textAppearance="?android:attr/textAppearance"
Adrian Roos245aa872015-12-07 14:53:53 -080038 android:textColor="@color/remote_input_text"
39 android:textColorHint="@color/remote_input_hint"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080040 android:textSize="16sp"
41 android:background="@null"
Adrian Roos497ab022015-02-10 20:49:33 +010042 android:singleLine="true"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080043 android:ellipsize="start"
Adrian Roosabc1eb72016-02-23 13:53:56 -080044 android:inputType="textShortMessage|textAutoCorrect|textCapSentences"
Adrian Roosd575d882016-12-05 16:33:32 -080045 android:imeOptions="actionSend|flagNoExtractUi|flagNoFullscreen" />
Adrian Roos497ab022015-02-10 20:49:33 +010046
Adrian Roosfe84e1f2015-11-04 15:55:39 -080047 <FrameLayout
48 android:layout_width="wrap_content"
Adrian Roos5389a172016-04-20 13:58:03 -070049 android:layout_height="match_parent"
50 android:layout_gravity="center_vertical">
Adrian Roosfe84e1f2015-11-04 15:55:39 -080051
52 <ImageButton
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_gravity="center"
56 android:paddingStart="12dp"
Adrian Roos5389a172016-04-20 13:58:03 -070057 android:paddingEnd="24dp"
58 android:paddingTop="16dp"
59 android:paddingBottom="16dp"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080060 android:id="@+id/remote_input_send"
61 android:src="@drawable/ic_send"
Adrian Roos3225b492016-03-16 18:23:37 -070062 android:contentDescription="@*android:string/ime_action_send"
Adrian Roos245aa872015-12-07 14:53:53 -080063 android:tint="@color/remote_input_send"
64 android:tintMode="src_in"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080065 android:background="@drawable/ripple_drawable" />
66
67 <ProgressBar
68 android:id="@+id/remote_input_progress"
69 android:layout_width="24dp"
70 android:layout_height="24dp"
Adrian Roos5389a172016-04-20 13:58:03 -070071 android:layout_marginEnd="6dp"
Adrian Roosfe84e1f2015-11-04 15:55:39 -080072 android:layout_gravity="center"
73 android:visibility="invisible"
74 android:indeterminate="true"
75 style="?android:attr/progressBarStyleSmall" />
76
77 </FrameLayout>
Adrian Roos497ab022015-02-10 20:49:33 +010078
79</com.android.systemui.statusbar.policy.RemoteInputView>