title: How to get ViewGroup after inflate layout in Android?
body: <p>I have layout with my custom view like this :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:focusable="true"
  android:focusableInTouchMode="true" &gt;
  
  &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignTop="@+id/imageView1"
      android:layout_marginLeft="30dp"
      android:layout_toRightOf="@+id/imageView1"
      android:text="Username"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:textStyle="bold" /&gt;
  
  .....
  </code></pre>
  
  <p>And then I want to get ViewGroup from this xml files. But the manner that I know is just inflate the layout with View Inflater like this <code>LayoutInflater.inflate(R.id.my_layout)</code> and the return is just <code>View</code> And my layout is absolutely <code>RelativeLayout</code> that extends <code>ViewGroup</code>.</p>
  
  <p>How can I get My Relativelayout as ViewGroup programmatically?</p>