John Spurlock | 45fa140 | 2015-04-09 12:50:04 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
John Spurlock | c96a5dc | 2015-04-10 11:59:54 -0400 | [diff] [blame] | 16 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | android:orientation="vertical" |
John Spurlock | 45fa140 | 2015-04-09 12:50:04 -0400 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" > |
| 20 | |
| 21 | <EditText |
Beverly | 4359d4b | 2017-10-02 09:45:48 -0400 | [diff] [blame] | 22 | android:id="@+id/zen_mode_rule_name" |
John Spurlock | 45fa140 | 2015-04-09 12:50:04 -0400 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Julia Reynolds | fceea9d | 2020-02-26 15:12:12 -0500 | [diff] [blame] | 24 | android:layout_height="48dp" |
John Spurlock | 45fa140 | 2015-04-09 12:50:04 -0400 | [diff] [blame] | 25 | android:singleLine="true" |
John Spurlock | b3d2f08 | 2015-05-20 23:14:49 -0400 | [diff] [blame] | 26 | android:inputType="textCapSentences" |
John Spurlock | f57bad7 | 2015-04-30 09:26:15 -0400 | [diff] [blame] | 27 | android:hint="@string/zen_mode_rule_name_hint" |
John Spurlock | 45fa140 | 2015-04-09 12:50:04 -0400 | [diff] [blame] | 28 | android:layout_marginLeft="22dp" |
| 29 | android:layout_marginRight="22dp" > |
| 30 | |
| 31 | <requestFocus /> |
| 32 | |
| 33 | </EditText> |
| 34 | |
John Spurlock | 7b4d1e2 | 2015-06-04 11:37:36 -0400 | [diff] [blame] | 35 | <TextView |
Beverly | 4359d4b | 2017-10-02 09:45:48 -0400 | [diff] [blame] | 36 | android:id="@+id/zen_mode_rule_name_warning" |
John Spurlock | 7b4d1e2 | 2015-06-04 11:37:36 -0400 | [diff] [blame] | 37 | android:visibility="invisible" |
| 38 | android:layout_width="match_parent" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:singleLine="true" |
| 41 | android:layout_marginLeft="26dp" |
| 42 | android:layout_marginRight="26dp" |
Jason Monk | 6fca98f | 2017-02-01 20:20:44 -0500 | [diff] [blame] | 43 | android:textColor="?android:attr/colorError" |
John Spurlock | 7b4d1e2 | 2015-06-04 11:37:36 -0400 | [diff] [blame] | 44 | android:text="@string/zen_mode_rule_name_warning" /> |
| 45 | |
John Spurlock | c96a5dc | 2015-04-10 11:59:54 -0400 | [diff] [blame] | 46 | </LinearLayout> |