How to prevent a scrollview from scrolling to a webview after data is loaded?

后端 未结 7 1667
梦如初夏
梦如初夏 2020-11-29 16:22

So I have a fascinating problem. Despite the fact that I\'m not manually or programmatically scrolling my view, my WebView is being automatically scrolled to after the data

7条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 16:43

    I had the same problem, after hours of trying several ideas, what finally worked for me was simply adding the descendantFocusability attribute to the ScrollView's containing LinearLayout, with the value blocksDescendants. In your case:

    
    

    Haven't had the problem reoccur since.

提交回复
热议问题