2016-03-31 32 views
3

我有一個activity我一次只顯示單個fragment,總共有三個不同的片段。 FirstFragmentSecondFragment包含RecyclerViewThirdFragment有一個ScrollView片段UI凍結事務,但工作順利從還原片段回棧

問題是當片段在運行時連接時,UI凍結,但自定義OnItemClickListener偵聽器正常工作。當我選擇FirstFragment的任何列表項時,它將重定向到SecondFragment,這是另一個列表視圖。 SecondFragment也凍結。但如果我回去使用後退按鈕,FirstFragment工作順利。同樣,當我選擇SecondFragment列表項我得到重定向到最後,即ThirdFragment這是一個滾動視圖也得到凍結,如果我回來SecondFragment它開始工作順利進行,但如果我回到FirstFragment,再次選擇任何列表項,再次來到SecondFragment UI凍結。

注:這個問題只在上4.2.2果凍豆一切出現在OS 5.0版(棒棒糖及以上)工作良好。有一個與支持庫的TextInputLayout動畫在Android OS 5.0版同一凍結的問題,而是工作在4.2.2果凍豆

好,我已經創建了一個Gistactivity的,三個各自fragmentsRecyclerView.Adapter和定製OnItemClickListener

ProductActivity.javaProductCategoryFragment.javaProductListFragment.javaProductDetailFragment.javaItemClickSupport.java

任何幫助,將不勝感激。由於

編輯

activity推出我獲得以下日誌。

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 > 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: [email protected] 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 

回答