-1

I am using simple ListAdapter. I want to use custom font in it. I was suggested to use getView() but as a beginner i am unaware of using custom adapter. Can someone help it.

user45678
  • 1,504
  • 6
  • 29
  • 58

1 Answers1

-1

first of all put any ttf file in your asset folder then put on your textview like this

Typeface face = Typeface.createFromAsset(getAssets(), precious.ttf);//or any other ttf you want

                    String edittextString = title.getText().toString();

                    title.setText("");
                    title.setTypeface(face);
                    title.setTextColor(Color.parseColor(hexColor));
                    if (edittextString != null) {
                        title.setText(edittextString);
                    }
Hasnain
  • 274
  • 2
  • 14