I have three fonts in a listView, whichever the user selects it has to effect the textView in the Pager. But, it is not updating the font in that position of the ViewPager. It is getting updated after moving to one or two slides/pages. Please help me, Thanks.
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ViewGroup rootView = (ViewGroup) inflater.inflate(
R.layout.fragment_main, container, false);
// Set Slide Object Value
TextView mDesc = (TextView)rootView.findViewById(R.id.textTitle);
m_txTitle.setTypeface(SettingsABC.getTypeface(fontStyle));
fontStyle = Typeface.createFromAsset(getAssets(), "cookies.ttf");
mDesc.setTypeface(fontStyle);
}