I developed an android application now i'm trying to add (Kulturista Bold. ttf )this custom font to it but it doesn't worked Here is my login.xml file and login.java files
<TextView
android:id="@+id/maintitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="CREATE AN ACCOUNT?"
android:textColor="@color/blue"
android:textSize="25dp"
android:layout_gravity="center"
android:layout_marginTop="70dp"
android:gravity="center"/>
<TextView
android:id="@+id/subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="CLICK ON THE SIGHNUP AND REGISTER"
android:textColor="#c4cbcf"
android:layout_gravity="center"
android:gravity="center"
/>
This is the activity code
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.login);
TextView txt1 = (TextView) findViewById(R.id.maintitle);
Typeface font1 = Typeface.createFromAsset(getAssets(), "Kulturista_Bold. ttf");
txt1.setTypeface(font1);
TextView txt2 = (TextView) findViewById(R.id.subtitle);
Typeface font2 = Typeface.createFromAsset(getAssets(), "Kulturista_Bold. ttf");
txt2.setTypeface(font2);
}
}