Fragment UI freezing on transaction, but works smoothly on reverting same fragment from fragment back stack
<p>I have an <code>activity</code> where I am showing single <code>fragment</code> at a time, total there are three different fragments.
<code>FirstFragment</code> and <code>SecondFragment</code> containing <code>RecyclerView</code> and <code>ThirdFragment</code> have a <code>ScrollView</code>.</p>

<p>The issue is when a fragment get attached in runtime, UI freezes, but custom <code>OnItemClickListener</code> listener works fine. When I select any list item of <code>FirstFragment</code> it redirect to <code>SecondFragment</code>, which is another list view. <code>SecondFragment</code> also get freeze. But if I go back using back button, <code>FirstFragment</code> works smooth. Similarly when I select <code>SecondFragment</code> list item I get redirect to last i.e <code>ThirdFragment</code> which is a scroll view which also get freeze and if I come back to <code>SecondFragment</code> it starts working smoothly, but If I go back to the  <code>FirstFragment</code> and select any list item again and come to <code>SecondFragment</code> again UI freezes.</p>

<p><strong>NOTE:</strong> This issue is only appearing on <strong>OS version 5.0</strong> (lollipop and above) on <em>4.2.2 Jelly Bean</em> everything is working good. There is same freezing issue with support library's <code>TextInputLayout</code> animation on android <em>OS version 5.0</em> but works good on <em>4.2.2 Jelly Bean</em></p>

<p>I have created a <a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81" rel="nofollow">Gist</a> of <code>activity</code>, three respective <code>fragments</code>,  <code>RecyclerView.Adapter</code> and custom <code>OnItemClickListener</code> </p>

<p><strong><a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81#file-productactivity-java" rel="nofollow">ProductActivity.java</a></strong>, <strong><a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81#file-productcategoryfragment-java" rel="nofollow">ProductCategoryFragment.java</a></strong>, <strong><a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81#file-productlistfragment-java" rel="nofollow">ProductListFragment.java</a></strong>, <a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81#file-productdetailfragment-java" rel="nofollow"><strong>ProductDetailFragment.java</strong></a>, <a href="https://gist.github.com/omtodkar/ba4f9c4dbfa23935be2775978aacfa81#file-itemclicksupport-java" rel="nofollow"><strong>ItemClickSupport.java</strong></a></p>

<p>Any help would be appreciated. Thanks</p>

<p><strong>EDITS</strong></p>

<p>On <code>activity</code> launch I get following logs.</p>

<pre><code>04-01 16:28:47.241 32176-32176/com.example.omkar D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
04-01 16:28:47.371 32176-32176/com.example.omkar I/Timeline: Timeline: Activity_launch_request id:com.example.omkar time:77715999
04-01 16:28:47.381 32176-32176/com.example.omkar W/ResourcesManager: getTopLevelResources: com.example.omkar for user  0
04-01 16:28:47.391 32176-32176/com.example.omkar W/ResourcesManager: getTopLevelResources: com.example.omkar for user  0
04-01 16:28:47.401 32176-32176/com.example.omkar D/PhoneWindow: *FMB* installDecor mIsFloating : false
04-01 16:28:47.401 32176-32176/com.example.omkar D/PhoneWindow: *FMB* installDecor flags : -2139029248
04-01 16:28:47.431 32176-32176/com.example.omkar D/Activity: performCreate Call Injection manager
04-01 16:28:47.431 32176-32176/com.example.omkar I/InjectionManager: dispatchOnViewCreated &gt; Target : com.example.omkar.userInterface.activity.product.ProductActivity isFragment :false
04-01 16:28:47.431 32176-32176/com.example.omkar D/DisplayManager: DisplayManager()
04-01 16:28:47.461 32176-32176/com.example.omkar D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-01 16:28:47.461 32176-32176/com.example.omkar D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-01 16:28:47.491 32176-32176/com.example.omkar W/View: View too large to fit into drawing cache, needs 10563840 bytes, only 3686400 available
04-01 16:28:47.501 32176-32176/com.example.omkar W/View: View too large to fit into drawing cache, needs 10563840 bytes, only 3686400 available
04-01 16:28:47.511 32176-32176/com.example.omkar I/InjectionManager: dispatchCreateOptionsMenu :com.example.omkar.userInterface.activity.product.ProductActivity
04-01 16:28:47.511 32176-32176/com.example.omkar I/InjectionManager: dispatchPrepareOptionsMenu :com.example.omkar.userInterface.activity.product.ProductActivity
04-01 16:28:47.531 32176-32176/com.example.omkar W/View: View too large to fit into drawing cache, needs 10563840 bytes, only 3686400 available
04-01 16:28:47.561 32176-32176/com.example.omkar I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@1d12fb86 time:77716194
04-01 16:28:47.921 32176-32176/com.example.omkar W/View: View too large to fit into drawing cache, needs 10563840 bytes, only 3686400 available
04-01 16:28:47.961 32176-32191/com.example.omkar I/art: Background sticky concurrent mark sweep GC freed 32383(1734KB) AllocSpace objects, 7(112KB) LOS objects, 9% free, 16MB/18MB, paused 5.876ms total 38.048ms
</code></pre>