1
這裏設置自定義的字體是我的代碼:爲arrayadapter
String[] filled_arr;
ArrayAdapter<String> adapter = new ArrayAdapter<>(this, R.layout.list_item, R.id.tv_wi, filled_arr);
listview.setAdapter(adapter);
和這裏的字體:
final Typeface typeface = Typeface.createFromAsset(getAssets(), "Constantia.ttf");
如何設置它的適配器?
TextView的文本=(TextView的)view.findViewById(android.R.id.text1); text1在運行時無法找到。將文本上的錯誤作爲NullPointer異常拋出。有沒有解決方法? –