How can I set a width for Horizontal Scroll View?
myHorizontalScrollView.setWidth();
This doesnt appear to work, I need to limit the scroll views width.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set the width and height using the layout parameters object.
To set exact number as width you need to use the TypedValue class
And the int should be set in the LayoutParams constructor.