I have been using Jake Wharton\'s ViewPagerIndicator and I am currently trying to implement a custom font on one of my fragments. I\'ve tried using this code:
My Simple code is change method call "context" in the fragment with "getContext(); //is getContext and getActvity same in fragment??
**result**.setText("Value Expenses = " +expenses);
Typeface supercell = Typeface.createFromAsset(**getContext()**.getAssets(), "fonts/Supercell.ttf");**
**result.setTypeface(supercell);**
}catch (Exception e)
{
Toast.makeText(getActivity(), "SUCCEED, VALUES RESULT", Toast.LENGTH_SHORT)
.show();
}
break;