I have android code the display a list of users information , and sometime it needs to have a scroll bar to display all users ?? and sometimes not.. how can i set scrolllayout dynamically not in xml layout file ??
Share
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.
I know your question is on how to do this dynamically, but in your case you should just encapsulate the view in a ScrollView in XML. If the content isn’t large enough to require scrolling, it won’t scroll.