Jump to content

[Resolu]probleme avec Typeface

Recommended Posts

Hello !

Je vous expose mon probleme.

J'essaie de changer la font d'une appli (la mienne en loccurence) mais j'ai une erreur qui me dit

Typeface cannot be resolved

J'ai tapé :

package fr.com.uk.co;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class LOLILOL extends Activity {
   /** Called when the activity is first created. */
   public void onCreate(Bundle savedInstanceState) {
       TextView texteView = (TextView) findViewById(R.id.custom_font);
       Typeface font = Typeface.createFromAsset(getAssets(), "OpTic.ttf");

Je ne sais plus quoi faire :(

Merci d'avance

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...