findViewById - Nested LinearLayouts, doesn't locate my id's - Android
<p>I've scoured the internet to no avail. I'm trying to set the font for a textview. It's in its own LinearLayout in my main.xml file. When I write the code in OnCreate, it doesn't locate the id, or the parent linearlayout. Here's the code:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/background"
    android:orientation="vertical"
    android:weightSum="10.0" &gt;

    &lt;LinearLayout
        android:id="@+id/map_message_layout"
        android:layout_width="fill_parent"
        android:layout_height="0dp"
        android:layout_weight="1.0"
        android:orientation="horizontal" &gt;

        &lt;TextView
            android:id="@+id/map_message"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_marginTop="10dp"
            android:gravity="center_horizontal"
            android:text="@string/diagram" /&gt;

    &lt;/LinearLayout&gt;
</code></pre>

<p>And the following onCreate method:</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    LinearLayout = (LinearLayout) this.findViewById(R.id.map_message_layout)
    TextView maptxt = (TextView) findViewById(R.id.map_message);
    Typeface typeFace = Typeface.createFromAsset(getAssets(),"fonts/MuseoSans_100.otf");
    maptxt.setTypeface(typeFace);
}
</code></pre>

<p>Thanks! </p>
