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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -