From 1d0b80a25c30ba9da676e915b34236def962a12f Mon Sep 17 00:00:00 2001 From: Cyril Mottier Date: Thu, 1 Sep 2011 22:33:10 +0200 Subject: [PATCH] Remove the static limit of 3 items in the ActionBar The limit is now set in the theme. The default value is still 3 as this is considered as the maximum number of global actions a screen SHOULD have. Please do not change this value unless you are completely aware of what you are doing. Modifying it may impair user experience. If you really have a large number of actions, please consider QuickActions. Closes #36 --- GreenDroid/res/values/gd_attrs.xml | 2 ++ GreenDroid/res/values/gd_styles.xml | 1 + GreenDroid/res/values/gd_themes.xml | 1 + GreenDroid/src/greendroid/widget/ActionBar.java | 6 ++++-- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/GreenDroid/res/values/gd_attrs.xml b/GreenDroid/res/values/gd_attrs.xml index a91252a..b92a340 100644 --- a/GreenDroid/res/values/gd_attrs.xml +++ b/GreenDroid/res/values/gd_attrs.xml @@ -86,6 +86,7 @@ + @@ -169,6 +170,7 @@ + diff --git a/GreenDroid/res/values/gd_styles.xml b/GreenDroid/res/values/gd_styles.xml index 1fea206..8858bfe 100644 --- a/GreenDroid/res/values/gd_styles.xml +++ b/GreenDroid/res/values/gd_styles.xml @@ -154,6 +154,7 @@ ?attr/gdActionBarDividerDrawable ?attr/gdActionBarDividerWidth ?attr/gdActionBarHomeDrawable + ?attr/gdActionBarMaxItems