Is it possible to make an application-wide setting for the font-size to be used by all views displaying text? I would like to provide a Preference to the user which should
For those who have problems with inflating views with custom attributes from @mixels answer.
If your views are in fragment, you need to apply FontStyle also in fragment's onCreateView() or set values of these attributes in application's theme.
onCreateView()
For more detailes see my aswer here.