Currently, we are using firebase-mlkit to do image labeling. I'd like to print out the images in recyclerview and the corresponding labels as a list when I don't know how many labels will be created in one image. I googled a lot, but I don't know how to do it. Crying.
Stackoverflow asks you to receive a view type according to the position and use a different view holder, but the label is flexible, so you don't know which position will have an image. What can I do... android firebase firebase-mlkit recyclerview
In that case, you can create a separate serializable data object and use it through reprocessing.There is a way to use ViewModel globally without having to turn it over to int. Bundle objects have a limitation on the size of data that can be contained, so if there is a lot of data, I don't recommend handing over the list itself to int.
© 2025 OneMinuteCode. All rights reserved.