title: start Fragment from RecycleView Adapter Onclick
body: <p>Hi I have A <code>RecycleView</code> <code>Adapter</code> and A button. I want that button to start a Fragment. I can start an activity but not a fragment. I have tried this <code>Onclick</code> method for my <code>Button</code></p>
  
  <pre><code>@Override
          public void onClick(View v) {
              Bundle bundle = new Bundle();
              bundle.putParcelable("event", events.get(getLayoutPosition()));
              Fragment fragment = new EditEventDetailFragment();
              fragment.setArguments(bundle);
              fragment.getFragmentManager().beginTransaction().replace(R.id.contentMainDrawer,fragment).commit();
          }
  </code></pre>
  
  <p>But have error invoke null object (<code>contentMainDrawer</code>) is my Main activity content_layout.</p>
  
  <p>Any help is much appreciate. The Fragment host recycle view is call from Mainactivity</p>