ScrollView

Snippets, Solutions, Tutorials

Android Add Views into a ViewGroup Dynamically

As Android developer you will surely  need someday to add views dynamically, instead of creating a ListView. I will show you in this tutorial how to do this :) 1. Create a new project and call your activity “MyActivity” 2. Go to res – layout – main.xml and put the following code: <?xml version=”1.0″ encoding=”utf-8″?> <ScrollView […]

, , , , , , ,
Snippets, Solutions

Android: Scrolling to the bottom of a ScrollView

Iv’e had a lot of trouble scrolling a ScrollView all the way to the bottom in android and I finally got the way to do it ! Here is the code: scrollView.post(new Runnable() { public void run() { scrollView.fullScroll(View.FOCUS_DOWN); } }); Hope it helps somebody !

,
Scroll to Top