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
Post a Comment