Stop ScrollView from auto-scrolling to an EditText

后端 未结 21 1324
长发绾君心
长发绾君心 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:37

    I solved this problem adding the descendantFocusability attribute to the ScrollView's containing LinearLayout, with the value blocksDescendants.

    For example:

    
    

提交回复
热议问题