Hi guys, here is an image of my context menu but I don’t know how I can customize its presentation
I created a context menu using this code
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
{
super.onCreateContextMenu(menu, v, menuInfo);
info = (AdapterContextMenuInfo) menuInfo;
menu.add(Menu.NONE, v.getId(), 0, "Play");
menu.add(Menu.NONE, v.getId(), 0, "Queue song");
menu.add(Menu.NONE, v.getId(), 0, "Edit tags");
menu.add(Menu.NONE, v.getId(), 0, "Set as ringtone");
menu.add(Menu.NONE, v.getId(), 0, "View details");
menu.add(Menu.NONE, v.getId(), 0, "Delete");
}

but I don’t want my menu to look like the one shown below ............. I won’t know how I can change the color, etc. context menu? also the purple line that appears is that there are nine patch images ???

source
share