actionbarsherlock

MapFragment blocked or stunned when application is killed or state saved

三世轮回 提交于 2019-12-25 04:57:25
问题 I'm getting problems using MapFragment + ListFragment in an Activity, when I use show() and hide() method, everything works ok, but when I have my application in background and I return, I get the GoogleMap stunned or blocked, and I don't know what to do to solve that. The only solution I got to work fine, is using replace transactions, but I don't like this way, because in every transaction we should initiate all map place balloons, and it doesn't keep your last camera location, so... I don

Showing dividers between menu items in android actionbar

倖福魔咒の 提交于 2019-12-25 03:24:13
问题 I want show dividers between menu items in android actionbar Icon1 | Icon2 | icon3 my code for showing menu items is <item android:id="@+id/menu_time" android:icon="@drawable/action_time_btn_stateful" android:title="time" peel:showAsAction="always"/> <item android:id="@+id/menu_room_change" android:icon="@drawable/action_room_btn_stateful" android:title="change" peel:showAsAction="always"/> <item android:id="@+id/menu_like_set" android:icon="@drawable/like_button" android:title="Like" peel

ViewPagerIndicator drawable resource not found

[亡魂溺海] 提交于 2019-12-24 19:33:37
问题 I have a project that is using both ActionBarSherloc k and ViewPagerIndicator . I had some issues including both as a library, so what I ended up doing was making ViewPagerIndicator include ActionBarSherlock as a library and remove the support v4 jar from ViewPagerIndicator (see this post: Using ActionBarSherlock & ViewPagerIndicator Syncronously Will Not Compile). Everything builds and my app runs, but when I inflate a view with a TabIndicator , a resource not found exception is thrown. I've

Spinner options (an IcsSpinner from ABS) inside DialogFragment are displayed truncated

扶醉桌前 提交于 2019-12-24 14:43:05
问题 I have the following problem displaying a Spinner inside a DialogFragment . The Spinner is displayed cut and it's only displayed OK when the keyboard appears. The Spinner is actually a custom class with the following code: import android.content.Context; import android.util.AttributeSet; import com.actionbarsherlock.internal.widget.IcsSpinner; public class CustomIcsSpinner extends IcsSpinner { public CustomIcsSpinner(Context context, AttributeSet attrs) { super(context, attrs, com

Actionbarsherlock Google Maps not showing tiles

折月煮酒 提交于 2019-12-24 14:12:12
问题 I am trying to get a Google Map with a static actionbarsherlock. I have done it but the map is not loaded (no tiles are loaded). I am sure that my Google Map key is correct, and I don't know what is the problem. Can you help me? In the zip file there is my little project. http://www.michelepierri.it/DEMOCHOOSER.zip this is my code: MapSimple.java package com.actionbarsherlock.sample.maps; import com.actionbarsherlock.ActionBarSherlock; import com.actionbarsherlock.app2.SherlockMapActivity;

How to increase icon size of actionButton in SherlockActionBar?

心已入冬 提交于 2019-12-24 12:19:22
问题 To define the actionButton and set its icon, I would: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/m_login" android:enabled="true" android:showAsAction="always" android:icon="@drawable/login"/> </menu> The resulted icon(drawable/ldpi) looks very small by default: (Any way to increase the size?) Here's the icon: 回答1: First of all I suggest you to try with different sizes of the icon which you want, without no paddings until you achieve your goal. If

Error: No resource found that matches the given name: attr 'abBackground'

ε祈祈猫儿з 提交于 2019-12-24 10:34:33
问题 I'm using ActionBarSherlock , and want to use a custom background for both the ActionBar and the content view below it. When I try this, the background fills the whole screen, including the actionbar: <style name="MyTheme" parent="@style/Theme.Sherlock"> <item name="android:windowBackground">@drawable/background</item> </style> So, from this answer, I tried to add abBackground to the theme: <style name="MyTheme" parent="@style/Theme.Sherlock"> <item name="android:windowBackground">@drawable

Actionbarsherlock getHeight() returns 0

自古美人都是妖i 提交于 2019-12-24 09:23:58
问题 I'm using Actionbarsherlock and I want to place a PopupWindow right below the action bar. Using the showAtLocation() takes an x and y offset, so ideally the y offset would be the height of the action bar. But when I call int abHeight = getSupportActionBar().getHeight(); it returns zero. I'm using a SherlockFragmentActivity Here's the relevant code: slidingLayout = inflater.inflate(R.layout.sliding_menu, null); menuDrawer = MenuDrawer.attach(this, MenuDrawer.MENU_DRAG_CONTENT, Position.LEFT);

How to import SlidingMenu on my project with ActionBarSherlock 4.2.0 [closed]

只谈情不闲聊 提交于 2019-12-24 07:59:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I found https://github.com/jfeinstein10/SlidingMenu very interesting and I want to use it on my existing project with actionbarsherlock 4.2. I have imported the library of the slidingmenu as an existing project

How to implement search widget with a listview using SherlockActionbar?

痴心易碎 提交于 2019-12-24 07:09:29
问题 So, I'm trying to implement this code (https://stackoverflow.com/a/14085524/2213992) on my application but no success so far. This is my MainActivity.java: import java.util.List; import android.app.SearchManager; import android.content.Context; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.SearchView; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.SherlockListActivity; import com.actionbarsherlock.view.Menu; import com