I have very small question here, in my recycle view adapter class i'm using List<FeaturedTags>
and its working fine.
Now we have newly introduced class called 'FeaturedLangTags
, the only difference between FeaturedTags
& FeaturedLangTags
is just an addition of Lang
field. But we are not using this Lang field anyway to show on screen.
The output of the recycle view looks exactly similar to existing FeaturedTags
adapter. Here i want to know how i can re-use the existing adapter class to display List<FeaturedLangTags>
items?
One simple way is to duplicate the existing adapter and pass the FeaturedLangTags
list, but here so much of code is getting duplicated. I would like to know how i can tweek the existing class?