Android custom ListAdapter - change font
<p>I have problem with my ListAdapter.</p>

<p>I create it like this:</p>

<pre><code> public class MyAdapter extends BaseAdapter {

    private List&lt;Object&gt; objects;
    private final Context   context;

    public MyAdapter (Context context, List&lt;Object&gt; objects) {
        this.context = context;
        this.objects = objects;
    }


    public int getCount() {
        return objects.size();
    }

    public Object getItem(int position) {
        return objects.get(position);
    }

    public long getItemId(int position) {
        return position;
    }

    public View getView(int position, View convertView, ViewGroup parent) {

       Object obj = objects.get(position);

       tvRow = (TextView)findViewById(R.id.tvRow);
       tvRow.setText(obj.toString());

       Typeface typeface = Typeface.createFromAsset(getAssets(), "Fonts/DS-DIGIT.TTF");
           tvRow.setTypeface(typeface);
           return tvRow;
            }
    }
</code></pre>

<p>Before using my custom <code>ListAdapter</code>, I used it like this:</p>

<pre><code>private ArrayAdapter&lt;String&gt; m_lapList;
setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.laps_row));
m_lapList = (ArrayAdapter&lt;String&gt;)getListAdapter();
</code></pre>

<p>How to use my new ListAdapter?</p>
