I have a simple viewPager with two fragments. Each fragment contains a TextView. I would like to be able to update the text of the current textView displayed from the activi
@Override public int getItemPosition(Object object) { XXXFragment fragment = (XXXFragment) object; if(…condition){ fragment.refresh(…); } return super.getItemPosition(object); }
override the above. when you call notifyDataSetChanged(), the above method's triggered. do your refresh as you can.