RuntimeException: native typeface cannot be made

前端 未结 3 1183
余生分开走
余生分开走 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:10

    One problem that's overlooked (by Android Studio users) is that the "assets/" folder is NOT on the same level as "src/". It is INSIDE "src/main/"

    Because I didn't see this earlier, I spent two hours last night, and an hour this morning just trying to change the font in my navigation drawer.

    I believe this is the same reason why pixlUI and calligraphy libraries did not work for me.

提交回复
热议问题