Scrollview Scroll to Bottom Programmatically Android Java
Wednesday, January 31, 2024, 8 AM
Sometimes you will need to make the android scrollview to scroll automatically to the bottom of the screen, the code below can do it
ScrollView scrollView = findViewById(R.id.scrollView); // Replace with your ScrollView ID scrollView.post(new Runnable() { @Override public void run() { scrollView.fullScroll(ScrollView.FOCUS_DOWN); } });
No comments found.