Exchange

Android Code For Set Font to a TextView - Android Tutorials in Tamil

Watch My Android Tutorial video



Result

Bfore

After



Code

public class SplashActivity extends AppCompatActivity {

private TextView appName;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);

appName = findViewById(R.id.tv_app_name);

Typeface typeface1 = ResourcesCompat.getFont(this, R.font.bulletto_killa);

appName.setTypeface(typeface1);

}
}

Post a Comment

0 Comments