I’ve created a Leaderboard activity in my app where I show the top 25 users in a RecyclerView. It all works well when it is loaded and it appears as: However, for some reason, when I scroll the RecyclerView it removes the medals and it shows: My adapter is: @Override public void onBindViewHolder(MyViewHolder holder, int ..
I’ve set up a RecyclerView and getting some odd behavior when adding Seekbars to every row or "view". I’ve also tried this just using ListView as well and get the same effect. So when I change the Seekbar on the first item, it changes the value of the seekbar on the seventh item down the ..
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: ..
I’m trying to access my background colours and images for onBindViewHolder method. Images are in res.mipmap folder after I created new Image assets. Colours are in res.values.colours.xml file Thanks in advance for help. for exact code see image: https://i.stack.imgur.com/h7Gq4.jpg Source: Android..
I have a gridLayout which looks like this: Notice how the layoutmanager forces the column spacing between the items already. this is key. i have not yet added any item decorator for any spacing. this seems to be because i have constraint the recyclerview to both ends of the screen so its filling the items ..
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 ..
I have list of images URLs. I download the images using those URLs, decrypt the images and display in a recycle view. But the problem is my recycle view displays the images after all of them are downloaded. So it takes some time. What I want to do is display each images as soon as ..
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: ..
I want the transition happens after item is removed from the list however when I remove the item transition happens earlier and it covers other items as shown in the GIF below. my second issue is that when I use layoutTransition, when the fragment is created it expands with animation, how to avoid this at ..
I’m using MapView inside my custom Fragment and I forwarded all life cycle methods to MapView. I have an issue with infinite surface update on tablet (even on tablet emulator: HAXM Nexus 10 API30) but not on any phone. I removed all functions, except necessary for MapView implementation but issue is still present. This infinite ..