Я хотел бы использовать шрифт Roboto в своем приложении для Android и убедиться, что он работает для более ранних версий Android, у которых нет установленного шрифта. Я знаю, что могу сделать это, используя Typeface.createFromAsset(), а затем вручную установив шрифт для каждого из моих TextViews/Buttons/Other-Objects. Это кажется большой болью для этого для каждого объекта, который я показываю на экране, хотя.
Мой вопрос в том, есть ли лучший способ сделать это? Какой-то вспомогательный класс или способ установить пользовательский шрифт в файле темы .xml? Любое автоматическое будет лучше, чем вручную перечислять каждый объект на каждом экране и изменять шрифт.
Спасибо!