Displaying number of images in Android application with scroll view. I think the images should be kept in list view
I want to disp开发者_开发技巧lay images on Android screen. The images should be scrolled vertically. How should I do this? Please help me.
Follow the steps I am mentioning below,
- take one Scroll View with Vertical Scroll
- Add one Linear Layout in it with Vertical Orientation
- Now, What you have to do is, Programatically in your code retrieve the images one by one and add the ImageView in the Linear Layout and assign the Image to that ImageView.
- Keep the height and width of the Imageview and other Layouts as per your requirement.
- This way you will have all the images same like a PDF pages format...
精彩评论