ViewPager PagerAdapter not updating the View

There are several ways to achieve this. The first option is easier, but bit more inefficient. Override getItemPosition in your PagerAdapter like this:

This way, when you call notifyDataSetChanged(), the view pager will remove all views and reload them all. As so the reload effect is obtained. The second option, suggested by Alvaro Luis Bustamante (previously alvarolb), is to setTag()method in instantiateItem() when […]

person shubham sharmaaccess_time July 20, 2018launch Read More

shared preference

============================================= Setting values in Preference:

  Retrieve data from preference:

Android SharedPreferences in Fragment


person shubham sharmaaccess_time October 24, 2016launch Read More