Define a specific preferenceFragmentStyle in Settings Theme
- needed for being able to have PreferenceFragments look as the Dashboard See bug: #15384992 Setting Dashboard - padding updates Change-Id: I098008a131aa29594025b38dd0dc07c1cc3bffdc
This commit is contained in:
29
res/drawable/default_preference_background.xml
Normal file
29
res/drawable/default_preference_background.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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.
|
||||
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.
|
||||
-->
|
||||
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="0dip"
|
||||
android:insetTop="0dip"
|
||||
android:insetRight="0dip"
|
||||
android:insetBottom="0dip">
|
||||
|
||||
<shape android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/default_preference_background_color" />
|
||||
|
||||
</shape>
|
||||
|
||||
</inset>
|
29
res/drawable/preference_list_fragment_background.xml
Normal file
29
res/drawable/preference_list_fragment_background.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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.
|
||||
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.
|
||||
-->
|
||||
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="0dip"
|
||||
android:insetTop="0dip"
|
||||
android:insetRight="0dip"
|
||||
android:insetBottom="0dip">
|
||||
|
||||
<shape android:shape="rectangle">
|
||||
|
||||
<solid android:color="@color/preference_list_fragment_background_color" />
|
||||
|
||||
</shape>
|
||||
|
||||
</inset>
|
@@ -15,14 +15,14 @@
|
||||
-->
|
||||
|
||||
<inset xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:insetLeft="@dimen/dashboard_padding_start"
|
||||
android:insetTop="@dimen/dashboard_padding_top"
|
||||
android:insetRight="@dimen/dashboard_padding_end"
|
||||
android:insetBottom="@dimen/dashboard_padding_bottom">
|
||||
android:insetLeft="0dip"
|
||||
android:insetTop="0dip"
|
||||
android:insetRight="0dip"
|
||||
android:insetBottom="0dip">
|
||||
|
||||
<shape android:shape="rectangle">
|
||||
|
||||
<solid android:color="@android:color/white" />
|
||||
<solid android:color="@color/search_panel_list_background_color" />
|
||||
|
||||
</shape>
|
||||
|
||||
|
Reference in New Issue
Block a user