title: Adding a fragment on top of another fragment onClickListener issue
body: <p>I'm <strong>adding</strong> a fragment to an activity instead of <strong>replacing</strong> the current fragment (because this corresponds to the type of behavior I want to have).</p>
  
  <p>My problem is that clicking in a spot on the top fragment (the one that's currently visible), where a view in the non-visible fragment is located, causes an onClick event on the view in the second, non-visible fragment, to fire.
  Why is this happening and how can I prevent this?</p>
  
  <p>This is the code I use to first add the ListView fragment to the activity:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      ...
  
      if (savedInstanceState == null) {
          listFragment = new ListFragment ();
          getSupportFragmentManager().beginTransaction()
                  .add(R.id.frame_container, listFragment)
                  .addToBackStack(listFragment .TAG)
                  .commit();
      }
  
      ...
  
  }
  </code></pre>
  
  <p>In this same activity I'm adding the second fragment, on top of the list fragment:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode,
                                  Intent data) {
      ...
              createItemFragment = new CreateItemFragment();
              getSupportFragmentManager().beginTransaction()
                      .add(R.id.frame_container, createItemFragment)
                      .addToBackStack(createItemFragment.TAG)
                      .commit();
      ...
  }
  </code></pre>