Thingse/app/src/main/java/com/daneshzaki/thingse/ViewSomething.java
//menu items for edit and delete
menu items for edit and delete
menu items for edit and delete
@Override
	public boolean onCreateOptionsMenu(Menu menu)
	{
		menu.add("Edit").setIcon(R.drawable.ic_mode_edit_black_18dp)
				.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
		menu.add("Delete").setIcon(R.drawable.ic_delete_black_18dp)
				.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);
		return true;
	}
@ Override public boolean onCreateOptionsMenu ( Menu menu ) { menu . add ( "Edit" ) . setIcon ( R . drawable . ic_mode_edit_black_18dp ) . setShowAsAction ( MenuItem . SHOW_AS_ACTION_ALWAYS ) ; menu . add ( "Delete" ) . setIcon ( R . drawable . ic_delete_black_18dp ) . setShowAsAction ( MenuItem . SHOW_AS_ACTION_ALWAYS ) ; return true ; }
menu items for edit and delete
menu items for edit and delete