SHARE
TWEET

android

Dprogrammed1 Apr 5th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.  
  3. public void onCreateContextMenu(ContextMenu menu, View v,
  4.  
  5. ContextMenuInfo menuInfo) {
  6.  
  7. super.onCreateContextMenu(menu, v, menuInfo);
  8.  
  9. menu.setHeaderTitle("Menu");
  10.  
  11. AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;
  12.  
  13. menu.add(1, cmi.position, 0, "Open file");
  14.  
  15. menu.add(2, cmi.position, 0, "Save file");
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top