actionbarsherlock

Android - How to handle orientation of FragmentActivity?

做~自己de王妃 提交于 2019-12-24 04:01:36
问题 I am currently using the Sherlock package and the view indicator package in my application to create a view pager with the titles at the top and then the action bar over that. For the most part it works OK however I have noticed that invalidateOptionsMenu() stops working after a screen orientation change. When my app loads it works fine until I rotate the device to landscape mode, from then on the invalidateOptionsMenu() call never invokes the onCreateOptionsMenu(Menu menu) method. It's a

How can I change the touch affect color of Actions with ActionBarSherlock?

拟墨画扇 提交于 2019-12-24 03:40:46
问题 I have several actions all of which display properly. When I click the actions however, the color comes up as the default blueish color and it looks awful with my app. How can I change the 'selected' color of the Action? This is basically a duplicate of this question, except that one doesn't deal with ActionBarSherlock. EDIT Using the accepted answer, I am getting this error after adjusting style.xml The error is error: Error retrieving parent for item: No resource found that matches given

How to use actionbarsherlock for Google maps menu?

流过昼夜 提交于 2019-12-24 03:15:22
问题 Please view image of Google maps fig 1. from the link below: http://www.androidpatterns.com/uap_pattern/search-%E2%80%93-main-menu Currently onCreateOptionsMenu(Menu menu) {} will add menu to action bar. How to create menu below? Finally: How do I control both Menu options below and Action bar above. Is there any source code or demo for the same available. 回答1: On pre-Honeycomb the overflow menu for ActionBarSherlock (that is, item that do not fit into the action bar) will be placed in the

Maven, ActionBarSherlock v4 and Roboguice v2 - How do I get it to build?

不羁的心 提交于 2019-12-24 02:04:03
问题 I'm trying to build a project to uses both ActionBarSherlock v4 and Roboguice v2 (I like beeing of the bleeding edge :) ). The problem is that ABS uses a slightly modified compatibility library, that Roboguice needs. I got it working fine under Eclipse by adding actionbarsherlock-plugin-compat-lib-4.0.0-SNAPSHOT , roboguice-2.0b3 and the ActionBarSherlock project. Now the problem is that under Maven, I need to include the following dependency because of Roboguice: <dependency> <groupId

Maven, ActionBarSherlock v4 and Roboguice v2 - How do I get it to build?

风流意气都作罢 提交于 2019-12-24 02:03:01
问题 I'm trying to build a project to uses both ActionBarSherlock v4 and Roboguice v2 (I like beeing of the bleeding edge :) ). The problem is that ABS uses a slightly modified compatibility library, that Roboguice needs. I got it working fine under Eclipse by adding actionbarsherlock-plugin-compat-lib-4.0.0-SNAPSHOT , roboguice-2.0b3 and the ActionBarSherlock project. Now the problem is that under Maven, I need to include the following dependency because of Roboguice: <dependency> <groupId

Unable to use ActionBarSherlock library

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:08:05
问题 I have Created a new android project from existing source(ActionBarSherlock library) with API 15. I added this library to my project( Project properties -> android -> library-> add ->com_actionbarsherlock ->apply ->ok ).But When I again see (Project properties -> android -> library->) com_actionbarsherlock is showing red color cross .So, I am unable to import the library classes.I am really struggling with this. I have attached two screen shots Screen Shot When I add library and Screen Shot

NullPointerException on setShareIntent using ActionBarSherlock

别来无恙 提交于 2019-12-24 00:43:21
问题 I'm trying to use ActionBarSherlock + ShareActionProvider in a SherlockActivity. I've already checked this ( NullPointerException using ShareActionProvider + actionbarsherlock) but it doesn't solve my problem. I think the code is correct, but I keep getting FC and this logcat: 07-25 15:31:26.758: E/AndroidRuntime(911): FATAL EXCEPTION: main 07-25 15:31:26.758: E/AndroidRuntime(911): java.lang.NullPointerException 07-25 15:31:26.758: E/AndroidRuntime(911): at com.corsalini.david.calcolopesi

How to change the color of actionbar (actionbarsherlock)

末鹿安然 提交于 2019-12-24 00:33:45
问题 How to change the color of actionbar (actionbarsherlock) ? I've been tried below code but no luck. <style name="MyTheme.ActionBarStyle" parent="Widget.Sherlock.ActionBar"> <item name="background">#ffffffff</item> </style> <style name="Theme.SherlockCustom" parent="@style/Theme.Sherlock.Light"> <item name="actionBarStyle">@style/MyTheme.ActionBarStyle</item> </style> +and one thing more, i'm add submenu like below. this button's background color is also white(because Sherlock Theme). could i

setEmptyView() doesn't seem to work for (Sherlock)ListFragment

前提是你 提交于 2019-12-23 22:27:52
问题 I have a ListFragment and I want to set its empty view, so I use the following code: View emptyView = getLayoutInflater().inflate(R.layout.collection_empty_view, null); detailFragment.getListView().setEmptyView(emptyView); for the following xml layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/empty" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" > <TextView

Android 2.0 : Support Actionbar library (appcompat v7 support library without resources):No resource found @style/Theme.AppCompat.Light.DarkActionBar

不问归期 提交于 2019-12-23 16:31:28
问题 I followed the http://developer.android.com/guide/topics/ui/actionbar.html link for implementing ActionBar in Android 2.0 I have followed the following procedures. i) Create a new Project ii) Create a libs folder in my project iii)include android-support-v13.jar & android-support-v7-appcompat.jar files and add them in build path My Manifiest xml file is <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.tgactionbar"