diff --git a/Android.mk b/Android.mk index 09ce955218b..2adad1f5de2 100644 --- a/Android.mk +++ b/Android.mk @@ -2,7 +2,14 @@ LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt telephony-common ims-common -LOCAL_STATIC_JAVA_LIBRARIES := android-support-v4 android-support-v13 jsr305 +LOCAL_STATIC_JAVA_LIBRARIES := \ + android-support-v4 \ + android-support-v13 \ + android-support-v7-recyclerview \ + android-support-v7-preference \ + android-support-v7-appcompat \ + android-support-v14-preference \ + jsr305 LOCAL_MODULE_TAGS := optional @@ -10,7 +17,11 @@ LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ src/com/android/settings/EventLogTags.logtags -LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res +LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \ + frameworks/support/v7/preference/res \ + frameworks/support/v14/preference/res \ + frameworks/support/v7/appcompat/res \ + frameworks/support/v7/recyclerview/res LOCAL_PACKAGE_NAME := Settings LOCAL_CERTIFICATE := platform @@ -18,6 +29,9 @@ LOCAL_PRIVILEGED_MODULE := true LOCAL_PROGUARD_FLAG_FILES := proguard.flags +LOCAL_AAPT_FLAGS := --auto-add-overlay \ + --extra-packages android.support.v7.preference:android.support.v14.preference:android.support.v17.preference:android.support.v7.appcompat:android.support.v7.recyclerview + ifneq ($(INCREMENTAL_BUILDS),) LOCAL_PROGUARD_ENABLED := disabled LOCAL_JACK_ENABLED := incremental diff --git a/res/layout/dream_info_row.xml b/res/layout/dream_info_row.xml index 7ed26cba5b0..1a4dc8efa8f 100644 --- a/res/layout/dream_info_row.xml +++ b/res/layout/dream_info_row.xml @@ -13,75 +13,66 @@ See the License for the specific language governing permissions and limitations under the License. --> - + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:clickable="true" + android:focusable="true" + android:orientation="horizontal" + android:background="?android:attr/selectableItemBackground" > - + - + - + - + - + - - - - - - + @@ -91,9 +82,6 @@ android:id="@android:id/button2" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_alignBottom="@android:id/widget_frame" - android:layout_alignParentEnd="true" - android:layout_alignTop="@android:id/widget_frame" android:layout_centerVertical="true" android:layout_margin="0dip" android:background="?android:attr/selectableItemBackground" @@ -103,4 +91,4 @@ android:focusable="true" android:src="@drawable/ic_bt_config" /> - + diff --git a/res/layout/layout_preference_frame.xml b/res/layout/layout_preference_frame.xml new file mode 100644 index 00000000000..eec3d7af345 --- /dev/null +++ b/res/layout/layout_preference_frame.xml @@ -0,0 +1,18 @@ + + diff --git a/res/layout/notification_log_row.xml b/res/layout/notification_log_row.xml index cf8b112bd02..d7f57c60b07 100644 --- a/res/layout/notification_log_row.xml +++ b/res/layout/notification_log_row.xml @@ -120,4 +120,4 @@ /> - \ No newline at end of file + diff --git a/res/layout/preference_list_fragment.xml b/res/layout/preference_list_fragment.xml index 2e9299c78f9..7eb151145ab 100644 --- a/res/layout/preference_list_fragment.xml +++ b/res/layout/preference_list_fragment.xml @@ -29,11 +29,13 @@ android:layout_height="wrap_content" android:visibility="gone" /> - - diff --git a/res/layout/preference_material_settings.xml b/res/layout/preference_material_settings.xml index f2dd2e148ca..b8a00f2783d 100644 --- a/res/layout/preference_material_settings.xml +++ b/res/layout/preference_material_settings.xml @@ -27,7 +27,7 @@ android:clipToPadding="false"> + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index a08b2e88161..62c34ea3d18 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -19,7 +19,7 @@ - + diff --git a/res/values/themes.xml b/res/values/themes.xml index b1bf390b898..0aac3165430 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -89,6 +89,7 @@ -