ScrollView Horizontal in UI Programmatically Android -
this question has answer here:
- scrollview vertical , horizontal in android 11 answers
i'm making display in android programmatically , need scrollview horizontally , vertically. have been work vertically, still not work horizontally.
here code :
scrollview sv = new scrollview(this); linearlayout linearlayout = new linearlayout(this); viewgroup.layoutparams params = new viewgroup.layoutparams(fill_parent, wrap_content); linearlayout.setlayoutparams(params); linearlayout.setorientation(vertical); linearlayout.addview(tablelayout(count)); linearlayout.addview(submitbutton()); sv.addview(linearlayout); setcontentview(sv); please me make work horizontally.
thankyou :)
try horizontalscrollview if want horizontal scrolling. cannot both horizontal , vertical @ same time though, in case you'll have write custom view.
Comments
Post a Comment