changing TextView properties of a ListView crashes the app
<pre><code>public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Typeface font = Typeface.createFromAsset(
                getAssets(), "DejaVuSans.ttf");

        setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item,
                        getGroups()));

        tv = (TextView)findViewById(R.id.textitem);

        //Uncomment a line below and the app crashes!!
        //tv.setTypeface(font);
        //tv.setGravity(Gravity.LEFT);
</code></pre>

<p>}</p>

<p>list_item.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/textitem"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="10dp"
    android:textSize="16sp"
    android:gravity="right"
/&gt;
</code></pre>

<p>The problem is that I want to set a new typeface for the TextView in the ListView, and it seems it can't be done in the XML file!!</p>
