1 min readApr 4, 2019
For that you need to create one method, pass two colors: for background color and text color. Change color according to view and use this as a reference in your getSelectedTabView() and also call notifyDataChanged() in it.
Call this method from wherever you want. That means when you want to change those colors, call this method and adapter will also get notified from adapter class. That’s it.