Category : android-recyclerview

I’m trying to move an ImageView slightly out of the cardView, but the cardview keeps clipping the child. I have following XML structure: <RecyclerView> <CardView> <LinearLayout> <LinearLayout> <ImageView/> … I have set all containers with: clipToPadding="false" clipChildren="false" And everything besides the RecyclerView got setClipToOutline="false". On top the cardView has cardUseCompatPadding="true" Android Studio predicts the following: ..

Read more

i am working with single activity and MVVM artitechture its have main activity for just launcher then there is the MainFragment from there we go to ViewPagerContainerFragment using navigation component and in that fragment i have viewpager2 setup with tablayout and in each fragment of viewpager2 there is recyclerview which need to load data from ..

Read more

I send request to /list.php?page=1 and display data in UI with Paging 3 component. In first request, areItemsTheSame(new, old) method do nothing. No log in Logcat. Then i refresh data with SwipeRefreshLayout and request sent same api (/list.php?page=1). DiffUtil.ItemCallback areItemsTheSame(new, old) method check items twice. once in descending order then ascending order. Logcat: I: newItem: ..

Read more