title: Inserting ListView in the sweeping tabs
body: <p>good evening guys, i am creating a chat application and im inserting a Fragment adapter for putting sweeping tabs for its Main class,but i need my tabs have listview in each one, so i need them to extend both listview and Fragment in order to do so normally, for that reason i need alittle help from experienced guys , if you know any tricks or way i can make it this way, i really appreciate it.
  and by the way here is my adapter :</p>
  
  <pre><code>public class TabsPagerAdapter extends FragmentPagerAdapter {
  
  public TabsPagerAdapter(FragmentManager fm) {
      super(fm);
  }
  
  @Override
  public Fragment getItem(int index) {
  
      switch (index) {
      case 0:
          // Top Rated fragment activity
          return new TopRatedFragment();
      case 1:
          // Games fragment activity
          return new GamesFragment();
      case 2:
          // Movies fragment activity
          return new MoviesFragment();
  
      }
  
      return null;
  } 
  </code></pre>
  
  <p>and this part of my mainactivity</p>
  
  <pre><code>@Override
  public boolean onOptionsItemSelected(MenuItem item) {
      switch (item.getItemId()) {
  
      case R.id.menu_settings:
          Intent intent = new Intent(this, SettingsActivity.class);
          startActivity(intent);
          break;
  
      case R.id.menu_all:
          tours = datasource.findAll();
          refreshDisplay();
          break;
  
      case R.id.menu_cheap:
          tours = datasource.findFiltered("price &lt;= 300", "price ASC");
          refreshDisplay();
          break;
  
      case R.id.menu_fancy:
          tours = datasource.findFiltered("price &gt;= 1000", "price DESC");
          refreshDisplay();
          break;
  
      default:
          break;
      }
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p>thanks</p>