title: setText in custom view
body: <p>I have created a custom class from a tutorial online. It works fine, but what I want to do is make it so that I can set the text of the view, just like I would any other view. How is that accomplished. Here is the xml for the custom view</p>
  
  <pre><code>&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:gravity="center"&gt;
  &lt;ImageView
  android:id="@+id/file_image_holder"
  android:layout_width="110dip"
  android:layout_height="110dip"
  android:src="@drawable/pdf_icon" /&gt;
  &lt;TextView
  android:id="@+id/file_name_holder"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="File Name Here" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>What I am trying to achieve is this</p>
  
  <pre><code>FileView fileView = new FileView(this)
  fileView.setText("text")
  </code></pre>