Is it possible to add something to the list of items that shows up when a user long presses on any Edit Text? (Cut, copy paste, select text, select all, input method) I want
Yes it is possible to add something to the list of items on LongClick of EditText.
To put you in right direction I am posting some code snippets.
In main.xml do something like
After that in your main Activity, do something like
public class edit extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
EditText text = (EditText)this.findViewById(R.id.textt);
text.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
//ADD HERE ABOUT CUT COPY PASTE
// TODO Auto-generated method stub
return false;
}
});
}
}
Hope it helps