From 8944c9d08b6585b25161ecafc60014e158ef3a25 Mon Sep 17 00:00:00 2001 From: "mcasas@webrtc.org" Date: Tue, 4 Nov 2014 17:26:22 +0000 Subject: [PATCH] AppRTCDemoActivity: use differnet Themes for different API levels The current AndroidManifest.xml hardcodes a Theme that is only available in Android L or later (Material). To maintain backwards compatibility, and for better App style, create a single Theme/Style and define it for different APIs. I tested this in two Nexus %, one with prerelease L and another with a KK 4.4.2 and the Theme is indeed automagically updated :) Note that this is compatible with https://webrtc-codereview.appspot.com/26979004/ R=glaznev@webrtc.org Review URL: https://webrtc-codereview.appspot.com/26019004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7619 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/examples/android/AndroidManifest.xml | 4 ++-- talk/examples/android/res/values-v21/styles.xml | 8 ++++++++ talk/examples/android/res/values/styles.xml | 8 ++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 talk/examples/android/res/values-v21/styles.xml create mode 100644 talk/examples/android/res/values/styles.xml diff --git a/talk/examples/android/AndroidManifest.xml b/talk/examples/android/AndroidManifest.xml index 30fd46c01b..e24942a136 100644 --- a/talk/examples/android/AndroidManifest.xml +++ b/talk/examples/android/AndroidManifest.xml @@ -7,7 +7,7 @@ - + @@ -43,7 +43,7 @@ android:label="@string/app_name" android:screenOrientation="fullUser" android:configChanges="orientation|screenSize" - android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"> + android:theme="@style/AppRTCDemoActivityTheme"> diff --git a/talk/examples/android/res/values-v21/styles.xml b/talk/examples/android/res/values-v21/styles.xml new file mode 100644 index 0000000000..95f1ac68a3 --- /dev/null +++ b/talk/examples/android/res/values-v21/styles.xml @@ -0,0 +1,8 @@ + + + + diff --git a/talk/examples/android/res/values/styles.xml b/talk/examples/android/res/values/styles.xml new file mode 100644 index 0000000000..7f809a6579 --- /dev/null +++ b/talk/examples/android/res/values/styles.xml @@ -0,0 +1,8 @@ + + + +