2016-03-31 5 views
3

私は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(上記ロリポップと)の上に表示されています。そこアンドロイドOSバージョン5.0上のサポートライブラリのTextInputLayoutアニメーションと同じ凍結問題があるが、私はGistactivityの、3つのそれぞれのfragmentsRecyclerView.AdapterとカスタムOnItemClickListener

を作成している 4.2.2ジェリービーン

に良い作品

ProductActivity.javaProductCategoryFragment.javaProductListFragment.javaProductDetailFragment.javaItemClickSupport.java

ご協力いただければ幸いです。おかげactivity打ち上げで

EDITS

は、私は次のログを取得します。

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 

答えて

関連する問題