[英]Focus move between two fragments
您好朋友,我正在開發一個電視應用程序,其中屏幕上有兩個可見的片段。
讓我的第一個FragmentA具有帶有Grid方向的RecyclerView,並且在FragmentB中也是如此。
和
FragmentA現在具有焦點,我想使用DPAD導航移至fragmentB。
但是我無法移動fragmentB。 是否可以移動。 如果“是”,請指教。 否則,請提出建議。
提前致謝。
刪除回收站項目的父級布局的焦點,並將這些焦點僅添加到完成DPAD導航時必須聚焦或突出顯示的回收站視圖中。
android:focusable="true"
android:focusableInTouchMode="true"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.