Stop ScrollView from auto-scrolling to an EditText

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

    Here is what I did

     
        
        
            
                
            
    
            
        
    

    The reason is in such cases you have to make all other views focus-able inside the scrollview by an explicit android:focusable="true" and then . This should work everytime IMO

提交回复
热议问题