android - Is it possible to hold a ScrollView to be always scrollable? -
i want make scrollview scrollable though has no element in it.
i tried extend linearlayout out of screen, not work.
csv=(scrollview) findviewbyid(r.id.scrview); csv.getviewtreeobserver().addonscrollchangedlistener(new viewtreeobserver.onscrollchangedlistener() { @override public void onscrollchanged() { int scrolly= csv.getscrolly(); txtview.settext(string.valueof(scrolly)); }
i want because want see image position 1 element in scrollview.
this, can move image , see y position.
it can thought vertical viewpager.
Comments
Post a Comment