android - How to scroll to a desired location in a view? -


since scrollview long, , users need scroll down long time arrive desired tablelayout, ask whether there functions in way if design button such when pressed, automatically scroll down desired tablelayout location?

i not know named in technical term. tell me how achieve it? there examples of codes? many in advance!

refer can scroll scrollview programmatically in android?

in activity:

button b = (button) findviewbyid(r.id.button1); b.setonclicklistener(new button.onclicklistener() {     public void onclick(view v) {         myscrollview.scrollto(0, y_index);     } }); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -