title: add button inside viewpager fragment and intent in another activity?
body: <p>I'm trying to create an app which will display my menu and I use <code>viewpager</code> fragment for display and I want to add a button for every page of the <code>viewpager</code> which will intent to another activity can someone help me for this?</p>
  
  <p>This is my viewpager:</p>
  
  <pre><code>public class menu_meat_viewer extends FragmentActivity{
  
      private PagerAdapter mPagerAdapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.meat_viewer);
  
  
          initialisePaging();
      }
  
      private void initialisePaging(){
  
          List&lt;Fragment&gt; fragments=new Vector&lt;Fragment&gt;();
          fragments.add(Fragment.instantiate(this, meat_adobo.class.getName()));
          fragments.add(Fragment.instantiate(this, meat_bbqpork.class.getName()));
          fragments.add(Fragment.instantiate(this, meat_tlshrmp.class.getName()));
  
          mPagerAdapter=new menu_meat_viewer_adapter(this.getSupportFragmentManager(), fragments);
          ViewPager pager = (ViewPager) findViewById(R.id.meat_view);
          pager.setAdapter(mPagerAdapter);
      }
  
  
  
  }
  </code></pre>
  
  <p>and this is one of my page in view pager:</p>
  
  <pre><code>public class meat_adobo extends Fragment{
  
      int price= 70;
      String name="classic chicken adobo";
  
      MDB mdb;
  
  
      @Nullable
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
          if(container==null){
              return null;
          }
          return(RelativeLayout) inflater.inflate(R.layout.meat_adobo,container,false);
      }
  }
  </code></pre>