I am trying to change the font of a TextView programatically in android studio, ive followed some tutorials closely but it keeps giving me errors and was just wondering if anyone has any ideas?
Examples of questions I followed:
TextView:
TextView
android:id="@+id/settingsTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Settings"
android:layout_marginLeft="60dp"/>
Code that changes font:
Typeface myTypeface = Typeface.createFromAsset(getApplicationContext().getAssets(), "fonts/Stocky.ttf");
TextView settingsTitle = (TextView) findViewById(R.id.settingsTitle);
settingsTitle.setTypeface(myTypeface);
Error log:
Function: selinux_android_load_priority [0], There is no sepolicy file
Function: selinux_android_load_priority [1], There is no sepolicy version file
Function: selinux_android_load_priority , loading version is VE=SEPF_GT-I9507_4.3_0016
selinux_android_seapp_context_reload: seapp_contexts file is loaded from /seapp_contexts