Hick
Hick

Reputation: 36394

ActionBar Sherlock not showing up. What might be the error?

I included ActionBarSherlock as a library. Added this in manifest.xml:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name"
 android:theme="@style/Theme.Sherlock">

This is what I wrote in my activity:

FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
            DialogFragment newFragment = new DialogFragment();
            newFragment.setArguments(getIntent().getExtras());
            ft.add(android.R.id.content, newFragment, "dialog");
                ft.commit();

            getSupportFragmentManager();

Still, the action bar doesn't show up. Any small sample code would help or remarks as to where I am going wrong should help.

Upvotes: 0

Views: 1995

Answers (2)

Graham Smith
Graham Smith

Reputation: 25757

Please see the video I filmed, which is now part of the FAQ's of this project to ensure you followed all the setup instructions. This is a really common problem.

http://www.youtube.com/watch?v=avcp6eD_X2k

Upvotes: 4

Dennis Jaamann
Dennis Jaamann

Reputation: 3565

Clone the repository at https://github.com/JakeWharton/ActionBarSherlock

In the samples folder you will find plenty of options on how to implement.

You can even import the projects into your IDE and copy paste if needed

Upvotes: 0

Related Questions