I would like to know how to make the horizontalscrollview “snapping” like the home screen do, meaning i have two pages in my horizontalscrollview and i can swipe between each page.
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.
You Have two options for that.
either use ViewFlipper or android Gallery.
I prefer you to use android Gallery as it will be controlled and better approach.
In the Default Android Gallery Example that you will find developer.android.com site
In the adapter it used and in the getView() method an ImageView is returned. You manipulate your code in a manner that it return a inflated xml layout like the following code