title: Fragments Not showing expected Output
body: <p>I'm newbie to Fragments and I'm trying to work on it. Below is my code. For it. when i run my application I don't have any error message but I'm not getting the output</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>public class MainActivity extends FragmentActivity{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  }
  
  }
  </code></pre>
  
  <p><strong>MyFragments.java</strong></p>
  
  <pre><code>public class MyFragments extends Fragment {
  
  public MyFragments() {
      // TODO Auto-generated constructor stub
  }
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      View view = inflater.inflate(R.layout.fragment_one, container, false);
      return view;
  }
  }
  </code></pre>
  
  <p><strong>fragment_one.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="TextView" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>activity_main.xml</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:id="@+id/LinearLayout1"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  tools:context=".MainActivity" &gt;
  
  &lt;fragment
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/fragment_One"
      android:name="com.benchmark.fragmentsdemo.MyFragments"
      android:layout_width="0dp"
      android:layout_height="fill_parent"
      android:layout_weight="1" /&gt;
  
  &lt;fragment
      android:id="@+id/fragment_two"
      android:name="com.benchmark.fragmentsdemo.MyFragments"
      android:layout_width="0dp"
      android:layout_height="match_parent"
      android:layout_weight="2" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>please anybody help me</p>