here is my code:
mEditText.setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View view, int i, KeyEvent keyEvent) {
mEditText.setFocusable(false);
mEditText.setCursorVisible(false);
}
});
Now i want to enter some text into edittext.for which i have to setFocuable to true.i already tried to setFocusable(true) in onClick , setOnClickListener , setOnTouchListener but nothing is working...help me guys;(...
Programatically
XML
after searching for hours.i came up with solution- Xml Code:
Put this java code inside your java file: