title: Binary XML file line #9: Error inflating class fragment
body: <p>Am getting Error <code>inflating fragment error while running calling an Activity which having fragments.</code></p>
  
  <p>CheckList is Activity which contains <code>listview and Description fragments.</code>and its xml code is:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="horizontal"
          android:layout_width="match_parent" android:layout_height="match_parent"&gt;
  
          &lt;fragment class="com.uday.honeytest.CheckList$listview"
                  android:id="@+id/titles" android:layout_weight="1"
                  android:layout_width="0px" android:layout_height="match_parent" /&gt;
  
          &lt;fragment class="com.uday.honeytest.CheckList$Description"
          android:id="@+id/details" android:layout_weight="1"
                  android:layout_width="0px" android:layout_height="match_parent"
                  android:background="?android:attr/detailsElementBackground" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>CheckList class is: </p>
  
  <pre><code>public class CheckList extends Activity {
  
      static int position=0;
      static CheckList check;
  
      public void onCreate(Bundle saved){
  
          super.onCreate(saved);
          setContentView(R.layout.checklist);
  
  
      }
  
      public static class listview extends ListFragment {
  
              View mConverView;
              String[] items;
  
  
  
               @Override
                  public void onActivityCreated(Bundle savedInstanceState) {
                      super.onActivityCreated(savedInstanceState);
               }
  
              public View onCreateView(LayoutInflater inflater, ViewGroup container,
                      Bundle savedInstanceState) {
                  xxxxxx..
                       return mConverView;
              }
          }
  </code></pre>
  
  <p>similarly i have Description fragment below this .</p>
  
  <p>But am getting </p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.uday.honeytest/com.uday.honeytest.CheckList}: android.view.InflateException: Binary XML file line #9: Error inflating class fragment
  </code></pre>
  
  <p>error at setContentView line.</p>
  
  <p><strong>and my Description fragment class is: Edited:</strong></p>
  
  <pre><code>public static class Description extends Fragment {
  
          View mConverView;
          String details[];
  
          public static Description getInstance() {
              Description desc=new Description();
              return desc;
  
          }
  
           @Override
              public void onActivityCreated(Bundle savedInstanceState) {
                  super.onActivityCreated(savedInstanceState);
           }
  
  
          public View onCreateView(LayoutInflater inflater, ViewGroup container,
                  Bundle savedInstanceState) {
  
  
              TextView textview=new TextView(getActivity());
              textview.setLayoutParams(new LayoutParams(MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT));
  
  
  
              return textview;
          }
      }
  </code></pre>
  
  <p>What am doing wrong here??</p>
  
  <p>Thanks</p>