diff options
author | John Spurlock <jspurlock@google.com> | 2014-07-05 12:57:08 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-07-07 18:37:06 -0400 |
commit | 07f7efba67a5f261fca31890a1b60f23021325f5 (patch) | |
tree | 0c6baf93814c34b2e4667948307cab1948c7ca0b /res/layout | |
parent | 5fc8214555d1e705a559d52c286b38d8721316b7 (diff) | |
download | packages_apps_Settings-07f7efba67a5f261fca31890a1b60f23021325f5.zip packages_apps_Settings-07f7efba67a5f261fca31890a1b60f23021325f5.tar.gz packages_apps_Settings-07f7efba67a5f261fca31890a1b60f23021325f5.tar.bz2 |
Settings: Update to follow new volume design.
- "Sound & Notification" (not Notifications)
- Remove ringer-mode pref.
- Add zen-mode pref to renamed "Interruptions" screen.
- Implement two separate "Sound" & "Notification" sections.
- Remove "Showing notifications" screen, migrate settings.
- Remove custom category styling now that we have a platform style.
- Implement new "days" sleep mode and corresponding dialog pref.
- Corresponding changes to indexable resources.
Associated frameworks/base change:
I35afe38646f04d2ba0dbac11c2c6356120a33694
Bug:15831713
Change-Id: I6ed56791784968adfbd684f490dbbebed285a2dd
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/notification_app_section.xml | 20 | ||||
-rwxr-xr-x[-rw-r--r--] | res/layout/zen_downtime_day.xml (renamed from res/layout/zen_mode_section_first.xml) | 25 | ||||
-rw-r--r-- | res/layout/zen_mode_section.xml | 37 |
3 files changed, 10 insertions, 72 deletions
diff --git a/res/layout/notification_app_section.xml b/res/layout/notification_app_section.xml deleted file mode 100644 index 144ea11..0000000 --- a/res/layout/notification_app_section.xml +++ /dev/null @@ -1,20 +0,0 @@ -<!-- - Copyright (C) 2014 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<TextView xmlns:android="http://schemas.android.com/apk/res/android" - style="?android:attr/listSeparatorTextViewStyle" - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> diff --git a/res/layout/zen_mode_section_first.xml b/res/layout/zen_downtime_day.xml index e43a4d2..076ad4c 100644..100755 --- a/res/layout/zen_mode_section_first.xml +++ b/res/layout/zen_downtime_day.xml @@ -1,5 +1,5 @@ -<!-- - Copyright (C) 2014 The Android Open Source Project +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2014 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -13,18 +13,13 @@ See the License for the specific language governing permissions and limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + +<CheckBox xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textAllCaps="true" - android:textStyle="bold" /> - -</LinearLayout>
\ No newline at end of file + android:minHeight="?android:attr/listPreferredItemHeightSmall" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="center_vertical" + android:paddingStart="@dimen/zen_downtime_checkbox_padding" + android:layout_marginStart="@dimen/zen_downtime_margin" + android:layout_marginEnd="@dimen/zen_downtime_margin" /> diff --git a/res/layout/zen_mode_section.xml b/res/layout/zen_mode_section.xml deleted file mode 100644 index c9daedc..0000000 --- a/res/layout/zen_mode_section.xml +++ /dev/null @@ -1,37 +0,0 @@ -<!-- - Copyright (C) 2014 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingStart="?android:attr/listPreferredItemPaddingStart" - android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" - android:orientation="vertical" > - - <View - android:layout_width="match_parent" - android:layout_height="2dip" - android:layout_marginBottom="4dip" - android:alpha="?android:attr/disabledAlpha" - android:background="#000" /> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textAllCaps="true" - android:textStyle="bold" /> - -</LinearLayout>
\ No newline at end of file |