我有一個activity
我一次只顯示單個fragment
,總共有三個不同的片段。 FirstFragment
和SecondFragment
包含RecyclerView
和ThirdFragment
有一個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
的,三個各自fragments
,RecyclerView.Adapter
和定製OnItemClickListener
ProductActivity.java,ProductCategoryFragment.java,ProductListFragment.java,ProductDetailFragment.java,ItemClickSupport.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