0

I have an edit text box and my own layout for keyboard, I prevented the popping up of default keyboard using this link

How do I prevent the software keyboard from popping up?

but it is disabling the cursor and click on the edit text which i want for copy paste . Please help .

Community
  • 1
  • 1
kaddy
  • 109
  • 11

2 Answers2

0

try this..

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editTextField.getWindowToken(), 0);
Syed Arsalan Kazmi
  • 949
  • 1
  • 11
  • 17
0

Write this in your AndroidManifest.xml

<activity
        android:name="com.example.LiveStreamActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:label="@string/title_activity_live_stream"
        android:screenOrientation="landscape"/>
Tushar Sheth
  • 391
  • 4
  • 18
  • Not working . KEyboard still comes when i click on edit text box. I am trying on android 4.4.4 – kaddy Nov 26 '15 at 11:33