My question is quite simple:
In every of my textview, I am currently using the attribute
android:fontFamily=\"sans-serif-light\"
Option 1 - API 26 and higher
// Jave
Typeface typeface = getResources().getFont(R.font.myfont);
textView.setTypeface(typeface);
// Kotlin
val typeface = resources.getFont(R.font.myfont)
textView.typeface = typeface
Option 2 - API 16 and higher
// Java
Typeface typeface = ResourcesCompat.getFont(context, R.font.myfont);
// Kotlin
val typeface = ResourcesCompat.getFont(context, R.font.myfont)
Check the full expiation at Android Developers Guide.