actionbarsherlock

Problems implementing tabs in ActionBarSherlock 4

拈花ヽ惹草 提交于 2019-12-22 03:46:18
问题 I really want to get this to work, but I feel like I've been floundering about for hours. I'm starting up a new app and want to try to follow the UI guidelines as close as possible, which for anything below ice-cream sandwich seems to mean I need to use ActionBarSherlock. Looking at the example here it looks like it should be straightforward. I try to implement it and it doesn't work because FragmentActivity does not have a getSupportActionBar() method. Taking a look at the demo app and it

How to build an app with Actionbar ,Tab support and MapView

夙愿已清 提交于 2019-12-22 01:22:41
问题 I am building an app which looks something like this. It has a action bar and Tabs as shown below. Tab 1: Should display images with ViewPage and indicator. Tab 2: Should display maps. I am new to android, but still somehow managed to build an app using internet resources and with the help of samples source. But i got stuck near mapview (when click on Tab2). I used TabHost, but this dint work, later on came to know that google has released new API supporting Map fragments. I even used Google

How to get values from grid view

血红的双手。 提交于 2019-12-22 01:20:15
问题 I have a gridview with editTexts as the individual views in it. I want to save the values that are in each of the editTexts because they are dissapearing when I switch to another fragment or press the home button, so how do I do that? Would I need an array or arraylist that holds all of the views? How would I get the views if I did that? fragment_score_red.xml <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http:/

Strange offset behavior on slidingmenu

江枫思渺然 提交于 2019-12-22 01:16:59
问题 i´m trying to include the SlidingMenu to my application. It combines the 3 libraries ActionBarSherlock / ViewPagerIndicator / SlidingMenu. Well the problem is if i´m sliding to the right to expand the SlidingMenu it has no Offset. That means the hole screen will be filled by the menu. If i´m pressing the toggle button it looks really strange. It seems that he got the offset but look on the picture... If i´m pressing the toggle button twice it looks like it should -.-' Any idea what i have

ActionBarSherlock animation moves position

纵然是瞬间 提交于 2019-12-21 20:05:21
问题 I have a menu option in my ActionBarSherlock Actionbar that kicks off an AsyncTask. I'm trying to get the icon to animate while the background task is running. I have it working, except when I click on the icon, the icon itself will "jump" a couple pixels over to the right, and it's very noticeable. Not exactly sure what is causing that to happen. This is what I have so far: private MenuItem refreshItem; private void DoRefresh() { final LayoutInflater inflater = (LayoutInflater)activity

possible to change text size/color for ActionBar?

寵の児 提交于 2019-12-21 19:44:32
问题 Is there possible way to change size/color of ActionBar's title and subtitle? I am using ActionBarSherlock for bridging between lower and higher versions. ActionBarSherlock provides way to customize text style in SherlockActionBarCompat, but there seems no way to make it in SherlockActionBarNative. edit: added by Jake and removed by author edit: Close to the solution: <style name="resizeableTitleStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title.Inverse"> <item name="android

Could not find actionbarsherlock.apk

[亡魂溺海] 提交于 2019-12-21 19:43:52
问题 I'm trying to run my app on a real device from Eclipse. After adding actionbarsherlock as a reference, I can't get rid of this error: Could not find actionbarsherlock.apk . Here is the full console output: [2013-05-24 16:10:14 - MyApp] ------------------------------ [2013-05-24 16:10:14 - MyApp] Android Launch! [2013-05-24 16:10:14 - MyApp] adb is running normally. [2013-05-24 16:10:14 - MyApp] Performing com.myapp.activities.StopSelection activity launch [2013-05-24 16:11:26 - MyApp]

Android: Sherlock action bar drop down

这一生的挚爱 提交于 2019-12-21 16:59:24
问题 I'm trying to implement a drop down list as navigation for the action bar in Android. I can see the drop down list and the items, but I can't get the clicking event. I'm not sure what I'm missing since I was following the tutorial in http://developer.android.com/guide/topics/ui/actionbar.html This is my code: public void onCreate(Bundle savedInstanceState) { OnNavigationListener mOnNavigationListener; super.onCreate(savedInstanceState); // setContentView(R.layout.info_layout); //

Remove actionbar item blue background

て烟熏妆下的殇ゞ 提交于 2019-12-21 12:36:22
问题 I am creating an actionbar with custom looking buttons that I put in the icon section of menu.xml. The problem is that, when I press them, I see both the selected version of the image of the button and the blue background of the holo theme. This is my menu.xml: <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/current_position" android:icon="@drawable/ab_location_layer" android:menuCategory="container" android:showAsAction="ifRoom" android:title=

Android ActionBar: show/hide tabs dynamically?

99封情书 提交于 2019-12-21 09:02:17
问题 Is it possible to remove/restore the tab bar from the action bar dynamically? Up to now I did this by changing the navigation mode of the action bar. I used following code to remove and restore the tab bar: @Override public void restoreTabs() { getSupportActionBar() .setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); this.supportInvalidateOptionsMenu(); } @Override public void removeTabs() { getSupportActionBar() .setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); this