actionbarsherlock Questions

5

Solved

I have an app with a reasonably long title (e.g. My Long Title App). I am using an ActionBar and noticed the app title keeps being truncated (e.g. My Long Title A...). This happens even though 2 ac...

12

Solved

I have a OnItemSelectedListener for my Spinner, but it is not called when the selected item is the same as the previous one. Apparently the OnClickListener is not an option for a Spinner. I need to...

8

Solved

I have been searching everywhere for a proper solution to my problem and I can't seem to find one yet. I have an ActionBar (ActionBarSherlock) with a menu that is inflated from an XML file and that...
Midstream asked 16/3, 2012 at 3:51

6

I'm having some problems consistently animating a 'refresh' icon in the ActionBar of my app. I have a container FragmentActivity which swaps fragments in and out as the user navigates through the ...

9

Solved

We've got a SearchView on the ActionBar which is set to be non-iconified. As we don't have any content in the view until the user's entered something to search for, it would make sense to give the ...
Acidophil asked 5/3, 2013 at 12:17

18

I know it's not possible using the native API. Is there a workaround to implement that kind of view?
Newspaperwoman asked 22/8, 2013 at 7:27

9

Solved

How can I implement a custom onClickListener for the Home button of the Action Bar? I already did a getSupportActionBar().setDisplayHomeAsUpEnabled(true); and now I want to redirect the user to a ...

10

I am trying to get the ActionBar working properly on my app (and I'm using ActionBarSherlock to get a unified UI between Android 2.x and 4.x). I feel like android:showAsAction="ifRoom" is just a ...

12

I have to press the backbutton twice, to close the SearchView. Why? On the first press, the SearchViewonly looses focus... Setting setOnKeyListener on SearchView does not work either... Btw, I'm ...
Detruncate asked 20/9, 2013 at 19:29

7

Solved

I'm creating an android app for a right-to-left specific language. And I'm using ActionBarSherlock (a compatible android action bar library). The thing I exactly want is how to change the direction...
Subclimax asked 7/7, 2013 at 13:18

14

Solved

I've created a small test app which represents my problem. I'm using ActionBarSherlock to implement tabs with (Sherlock)Fragments. My code: TestActivity.java public class TestActivity extends She...
Louisalouisburg asked 6/6, 2012 at 17:36

9

I'm getting the following error: "The method getSupportFragmentManager() is undefined for the type new View.OnClickListener(){}" in my fragment file shown below. I have the compatibility library r...

14

Solved

In Android I got following Error in the emulator and some mobile device but not in Tablet: I can't understand what is the error actually? I have searched many tutorials but can't find any solutio...

5

Solved

I have an app, which have toggle button in action menu item, though i'm using Actionbar Sherlock, I don't know, how to place the toggle button in the action menu item. I don't want to place as a cu...
Ilka asked 19/2, 2013 at 13:2

5

Solved

This is my xml file for the ActionBar menu. <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/fav_b...
Stringfellow asked 11/5, 2013 at 18:28

13

Solved

I have a Sherlock Fragment Activity in which there are 3 Fragments. Fragment A, Fragment B, Fragment C are three fragments. I want to show a done option menu in Fragment B only. And the activity ...
Keating asked 20/4, 2014 at 5:8

8

Solved

I have a requirement to center a custom logo (using an ImageView) in the Actionbar for the "Home" activity. I'm using ABS for this project. This is very similar to a another question posted on S.O....
Scrubber asked 16/4, 2013 at 0:28

2

Solved

I wanted to hide the action bar after the 1 second delay, Timer().schedule(new TimerTask() { @Override public void run() { getSupportActionBar().hide(); } }, 1000); Getting crash after I ra...
Kowtow asked 2/4, 2014 at 6:45

3

Solved

I'm using actionbarsherlock to do it. Example of what I want in the actionbar: [LOGIN]     [COMPANY LOGO]     [FILTER] Example of what I get in t...
Emirate asked 19/10, 2012 at 17:14

3

Solved

I want to kill an specific thread but can't figure out a way of make it work. I include all info next, even if it does not seem important: I use action bar sherlock and want to kill a thread on a...
Paramorph asked 9/11, 2012 at 15:43

14

Solved

I have an application that consists of using ActionBarSherlock in tab mode.I have 5 tabs and the content of each tab is handled using fragments. For tab2 though, I have a fragment the xml file of w...

14

Solved

I use actionbarsherlock. The piece of code below is responsible for changing it's background to a custom one. <style name="Widget.Styled.ActionBar" parent="Widget.Sherlock.ActionBar"> <i...
Exhilarant asked 3/9, 2012 at 10:51

5

Solved

My Android application launches into BeginActivity which is a subclass of SherlockFragmentActivity and shows it's first view using: @Override public void onCreate(Bundle savedInstanceState) { su...
Darien asked 15/5, 2013 at 21:20

5

Solved

Lately I have been having more and more issues with the content assist in Eclipse. In some of my projects, I get no proposals from the content assist, and in other projects I get some or all of the...
Belfort asked 22/5, 2012 at 16:48

10

Solved

I'm trying to use a SherlockDialogFragment to ask some input from the user. Everything works fine on my phone (Galaxy Nexus, 4.2), but on a smaller phone (emulator 2.3.3), when the keyboard shows u...

© 2022 - 2025 — McMap. All rights reserved.