HorizontalScrollView: auto-scroll to end when new Views are added?
I think there’s a timing issue. Layout isn’t done when a view is added. It is requested and done a short time later. When you call fullScroll immediately after adding the view, the width of the linearlayout hasn’t had a chance to expand. Try replacing: s.fullScroll(HorizontalScrollView.FOCUS_RIGHT); with: s.postDelayed(new Runnable() { public void run() { s.fullScroll(HorizontalScrollView.FOCUS_RIGHT); … Read more