user2342687
user2342687

Reputation: 227

EditText disable the default editable and keyboard

I created an android application with EditText and when load it auto start the editable keyboard. I want manually when the user click the edittext then start the edit and keyboard....

Upvotes: 1

Views: 295

Answers (2)

anddevmanu
anddevmanu

Reputation: 1459

set this attribute in your layout in which you set the edittext

           android:focusableInTouchMode="true"

Upvotes: 0

Ram kiran Pachigolla
Ram kiran Pachigolla

Reputation: 21181

change your manifest file as like this

<activity android:name=".yourActivity" android:windowSoftInputMode="adjustPan|stateHidden"/>

if you want more information you can check developer doc android:windowSoftInputMode

Upvotes: 2

Related Questions