From 816ed4a802a522749ab81611e55199b6e91cb1b1 Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Tue, 8 Dec 2015 13:20:52 +0000 Subject: [PATCH] Demo showing Theme.AppCompat.DayNight usage Change-Id: If3f98acb64cc767ac3d4251e6f02e55b10b173e0 --- samples/Support7Demos/AndroidManifest.xml | 30 ++++++++ .../res/layout/appcompat_night_mode.xml | 45 ++++++++++++ samples/Support7Demos/res/values/strings.xml | 8 +++ .../app/AppCompatNightModeActivity.java | 53 ++++++++++++++ .../app/AppCompatNightModeAlertDialog.java | 65 +++++++++++++++++ .../app/AppCompatNightModeDialog.java | 70 +++++++++++++++++++ 6 files changed, 271 insertions(+) create mode 100644 samples/Support7Demos/res/layout/appcompat_night_mode.xml create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatNightModeActivity.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatNightModeAlertDialog.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatNightModeDialog.java diff --git a/samples/Support7Demos/AndroidManifest.xml b/samples/Support7Demos/AndroidManifest.xml index e1a0f98ae..8e0381269 100644 --- a/samples/Support7Demos/AndroidManifest.xml +++ b/samples/Support7Demos/AndroidManifest.xml @@ -31,6 +31,9 @@ reading images from the media store from API v19+. --> + + + + + + + + +