java - Menu item not added to actionbar -
i have looked solution problem on stack overflow , google, nothing seems help. clarify, talking 1 id "favourite"
here menu xml:
<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="com.rasmase.smbcbrowser.mainactivity" > <item android:id="@+id/favourite" android:icon="@drawable/ic_favourite" android:title="@string/favourite" app:showasaction="ifroom" /> <item android:id="@+id/go_to_comic" android:orderincategory="100" android:title="@string/go_to_comic" app:showasaction="never"/>
and oncreateoptionsmenu:
@override public boolean oncreateoptionsmenu(menu menu) { // inflate menu items use in action bar menuinflater inflater = getmenuinflater(); inflater.inflate(r.menu.main, menu); return super.oncreateoptionsmenu(menu); }
anyone else have idea wrong?
edit: turns out retarded. icon black star on black actionbar. image reference: http://i.stack.imgur.com/tvwm7.png
Comments
Post a Comment