actionbarsherlock

ActionBar BUG: List mode navigation not visible after using SearchView

北城以北 提交于 2020-01-31 04:29:06
问题 Project demonstrating this bug: https://github.com/smarek/ActionBar-Navigation-Bug Bugreport on b.android.com : http://code.google.com/p/android/issues/detail?id=51449 I'm currently facing an issue with ActionBar. Let's have a ViewPager+PagerTitleStrip and 3 Fragments. User flow: Open application First Fragment has set navigation mode to NAVIGATION_MODE_LIST Other Fragments has NAVIGATION_MODE_STANDARD All Fragments has options menu item with SearchView Go to second or third and open search

How to show icons in ActionBar overflow menu?

冷暖自知 提交于 2020-01-31 04:10:30
问题 I want to display icon in addition to menu item title in overflow dropdown menu. Is is possible? 回答1: put your menu with property android:showAsAction="always" and in xml file of menu add sub menus under that your menu like this <item android:id="@+id/mainMenu" android:icon="@drawable/launcher" android:showAsAction="always"> <menu> <item android:id="@+id/menu_logout" android:icon="@drawable/log_out" android:title="logout"/> </menu> </item> this will show the icons in menus 回答2: There is

Lollipop Theme issue

吃可爱长大的小学妹 提交于 2020-01-24 11:44:45
问题 I am using sherlock action bar in my project, I have used Theme.Sherlock.Light.DarkActionBar <style name="AppTheme" parent="Theme.Sherlock.Light.DarkActionBar"> <item name="android:homeAsUpIndicator">@drawable/transparent</item> <item name="homeAsUpIndicator">@drawable/transparent</item> <item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:titleTextStyle">@style/Widget.MyTheme

Lollipop Theme issue

情到浓时终转凉″ 提交于 2020-01-24 11:43:38
问题 I am using sherlock action bar in my project, I have used Theme.Sherlock.Light.DarkActionBar <style name="AppTheme" parent="Theme.Sherlock.Light.DarkActionBar"> <item name="android:homeAsUpIndicator">@drawable/transparent</item> <item name="homeAsUpIndicator">@drawable/transparent</item> <item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:titleTextStyle">@style/Widget.MyTheme

Lollipop Theme issue

ぃ、小莉子 提交于 2020-01-24 11:43:28
问题 I am using sherlock action bar in my project, I have used Theme.Sherlock.Light.DarkActionBar <style name="AppTheme" parent="Theme.Sherlock.Light.DarkActionBar"> <item name="android:homeAsUpIndicator">@drawable/transparent</item> <item name="homeAsUpIndicator">@drawable/transparent</item> <item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:titleTextStyle">@style/Widget.MyTheme

Lollipop Theme issue

走远了吗. 提交于 2020-01-24 11:43:25
问题 I am using sherlock action bar in my project, I have used Theme.Sherlock.Light.DarkActionBar <style name="AppTheme" parent="Theme.Sherlock.Light.DarkActionBar"> <item name="android:homeAsUpIndicator">@drawable/transparent</item> <item name="homeAsUpIndicator">@drawable/transparent</item> <item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item> <item name="android:titleTextStyle">@style/Widget.MyTheme

Styling the Actionbarsherlock tabs

烈酒焚心 提交于 2020-01-22 10:02:15
问题 So I'm trying to style the tabs of my Actionbar, which I've implemented using the ActionBarSherlock library. This is my code: <style name="Theme.AndroidDevelopers" parent="Theme.Sherlock.Light.ForceOverflow"> <item name="actionBarTabStyle">@style/CustomActionBarStyle</item> <item name="android:actionBarTabStyle">@style/CustomActionBarStyle</item> <style name="CustomActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.TabBar"> <item name="android:background">@drawable/actionbar_tab_bg</item

Action bar being shown below its tabs

佐手、 提交于 2020-01-21 11:29:28
问题 When i set these attributes: actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(true); actionBar.setTitle("Title"); actionBar.setLogo(null); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); The ActionBar is below its Tabs . But if i comment this Like: actionBar.setDisplayShowHomeEnabled(false); It works fine. But the reason i want it to be false is, to avoid the appIcon

Action bar being shown below its tabs

依然范特西╮ 提交于 2020-01-21 11:29:10
问题 When i set these attributes: actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayShowHomeEnabled(false); actionBar.setDisplayShowTitleEnabled(true); actionBar.setTitle("Title"); actionBar.setLogo(null); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); The ActionBar is below its Tabs . But if i comment this Like: actionBar.setDisplayShowHomeEnabled(false); It works fine. But the reason i want it to be false is, to avoid the appIcon

java.lang.RuntimeException Theme.Sherlock

天大地大妈咪最大 提交于 2020-01-21 11:17:08
问题 I have put an update on google play and see this error : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jim2/com.jim2.SettingWidgetActivity}: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831) at android.app.ActivityThread.access