Actionbar sherlock items not showing up

31 views Asked by At

I followed the steps according to the their official website. Still it doesn't show up items on the actionbar. I also updated the theme name on manifest file. Any help?

1

There are 1 answers

3
erkams On

Your question is so general but I think you need to change your menu xmls. They are under res/menu. If the name of your class is main, then menu should be in menu_main.xml. You should change app:showAsAction to ifRoom or always.

<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
    <item android:id="@+id/action_settings" android:title="@string/action_settings"
        android:orderInCategory="100" app:showAsAction="always" android:icon="@drawable/ic_action_important" />

</menu>