我的根目录 ConstraintLayout
只有 Toolbar
、TextView
和 ScrollView
。当我的 Runnable
在 setText()
上调用 TextView
并且我的 ScrollView
滚动到最底部时,ScrollView
会自动向上滚动 {{1} }}。
它不涉及窃取焦点,因为 Toolbar
一直返回 getCurrentFocus()
。
答案 0 :(得分:0)
所以我创建了这个主题,因为我花了一整天才找到解决方案。
在我的应用 Gradle 中更新 ConstraintLayout 依赖项解决了这个问题。
它最初是在我的项目中的 null
。现在是1.1.3
2.0.4