diff options
author | Adrian Roos <roosa@google.com> | 2015-03-05 20:05:31 +0100 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-03-05 20:13:40 +0100 |
commit | 5455bb540a8b4a5150a1b790c4a36fb0410f8ac3 (patch) | |
tree | 6a29fd27f3d5520b21d2777d235adde5f4525e96 | |
parent | bc614dfcb59a8a58dbb20e54535e58aba69bd27c (diff) | |
download | packages_apps_Settings-5455bb540a8b4a5150a1b790c4a36fb0410f8ac3.zip packages_apps_Settings-5455bb540a8b4a5150a1b790c4a36fb0410f8ac3.tar.gz packages_apps_Settings-5455bb540a8b4a5150a1b790c4a36fb0410f8ac3.tar.bz2 |
Ensure redaction settings are visible on narrow screens
Bug: 18599040
Change-Id: I852f8fa317927f6f786b33f965e9d1feab562518
-rw-r--r-- | res/layout/redaction_interstitial.xml | 10 | ||||
-rw-r--r-- | res/values-h330dp/dimens.xml | 20 | ||||
-rwxr-xr-x | res/values/dimens.xml | 3 |
3 files changed, 28 insertions, 5 deletions
diff --git a/res/layout/redaction_interstitial.xml b/res/layout/redaction_interstitial.xml index c56db11..6f0ba2e 100644 --- a/res/layout/redaction_interstitial.xml +++ b/res/layout/redaction_interstitial.xml @@ -26,7 +26,7 @@ <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/redaction_vertical_margins" android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" android:text="@string/lock_screen_notifications_interstitial_message" @@ -35,7 +35,7 @@ <RadioGroup android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/redaction_vertical_margins" android:layout_marginStart="?android:attr/listPreferredItemPaddingStart" android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd" android:checkedButton="@+id/redact_sensitive"> @@ -44,21 +44,21 @@ android:id="@+id/show_all" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/redaction_vertical_margins" android:text="@string/lock_screen_notifications_summary_show" /> <RadioButton android:id="@+id/redact_sensitive" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/redaction_vertical_margins" android:text="@string/lock_screen_notifications_summary_hide" /> <RadioButton android:id="@+id/hide_all" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="16dp" + android:layout_marginTop="@dimen/redaction_vertical_margins" android:text="@string/lock_screen_notifications_summary_disable" /> </RadioGroup> diff --git a/res/values-h330dp/dimens.xml b/res/values-h330dp/dimens.xml new file mode 100644 index 0000000..eae9660 --- /dev/null +++ b/res/values-h330dp/dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> + +<resources> + <!-- RedactionInterstitial --> + <dimen name="redaction_vertical_margins">16dp</dimen> +</resources>
\ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 8f440ef..a494db9 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -230,4 +230,7 @@ <dimen name="color_swatch_size">16dp</dimen> <dimen name="color_swatch_stroke_width">4dp</dimen> + <!-- RedactionInterstitial --> + <dimen name="redaction_vertical_margins">8dp</dimen> + </resources> |