Closed pavelsust closed 1 year ago
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="true" android:layout_gravity="right" android:clipChildren="false">
<com.rubensousa.dpadrecyclerview.DpadRecyclerView android:id="@+id/slider_recyclerView" android:layout_width="match_parent" android:orientation="horizontal" android:layout_height="match_parent" android:clipChildren="false" />
</androidx.constraintlayout.widget.ConstraintLayout>
binding.sliderRecyclerView.requestFocus() binding.sliderRecyclerView.adapter = bannerAdapter
Please try following this guide: https://rubensousa.github.io/DpadRecyclerView/selection/
You need a focusable element in your adapter
@pavelsust did you manage to solve this problem?
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:focusable="true" android:layout_gravity="right" android:clipChildren="false">
</androidx.constraintlayout.widget.ConstraintLayout>