I\'m using a custom font throughout my application (which, incidentally, I\'ve frustratingly found out that you have to apply programmatically by hand to EVERY control!), an
In addition to the response of Moisés Olmedo - an alternative variant without creating a new class:
tf = Typeface.createFromAsset(getAssets(), fontPath);
recordsAdapter = new SimpleCursorAdapter(this, R.layout.item1, cursor, from, to);
recordsAdapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() {
public boolean setViewValue(View view, Cursor cursor, int columnIndex) {
if (columnIndex == 1) {
final TextView tv = (TextView) view;
tv.setTypeface(tf);
}
return false;
}
});