Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

8 votes
1 answer
179 views

Calendar View show/gone inside Recyclerview ViewHolder Issue on Android 8, 9 only

I have a recyclerview with 2 or more viewholders, 1st Viewholder is just top heading banner 2nd vlewholder is for booking widget which has 3 dropdowns/detail menus including CalendarView -- All in ...
Nadeem Iqbal's user avatar
  • 2,366
1 vote
3 answers
81 views

Recryler in imageview how to make invisible

How do I fix this issue? ı want to recylerview in Imageview make INVISIBLE but it doesn't work my codes are below and sory for my bad english :) this movement in many places but I could not find the ...
quartsuee's user avatar
0 votes
1 answer
127 views

Unable to change visibility based on sharedpreference inside recyclerAdapter (Viewpager2)

I got a Viewpager2 adapter , with 2 EditText and 2 TextView in it. At the beginning, the EditTexts are visible, and the Textviews are gone. If I click on a button, if what is written inside 1 (or both)...
Hugo Becker's user avatar
0 votes
2 answers
2k views

Invisible items becomes visible on scroll in RecyclerView

I have two buttons to play and pause a track in a RecyclerView item. When play button tapped, I want to hide it and show pause button. I've done this and it's working but I have a problem. Once I ...
tpbafk's user avatar
  • 501
7 votes
1 answer
2k views

doOnPreDraw method not getting called for some items in a recyclerView

I'm having troubles with some animation in a recycler view. I do the relevant measurements in onViewAttachedToWindow: override fun onViewAttachedToWindow(holder: PairingViewHolder) { super....
Lorenzo Benevento's user avatar
0 votes
2 answers
242 views

View layout that are initially hidden, then onclick will make view visible, and vice versa(Android)

I have a constraint layout visibility that are initially set to GONE expandableLayout.setVisibility(View.GONE);. I want to make the view to be visible when 'setOnClickListener' are issued. Then, when ...
aizan qamia's user avatar
0 votes
3 answers
3k views

How to set the visibility of a view after recyclerview becomes empty

I'm trying to dynamically set the visibility of a view which is in the same fragment as the recyclerview to invisible when the recyclerview becomes empty.The problem is that i'm making the deletion of ...
Tiberiu Paduraru's user avatar
0 votes
1 answer
807 views

Changing visibility of button in viewholder of recyclerview (cardview is used)

This question is already answered but not for cardview I guess, I have already gone through most answers and experimented with them still my problem is not solved. I have a recyclerview with adapter ...
Mayur Paunipagar's user avatar
0 votes
1 answer
377 views

Problem with setting visibility of cardView in recyclerView

Hello I have a problem with setting the visibility of the cardView part. <?xml version="1.0" encoding="utf-8"?> <LinearLayout(..........)> <androidx.cardview.widget.CardView ...
Adam Jefer's user avatar
0 votes
1 answer
296 views

How to detect to view visibility(80% or so) in a recycler view like Youtube Autoplay news feed plays video when ~80 is visible

How to detect to view visibility(80% or so) in a recycler view like Youtube Autoplay news feed plays the video when ~80 is visible. And the video playback stops on a scroll and starts to play on idle ...
Vijay Kumar's user avatar
1 vote
1 answer
457 views

How can I keep track of visibility of my text view in each page in a viewpager2?

So this is my code. I am trying to create what looks like a PPT slideshow of images with their title and description in my application. I have the below code and I am stuck on how to allow the user ...
Stephanie Maaz's user avatar
0 votes
1 answer
168 views

Hide Button from RecyclerView from outside activity

I have created a chat app that uses RecyclerView in order to create the messages. The activity where all of the chat actions are is called ChatActivity. In some cases, the RecyclerView creates a ...
Ben's user avatar
  • 1,829
0 votes
2 answers
39 views

inner recyclerview inside holder cuts cut

I have the following XML layout - <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/...
Alon Shlider's user avatar
  • 1,268
1 vote
1 answer
6k views

How to hide/display specific RecyclerView item?

I have a contacts list RecyclerView, where the first item (position 0) holds the user's details. When the search icon in the toolbar is pressed, I want that entry to be hidden from the user. I've ...
George's user avatar
  • 409
0 votes
1 answer
445 views

android nested RecyclerView issue: View.GONE doesn't instantly resize/redraw nested RecyclerView

I have an app that would benefit from a recyclerView nested in a recyclerView. The issue I have though is that when I remove a textView outside on the recyclerView, the inner recyclerView doesn't ...
Slamit's user avatar
  • 515

15 30 50 per page