From 58bf5b99e6132332afb8b44b4c8cedf5756ad464 Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Mon, 5 Jan 2015 15:54:17 +0000 Subject: [PATCH] Update Support7Demos with Dialog and Preferences samples Also move to AppCompatActivity Depends on I88a7e4de5de85477982e401c832aeae732f81647 Change-Id: I47c6a60ad07915cc391f8b757fef24785874d7ef --- samples/Support7Demos/AndroidManifest.xml | 18 +++ .../res/layout/dialog_content.xml | 33 +++++ .../Support7Demos/res/layout/dialog_usage.xml | 38 ++++++ samples/Support7Demos/res/values/arrays.xml | 6 + samples/Support7Demos/res/values/strings.xml | 5 + samples/Support7Demos/res/xml/preferences.xml | 34 +++++ .../app/ActionBarDisplayOptions.java | 6 +- .../supportv7/app/ActionBarFragmentMenu.java | 10 +- .../supportv7/app/ActionBarMechanics.java | 4 +- .../supportv7/app/ActionBarPreferences.java | 50 +++++++ ...tionBarSettingsActionProviderActivity.java | 7 +- .../android/supportv7/app/ActionBarTabs.java | 7 +- .../android/supportv7/app/ActionBarUsage.java | 4 +- .../app/ActionBarWithDrawerLayout.java | 6 +- .../app/AppCompatPreferenceActivity.java | 128 ++++++++++++++++++ .../android/supportv7/app/DialogUsage.java | 106 +++++++++++++++ .../supportv7/app/ToolbarDisplayOptions.java | 8 +- .../app/ToolbarFragmentPagerMenu.java | 7 +- .../android/supportv7/app/ToolbarUsage.java | 17 +-- .../supportv7/graphics/PaletteActivity.java | 4 +- .../graphics/PaletteDetailActivity.java | 5 +- .../SampleMediaRouteSettingsActivity.java | 4 +- .../media/SampleMediaRouterActivity.java | 29 ++-- 23 files changed, 467 insertions(+), 69 deletions(-) create mode 100644 samples/Support7Demos/res/layout/dialog_content.xml create mode 100644 samples/Support7Demos/res/layout/dialog_usage.xml create mode 100644 samples/Support7Demos/res/xml/preferences.xml create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/ActionBarPreferences.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/AppCompatPreferenceActivity.java create mode 100644 samples/Support7Demos/src/com/example/android/supportv7/app/DialogUsage.java diff --git a/samples/Support7Demos/AndroidManifest.xml b/samples/Support7Demos/AndroidManifest.xml index 1d087a470..53317ffb8 100644 --- a/samples/Support7Demos/AndroidManifest.xml +++ b/samples/Support7Demos/AndroidManifest.xml @@ -204,6 +204,15 @@ + + + + + + + @@ -235,6 +244,15 @@ + + + + + + + diff --git a/samples/Support7Demos/res/layout/dialog_content.xml b/samples/Support7Demos/res/layout/dialog_content.xml new file mode 100644 index 000000000..77349607d --- /dev/null +++ b/samples/Support7Demos/res/layout/dialog_content.xml @@ -0,0 +1,33 @@ + + + + + + + + + + \ No newline at end of file diff --git a/samples/Support7Demos/res/layout/dialog_usage.xml b/samples/Support7Demos/res/layout/dialog_usage.xml new file mode 100644 index 000000000..4ef062668 --- /dev/null +++ b/samples/Support7Demos/res/layout/dialog_usage.xml @@ -0,0 +1,38 @@ + + + + + + + +