this is the correct code (font on assets folder)
Global variable
Typeface tf, bold, italic;
Context prova;
the metod where i set the context
public CopyOfCustomListAdapterLele(Context context, ArrayList listData) {
this.listData = listData;
layoutInflater = LayoutInflater.from(context);
prova = context;
}
and the setting of the font
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder;
bold = Typeface.createFromAsset(prova.getAssets(), "fonts/Jennifer-Lynne.ttf");
if (convertView == null) {
convertView = layoutInflater.inflate(R.layout.singolopunto, null);
holder = new ViewHolder();
holder.titoloView = (TextView) convertView.findViewById(R.id.textView1); //titolo canzone
holder.imageView = (SmartImageView) convertView.findViewById(R.id.imageView2); //immagine
holder.free = (ImageView) convertView.findViewById(R.id.imageView3); //immagine free
holder.titoloView.setTypeface(bold);
...