Tuesday, 1 December 2015

Android EditText, disable the auto focus on edit text



Put android:focusable="true" and android:focusableInTouchMode="true" on in the parent element of the EditText;
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/linearLayout7" android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:focusable="true" android:focusableInTouchMode="true">


http://stackoverflow.com/questions/7593887/disable-auto-focus-on-edit-text



No comments:

Post a comment