From 7f85891d59bdbc5585ce81f63de7d29527c4f4f6 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Tue, 20 Nov 2012 19:06:29 +0100 Subject: [PATCH] Created styles for dark and light theme --- AndroidManifest.xml | 17 ++--- res/values-port/styles.xml | 6 -- res/values/attrs.xml | 27 ++++++++ res/values/styles.xml | 68 ++++++++++++++++--- .../antennapod/activity/AboutActivity.java | 1 + 5 files changed, 91 insertions(+), 28 deletions(-) delete mode 100644 res/values-port/styles.xml create mode 100644 res/values/attrs.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9fd4c7404..2ed5857c2 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -29,12 +29,11 @@ android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:logo="@drawable/ic_launcher" - android:theme="@style/Theme.Sherlock.Light.ForceOverflow" > + android:theme="@style/Theme.AntennaPod.Light" > + android:label="@string/app_name"> @@ -75,8 +74,7 @@ android:name=".activity.AudioplayerActivity" android:configChanges="keyboardHidden|orientation" android:launchMode="singleTask" - android:screenOrientation="portrait" - android:theme="@style/Theme.MediaPlayer" /> + android:screenOrientation="portrait"/> + android:label="@string/about_pref"> + android:configChanges="keyboardHidden|orientation"> + android:screenOrientation="landscape"> diff --git a/res/values-port/styles.xml b/res/values-port/styles.xml deleted file mode 100644 index 268acde11..000000000 --- a/res/values-port/styles.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 000000000..eb87bc03a --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/values/styles.xml b/res/values/styles.xml index 88db1f5cd..a7784577d 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1,18 +1,64 @@ - - - - - - + + + + + \ No newline at end of file diff --git a/src/de/danoeh/antennapod/activity/AboutActivity.java b/src/de/danoeh/antennapod/activity/AboutActivity.java index 625ef6c99..54240c5c7 100644 --- a/src/de/danoeh/antennapod/activity/AboutActivity.java +++ b/src/de/danoeh/antennapod/activity/AboutActivity.java @@ -15,6 +15,7 @@ public class AboutActivity extends SherlockActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + getSupportActionBar().hide(); setContentView(R.layout.about); webview = (WebView) findViewById(R.id.webvAbout); webview.loadUrl("file:///android_asset/about.html");