I'm working with a recyclerView
in my app that has three different layouts for it's rows.
I change the visibility of the different views in the layout for each row depending on the the type of data. For example, if it's a text post I change the visibility of the imageView
to invisible and if it's an image post I change the visibility of the textView
.
Is this a bad practice? Will this be too much overhead for the app?