-3
Typeface.createFromAsset(AssetManager mgr,String path); 如何使用此?AssetsManager in Typeface
AssetManager mgr;
tf = Typeface.createFromAsset(mgr, font);
TextView txtName = (TextView) convertView.findViewById(R.id.txtTitle);
txtName.setText(novena.getName());
txtName.setTypeface(tf);
如何初始化mgr?
你可以使用 tf = Typeface.createFromAsset(context.getAssets(),font);