Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2017 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <LinearLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Jason Chiu | 71e9f91 | 2019-07-16 13:49:35 +0800 | [diff] [blame] | 21 | android:layout_height="wrap_content" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 22 | android:orientation="vertical"> |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 23 | |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 24 | <TextView |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 25 | android:text="@string/zen_mode_settings_summary" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 26 | android:textAppearance="?android:attr/textAppearanceSmall" |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 27 | android:layout_width="wrap_content" |
| 28 | android:layout_height="wrap_content" |
| 29 | android:layout_marginStart="@dimen/screen_margin_sides" |
Beverly | 32f2839 | 2020-04-10 12:30:57 -0400 | [diff] [blame] | 30 | android:layout_marginEnd="@dimen/description_margin_sides" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 31 | android:layout_marginTop="@dimen/zen_mode_settings_button_margin_vertical"/> |
Julia Reynolds | b5ea53a | 2020-01-08 12:27:08 -0500 | [diff] [blame] | 32 | |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 33 | <Button |
| 34 | android:id="@+id/zen_mode_settings_turn_on_button" |
| 35 | style="@style/ActionPrimaryButton" |
Beverly | 036d7e0 | 2018-02-01 18:14:33 -0500 | [diff] [blame] | 36 | android:layout_marginStart="@dimen/screen_margin_sides" |
Beverly | 32f2839 | 2020-04-10 12:30:57 -0400 | [diff] [blame] | 37 | android:layout_marginEnd="@dimen/description_margin_sides" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 38 | android:layout_marginTop="@dimen/zen_mode_settings_button_margin_vertical" |
| 39 | android:layout_marginBottom="@dimen/zen_mode_settings_button_margin_vertical" |
| 40 | android:text="@string/zen_mode_button_turn_on" |
Beverly | 036d7e0 | 2018-02-01 18:14:33 -0500 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 42 | android:layout_height="wrap_content"/> |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 43 | |
| 44 | <Button |
| 45 | android:id="@+id/zen_mode_settings_turn_off_button" |
| 46 | style="@style/ActionSecondaryButton" |
Beverly | 036d7e0 | 2018-02-01 18:14:33 -0500 | [diff] [blame] | 47 | android:layout_marginStart="@dimen/screen_margin_sides" |
Beverly | 32f2839 | 2020-04-10 12:30:57 -0400 | [diff] [blame] | 48 | android:layout_marginEnd="@dimen/description_margin_sides" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 49 | android:layout_marginTop="@dimen/zen_mode_settings_button_margin_vertical" |
| 50 | android:layout_marginBottom="@dimen/zen_mode_settings_button_margin_vertical" |
| 51 | android:text="@string/zen_mode_button_turn_off" |
Beverly | 036d7e0 | 2018-02-01 18:14:33 -0500 | [diff] [blame] | 52 | android:layout_width="wrap_content" |
Beverly | ecc377b | 2020-04-07 16:02:34 -0400 | [diff] [blame] | 53 | android:layout_height="wrap_content"/> |
Beverly | a58e52a | 2017-10-27 14:44:23 -0400 | [diff] [blame] | 54 | |
| 55 | </LinearLayout> |