RuntimeException: native typeface cannot be made

前端 未结 3 1194
余生分开走
余生分开走 2020-12-20 13:26

I\'m trying to use a custom font on elements of a listview. So in my ListViewAdapter constructor I have:

private Context context;
private List         


        
3条回答
  •  余生分开走
    2020-12-20 14:02

    OpenSans-Regular.ttf should be under fonts folder .

    folder structure should be like this :

    assets-> fonts ->OpenSans-Regular.ttf

    i think by mistake you have added under assets folder
    

提交回复
热议问题