摘要: 方案1:使用 scrollTo 或 smoothScrollTo 滚动到 scrollview 最后一个节点位置 public static void scrollToBottom(final View scroll, final View inner) { Handler handler = ne 阅读全文
posted @ 2020-11-01 12:49 乱炖er 阅读(2317) 评论(0) 推荐(0) 编辑
摘要: 使用各种系统参数来判断,很多机型的判断结果会有问题。 可使用另外一个办法来判断:获取当前页面根节点距离屏幕顶部的距离,和当前屏幕可用高度进行对比 获取当前页面根节点距离屏幕顶部的距离 View rootView=getView(R.id.root); Rect rect = new Rect(); 阅读全文
posted @ 2020-11-01 12:37 乱炖er 阅读(1906) 评论(0) 推荐(0) 编辑