Jason Monk | 8a452e9 | 2017-10-31 19:21:47 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | |
| 3 | <!-- |
| 4 | ~ Copyright 2017 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 | <!-- LinearLayout --> |
| 19 | <androidx.app.slice.widget.RemoteInputView |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | android:id="@+id/remote_input" |
| 22 | android:background="@drawable/abc_slice_remote_input_bg" |
| 23 | android:layout_height="match_parent" |
| 24 | android:layout_width="match_parent"> |
| 25 | |
| 26 | <view class="androidx.app.slice.widget.RemoteInputView$RemoteEditText" |
| 27 | android:id="@+id/remote_input_text" |
| 28 | android:layout_height="match_parent" |
| 29 | android:layout_width="0dp" |
| 30 | android:layout_weight="1" |
| 31 | android:paddingTop="2dp" |
| 32 | android:paddingBottom="4dp" |
| 33 | android:paddingStart="16dp" |
| 34 | android:paddingEnd="12dp" |
| 35 | android:gravity="start|center_vertical" |
| 36 | android:textAppearance="?android:attr/textAppearance" |
| 37 | android:textColor="#FFFFFFFF" |
| 38 | android:textColorHint="#99ffffff" |
| 39 | android:textSize="16sp" |
| 40 | android:background="@null" |
| 41 | android:singleLine="true" |
| 42 | android:ellipsize="start" |
| 43 | android:inputType="textShortMessage|textAutoCorrect|textCapSentences" |
| 44 | android:imeOptions="actionSend|flagNoExtractUi|flagNoFullscreen" /> |
| 45 | |
| 46 | <FrameLayout |
| 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="match_parent" |
| 49 | android:layout_gravity="center_vertical"> |
| 50 | |
| 51 | <ImageButton |
| 52 | android:layout_width="wrap_content" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_gravity="center" |
| 55 | android:paddingStart="12dp" |
| 56 | android:paddingEnd="24dp" |
| 57 | android:paddingTop="16dp" |
| 58 | android:paddingBottom="16dp" |
| 59 | android:id="@+id/remote_input_send" |
| 60 | android:src="@drawable/abc_ic_slice_send" |
| 61 | android:tint="#FFFFFF" |
| 62 | android:tintMode="src_in" |
| 63 | android:background="@drawable/abc_slice_ripple_drawable" /> |
| 64 | |
| 65 | <ProgressBar |
| 66 | android:id="@+id/remote_input_progress" |
| 67 | android:layout_width="24dp" |
| 68 | android:layout_height="24dp" |
| 69 | android:layout_marginEnd="6dp" |
| 70 | android:layout_gravity="center" |
| 71 | android:visibility="invisible" |
| 72 | android:indeterminate="true" |
| 73 | style="?android:attr/progressBarStyleSmall" /> |
| 74 | |
| 75 | </FrameLayout> |
| 76 | |
| 77 | </androidx.app.slice.widget.RemoteInputView> |