aboutsummaryrefslogtreecommitdiffstats
path: root/res/values/styles.xml
diff options
context:
space:
mode:
authorFlorian Edelmann <florian-edelmann@online.de>2014-02-23 17:58:18 +0100
committerJorge Ruesga <jorge@ruesga.com>2014-03-10 11:04:36 +0100
commit00f1ea75b0a01eee3d5ece23e59610d6b4586c60 (patch)
treea8b50dbcdbc2d6db5f13f70feb19c103ff67c1e3 /res/values/styles.xml
parentb3f536b0a36f4b76283a038cce29acb27e17fd6d (diff)
downloadandroid_packages_apps_CMFileManager-00f1ea75b0a01eee3d5ece23e59610d6b4586c60.tar.gz
android_packages_apps_CMFileManager-00f1ea75b0a01eee3d5ece23e59610d6b4586c60.tar.bz2
android_packages_apps_CMFileManager-00f1ea75b0a01eee3d5ece23e59610d6b4586c60.zip
[CMFM] bookmarks and history in a navigation drawer
* used a modified version of DrawerLayout from the Support Library * moved bookmarks and history there -> always accessible * added a drawer icon * made all themeable * removed the BookmarksActivity and HistoryActivity * removed the BookmarksAdapter and HistoryAdapter as they are useless for LinearLayouts. I couldn't use ListViews because they scroll vertically - as well as the drawer itself. * removed the layouts for bookmarks and history Patch Set 2: tab cleanup and reset code I didn't touch Patch Set 3: fixed a FC after changing the theme when settings were opened by the drawer's overflow menu Patch Set 4: updated commit message Patch Set 5: updated commit message Patch Set 6: disabled "clear history" ActionBar action when history is empty Patch Set 7: fixed code style, fixed theme change issue with history items in the drawer, updated theme previews Patch Set 8: remove trailing whitespaces Change-Id: I215211e771ec7c96a2a669cdcc440556c310d6db
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r--res/values/styles.xml22
1 files changed, 15 insertions, 7 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index b6cd4a32..81b80a6a 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -15,16 +15,14 @@
limitations under the License.
-->
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" xmlns:android="http://schemas.android.com/apk/res/android">
+
<!-- Base themes -->
<style name="FileManager.Theme.Holo.Light" parent="@android:style/Theme.Holo.Light">
<item name="android:windowBackground">@color/default_background</item>
<item name="android:actionBarStyle">@style/FileManager.Widget.ActionBar.White</item>
- <item name="android:homeAsUpIndicator">@drawable/ic_ab_back_holo_light</item>
- </style>
- <style name="FileManager.Theme.Holo" parent="@android:style/Theme.Holo">
- <item name="android:homeAsUpIndicator">@drawable/ic_ab_back_holo_light</item>
</style>
+ <style name="FileManager.Theme.Holo" parent="@android:style/Theme.Holo"></style>
<!-- A theme with overlay -->
<style name="FileManager.Theme.Holo.Light.Overlay" parent="@style/FileManager.Theme.Holo.Light">
@@ -113,7 +111,7 @@
<item name="android:minWidth">@dimen/breadcrumb_item_min_size</item>
</style>
- <!-- Breadcrumb ActionBar buttom -->
+ <!-- Breadcrumb ActionBar buttom -->
<style name="breadcrumb_actionbar_buttom">
<item name="android:paddingLeft">@dimen/extra_margin</item>
<item name="android:paddingRight">@dimen/default_margin</item>
@@ -140,4 +138,14 @@
<item name="android:layout_marginRight">@dimen/default_margin</item>
<item name="android:background">@color/divider_color</item>
</style>
-</resources>
+
+ <!-- Navigation drawer -->
+ <style name="drawer_header">
+ <item name="android:padding">@dimen/default_margin</item>
+ <item name="android:textAllCaps">true</item>
+ <item name="android:textSize">@dimen/primary_text_size</item>
+ <item name="android:textColor">@color/black_transparent</item>
+ <item name="android:textStyle">bold</item>
+ </style>
+
+</resources> \ No newline at end of file