开发者

How can I show list of Images in vertical scroll view?

开发者 https://www.devze.com 2023-04-09 22:39 出处:网络
I have a list of images like this public Integer[] mImageIdsen = { R.drawable.small, R.drawable.small, 开发者_Go百科R.drawable.small,

I have a list of images like this

  public Integer[] mImageIdsen = {
                    R.drawable.small,
                R.drawable.small,
 开发者_Go百科               R.drawable.small,
                R.drawable.small,
                R.drawable.small,
                R.drawable.small};

and I want to show it in a linear vertical layout which is in a scrollview. How can I assign this images to the vertical scroll list? I can't put the xml code.


Apply scroll for parent layout in which u want to add your images vertically.


Custom list view is the best solution for the same. Override getview and add the images within it.


You could use Gallery to display these. It's horizontal scrollable

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号