title: onClickListener doesn't working in fragment
body: <pre><code>public class MainFragment extends Fragment {
      public static final String TAG = MainFragment.class.getSimpleName();
      private static final String ABOUT_SCHEME = "settings";
      private static final String ABOUT_AUTHORITY = "main";
      public static final Uri ABOUT_URI = new Uri.Builder().scheme(ABOUT_SCHEME).authority(ABOUT_AUTHORITY).build();
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
          View v = inflater.inflate(R.layout.mainbutton, container, false);
  
          return v;
      }
  
  }
  </code></pre>
  
  <p>According to below link:
  <a href="https://stackoverflow.com/questions/6091194/how-to-handle-button-clicks-using-the-xml-onclick-within-fragments">How to handle button clicks using the XML onClick within Fragments</a></p>
  
  <pre><code>public class StartFragment extends Fragment implements OnClickListener{
  
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
  
          View v = inflater.inflate(R.layout.fragment_start, container, false);
  
          Button b = (Button) v.findViewById(R.id.StartButton);
          b.setOnClickListener(this);
          return v;
      }
  
      @Override
      public void onClick(View v) {
          switch (v.getId()) {
              case R.id.StartButton:
  
                  /* ... */
  
                  break;
          }
      }
  }
  </code></pre>
  
  <p>source doesn't work too.</p>