Stop ScrollView from auto-scrolling to an EditText

后端 未结 21 1287
长发绾君心
长发绾君心 2020-11-30 23:17

Seems to be a common problem without a great solution that I have found. Goal is to stop a ScrollView from auto-scrolling to an EditText (or any vi

21条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 23:30

    By adding 2 parameters in:

    android:focusable="true"
    android:focusableInTouchMode="true"
    

    In which Main layout is there.

    
    

    By this EditText will not be auto focused.

提交回复
热议问题