title: Fragment is not abstract and does not override abstract method
body: <p>I am having a Fragment inside a class, because it's part of a ViewPager.
  However, in my outer class, I am implementing and OnItemClickListener from a third part library for NavigationDrawer. But inside my inner class, I have an OnItemClickListener which is the Android SDK interface. But it gives me an error due to a fail of implementing the onItemClick method, which I actually have implemented.</p>
  
  <p>Inner class implementation:</p>
  
  <pre><code>public static class AllFragment extends Fragment implements AdapterView.OnItemClickListener
  </code></pre>
  
  <p>implementation of the onItemClick method:</p>
  
  <pre><code>        gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
              @Override
              public void onItemClick(AdapterView&lt;?&gt; arg0, View v,
                      int position, long arg3) {
                  String selectedItem;
                  if (position % 2 == 0)
                      selectedItem = "Facebook";
                  else
                      selectedItem = "Twitter";
                  Toast.makeText(getActivity(),
                          "Selected Item: " /*+ GridViewCustomAdapter.titles.get(position)*/,
                          Toast.LENGTH_SHORT).show();
                  Intent showItem = new Intent(getActivity(), ShowAdvert.class);
                  showItem.putExtra("objectId", objectIdList.get(position));
                  startActivity(showItem);
  
              }
          });
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Error:(327, 16) error: AllFragment is not abstract and does not override abstract method onItemClick(AdapterView&lt;?&gt;,View,int,long) in OnItemClickListener
  </code></pre>
  
  <p>If I don't write <code>new AdapterView.OnItemClickListener()</code> but just write <code>new OnItemClickListener()</code>instead, it will call the OnItemClickListener from the outer class, which I'm not interested in. Btw the outer class start looks like this: </p>
  
  <pre><code>public class MainActivity extends NavigationLiveo implements
      br.liveo.interfaces.OnItemClickListener {
  </code></pre>
  
  <p>Why do I get this error?</p>