0

How to replace toolbar with contextual menu .... I had tried but i got 2 toolbar one is required contextual menu and other is normal toolbar as shown in pic

I want to remove toolbar named international in it

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
  • post your `onlongclicklistner` code – Tejas Pandya Feb 03 '18 at 05:47
  • ActionMode mActionMode=startSupportActionMode(this); – Sitaram Kommaraju Feb 03 '18 at 06:03
  • Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { mode.getMenuInflater().inflate(R.menu.chatselectedmenu, menu); return true; } Override public boolean onPrepareActionMode(ActionMode mode, Menu menu) { return false; } Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { switch (item.getItemId()) { case R.id.delete: deleteRows(); break; } return false; } – Sitaram Kommaraju Feb 03 '18 at 06:12

0 Answers0