I need to show multiple image in grid like example given here.
and also need plus icon while images is more than some certain counts
I need to show multiple image in grid like example given here.
and also need plus icon while images is more than some certain counts
2
Answers
There are multiple ways to implement it
Possibly you want to fetch the images dynamically, and there are several collection views: RecyclerView, ListView etc. RecyclerView is common since you can modify the layout(for your case, columns) with various LayoutManagers. Since you haven’t provide any code, I cannot help you with that, but here is a guide that might be helpful.
For the plus icon mechanism, you can modify your RecyclerViewAdapter code, limiting the count(in
getItemCount()
) to a certain number and visible a transculent foreground with ‘+number’ in the ViewHolder code for the last item.