private void scrollToEnd() { new Handler().post(new Runnable() { public void run() { try { Thread.sleep(10); int left = linearLayout.getMeasuredWidth() - horizontalScrollView.getWidth(); if(left < 0) { left = 0; } horizontalScrollView.scrollTo(left, 0); } catch(Exception e) { e.printStackTrace(); } } }); } 此乃正解,仍然感谢各位!!!
80,351
社区成员
91,288
社区内容
加载中
试试用AI创作助手写篇文章吧