I'm trying to make a Gallery
widget using HorizontalScrollView
, So inside the HorizontalScrollView
I add ImageView
s, and the problem is that I'm going to add 600+ images!
Can I make some kind of a custom adapter in order to override the GetView
method and utilize convertView
in order to make the app smoother and avoid adding 600+ views at the same time?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
HorizontalScrollView
can contain only oneView
, so you have to draw that wholeView
anytime you are drawing any part of it. This could, however, be worked around byViewGroup
as child of yourHorizontalScrollView
ViewGroup
and callgetView()
and recycle on your own, drawing only Views that are currently visible in yourHorizontalScrollView
But this would take a lot if your time. I'd at least try something like
HorizontalListView
first. A how-to of that specific class can be found here.