ScrollView Horizontal in UI Programmatically Android -


this question has answer here:

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

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -