は、コードの一部です:カスタムフォント
@Override
public View getChildView(int groupPosition, final int childPosition, boolean isLastChild, View convertView, ViewGroup parent) {
final String childText = (String)getChild(groupPosition, childPosition);
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater)this._context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.list_item, parent, false);
}
Utils.setFontAllView((ViewGroup)convertView);
TextView txtListChild = (TextView)convertView.findViewById(R.id.txtcardname);
txtListChild.setTypeface(null, Typeface.BOLD);
TextView kategoria = (TextView)convertView.findViewById(R.id.kategoria);
kategoria.setText(this.KATEGORIE[numerKategori]);
custom_font = Typeface.createFromAsset(getAssets(), "fonts/capture.ttf");
txtListChild.setTypeface(custom_font);
は私が作りたいですそれこのコードで:
custom_font = Typeface.createFromAsset(getAssets(), "fonts/capture.ttf");
txtListChild.setTypeface(custom_font);