-1

I have a simple use case to show six images on screen and allow multiselection. The number of images is fixed here. Can I use GridView instead of a RecyclerView for this simple use case? I read an answer here which says we can. but it is obsolete to use GridView. Is it safe to use GridView in Android? My screen is similar to this,

enter image description here

My screen has only six images on two rows and there is no landscape orientation.

Madhan
  • 361
  • 4
  • 17

1 Answers1

0

As the name implies, recycler view recycles those individual items. When an item scrolls off the screen and in your case there may be no off-screen items because of the small number, so Yes, you can use grid view and is not deprecated in Android documentation until now

https://developer.android.com/reference/kotlin/android/widget/GridView

Mr.Droid
  • 303
  • 1
  • 6