title: setOnClickListener not called in fragment
body: <p>hi  every body i have a problem in my program that the setOnClickListener not called in a fragment 
  in my programe i have three fragment and until now i am in the first fragment code i need in this fragment to deal with database but until now  i faced this problem that the setOnClickListener not called</p>
  
  <pre><code>public class PhoneActivity extends Fragment implements View.OnClickListener {
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {    
  
       super.onCreateView(inflater, container, savedInstanceState);
  
       View rootView = inflater.inflate(R.layout.activity_phone, container, false);
  
       LinearLayout mLinearLayout = (LinearLayout) inflater.inflate(R.layout.activity_phone,
               container, false);
  
       Button PhListBtn =(Button)mLinearLayout.findViewById(R.id.phListBtn);
       Button AddBtn =(Button)mLinearLayout.findViewById(R.id.AddBtn);
  
       final MySqlHelp db = new MySqlHelp(this.getActivity());
  
  
  
      AddBtn.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              Toast.makeText(getActivity(), "hi", Toast.LENGTH_LONG).show();
          }
      });
      return rootView; 
  
  
  
  }
  
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
  //  getMenuInflater().inflate(R.menu.phone, menu);
      return true;
  }
  </code></pre>
  
  <p>and this is the xml </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"
  android:paddingBottom="@dimen/activity_vertical_margin"
  android:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  tools:context=".PhoneActivity" &gt;
  
  &lt;Button
      android:id="@+id/phListBtn"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/phoneList" 
      android:clickable="True"/&gt;
  
  &lt;Button
      android:id="@+id/AddBtn"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@string/AddPhone" 
       android:clickable="True"/&gt;
  </code></pre>
  
  <p></p>