Hello guys I am really frustrated this is what I want to get
but I what ever I do I cannot get my icon bonded to my Options Menu. I have tried
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
menu.add(1, 1, 0, "Blu-Ray").setIcon(R.drawable.ic_launcher);
menu.add(1, 2, 1, "DVD").setIcon(R.drawable.ic_launcher);
menu.add(1, 3, 2, "Hard Disk").setIcon(R.drawable.ic_launcher);
menu.add(1, 4, 3, "Sites").setIcon(R.drawable.ic_launcher);
menu.add(1, 5, 4, "USB").setIcon(R.drawable.ic_launcher);
return true;
}
but with no luck
I then tried to go to my menu then main.xml and did
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/action_settings"
android:icon="@drawable/ic_launcher"
android:showAsAction="never"
android:title="Lolly"/>
And in my Class I did
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}