title: onBackPressed and Fragments
body: <p><strong>PROBLEM</strong></p>
  
  <p>I've <code>MainActivity</code> with <code>onBackPressed</code> overridden that holds <code>SearchFragment</code> within and <code>FrameLayout</code> for <code>DetailsFragment</code>(its an XML for Master/Detail 600dp-land).
  Normally the <code>DetailsFragment</code> appears in its own <code>Activity</code> but on tablets its in <code>FrameLayout</code>.</p>
  
  <p>This <code>DetailsFragment</code> have additional <code>View</code> that is normally hidden but might be shown via user interaction.</p>
  
  <p>What I need is determine first whether <code>View</code> must start animating(closing) or leave <code>Fragment</code>.</p>
  
  <p>I want to achieve closing this additional <code>View</code> before leaving the <code>DetailsFragment</code> with <code>onBackPressed</code>.</p>
  
  <p>I have no idea how to solve this problem!</p>
  
  <p>Please help me.</p>