I want to achieve something like that shown in the picture without using any external libraries. I have an ArrayList with objects and each of the objects has a String for the image url and an ArrayList for the string data.
For example, an ArrayList Object:
ArrayList<MyObject> object = new ArrayList<>();
is given as a parameter to the recyclerview adapter.
object=[String urlImage,ArrayList<String> data].
How can I achieve this with viewtypes? What is the condition of position or something like that?