ViewPager does not update text view font size instantly

I have a textview inside the ViewPager . I use the PagerAdapter to display data. When I try to change the font size of the textview, it does not update, because probably the viewpager caches recent views and reuses them again. Therefore, when I move on to the next pages, I see the changes. How to make the current page show changes. Is there a way to destroy cached views and draw a new page again?

+4
source share
1 answer

To work with

 adapter.notifyDataSetChanged(); pager.SetCurrentItem(curItem); 
0
source

Source: https://habr.com/ru/post/1392240/


All Articles