| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 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 | |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 19 | <!-- LinearLayout --> |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 20 | <com.android.systemui.statusbar.policy.RemoteInputView |
| 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 22 | android:theme="@style/systemui_theme_remote_input" |
| 23 | android:id="@+id/remote_input" |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 24 | android:layout_height="match_parent" |
| 25 | android:layout_width="match_parent" |
| Adrian Roos | dc5b453 | 2016-01-06 20:49:41 +0100 | [diff] [blame^] | 26 | android:paddingEnd="12dp"> |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 27 | |
| 28 | <view class="com.android.systemui.statusbar.policy.RemoteInputView$RemoteEditText" |
| 29 | android:id="@+id/remote_input_text" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 30 | android:layout_height="match_parent" |
| 31 | android:layout_width="0dp" |
| 32 | android:layout_weight="1" |
| Adrian Roos | dc5b453 | 2016-01-06 20:49:41 +0100 | [diff] [blame^] | 33 | android:paddingTop="2dp" |
| 34 | android:paddingBottom="4dp" |
| 35 | android:paddingStart="16dp" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 36 | android:paddingEnd="12dp" |
| 37 | android:gravity="start|center_vertical" |
| 38 | android:textAppearance="?android:attr/textAppearance" |
| Adrian Roos | 245aa87 | 2015-12-07 14:53:53 -0800 | [diff] [blame] | 39 | android:textColor="@color/remote_input_text" |
| 40 | android:textColorHint="@color/remote_input_hint" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 41 | android:textSize="16sp" |
| 42 | android:background="@null" |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 43 | android:singleLine="true" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 44 | android:ellipsize="start" |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 45 | android:imeOptions="actionSend" /> |
| 46 | |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 47 | <FrameLayout |
| 48 | android:layout_width="wrap_content" |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 49 | android:layout_height="wrap_content" |
| Adrian Roos | dc5b453 | 2016-01-06 20:49:41 +0100 | [diff] [blame^] | 50 | android:layout_gravity="center_vertical" |
| 51 | android:paddingTop="2dp" |
| 52 | android:paddingBottom="4dp"> |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 53 | |
| 54 | <ImageButton |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:layout_gravity="center" |
| 58 | android:paddingStart="12dp" |
| 59 | android:paddingEnd="12dp" |
| 60 | android:paddingTop="12dp" |
| 61 | android:paddingBottom="12dp" |
| 62 | android:id="@+id/remote_input_send" |
| 63 | android:src="@drawable/ic_send" |
| Adrian Roos | 245aa87 | 2015-12-07 14:53:53 -0800 | [diff] [blame] | 64 | android:tint="@color/remote_input_send" |
| 65 | android:tintMode="src_in" |
| Adrian Roos | fe84e1f | 2015-11-04 15:55:39 -0800 | [diff] [blame] | 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_gravity="center" |
| 73 | android:visibility="invisible" |
| 74 | android:indeterminate="true" |
| 75 | style="?android:attr/progressBarStyleSmall" /> |
| 76 | |
| 77 | </FrameLayout> |
| Adrian Roos | 497ab02 | 2015-02-10 20:49:33 +0100 | [diff] [blame] | 78 | |
| 79 | </com.android.systemui.statusbar.policy.RemoteInputView> |