title: method does not override method from its superclass . Android Fragment
body: <p>fragment1:</p>
  
  <pre><code>public class fragment1 extends Fragment implements View.OnClickListener {
      ImageButton but, but1, but2;
      ImageView view;
      @Override &lt;&lt; this one
      public View OnCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          View myView = inflater.inflate(R.layout.fragment1, null);
          but = (ImageButton) myView.findViewById(R.id.imageButton11);
          but.setOnClickListener(this);
          but1 = (ImageButton) myView.findViewById(R.id.imageButton1);
          but1.setOnClickListener(this);
          but2 = (ImageButton) myView.findViewById(R.id.imageButton2);
          but2.setOnClickListener(this);
          return myView;
      }
  
      @Override
      public void onClick(View v) {
          main xxx = (main)getActivity();
          switch (v.getId()) {
         case R.id.imageButton11:
                  xxx.str="but1";
                  break;
  ..
              }}
  </code></pre>
  
  <p>main:</p>
  
  <pre><code>Fragment frag1 = new fragment1();
      fr1.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View view) {
                      fTrans = getFragmentManager().beginTransaction();
                      fTrans.replace(R.id.frameLayout2, frag1);
                      fTrans.addToBackStack(null);
                      fTrans.commit();
                  }
              });
  </code></pre>
  
  <p>method does not override method from its superclass in fragment1(first override)
  but without "implemets View.OnClickListener" it works</p>