title: Get the View of the fragment, and disable the whole view
body: <p>In my <strong>main.xml</strong> layout, I have an <code>&lt;FrameLayout&gt;</code> element which is the <strong>fragment placeholder</strong>:</p>
  
  <p><strong>main.xml:</strong></p>
  
  <pre><code>&lt;FrameLayout
          android:id="@+id/fragment_placeholder"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"/&gt;
  </code></pre>
  
  <p>I add Fragment <strong>programmatically</strong> to the above <code>&lt;FrameLayout&gt;</code> by:</p>
  
  <pre><code>fragmentTransaction.add(R.id.fragment_placeholder, fragment, null);
  </code></pre>
  
  <p>I can then use the <code>replace()</code> to change to other fragment:</p>
  
  <pre><code>fragmentTransaction.replace(R.id.fragment_placeholder, otherFragment, null);
  </code></pre>
  
  <p>At some point of my project, I need to <strong>get the current showing fragment</strong>, and <strong>disable</strong> everything on the view. I firstly successfully get the current showing fragment by :</p>
  
  <pre><code>Fragment currentFragment = fragmentManager.findFragmentById(R.id.fragment_placeholder); 
  </code></pre>
  
  <p>Then, <strong>how can I disable the view of the fragment ?</strong> On the view, there could be buttons, is it possible to disable the whole view? If it is not possible, how can I add an overlay on the view?</p>
  
  <p><strong>I tried:</strong></p>
  
  <pre><code>currentFragment.getView().setEnabled(false); 
  </code></pre>
  
  <p>But, it does not work, I can still click on buttons on the view.</p>