Questions tagged [expandablerecyclerview]

an Android library to allow for an expanded view to be attached to each ViewHolder.

Expandable RecyclerView is a library written to allow for an expanded view to be attached to each ViewHolder. To allow for full functionality of a normal RecyclerView, the RecyclerView has been modified to use two types of ViewHolders, a child and a parent with the ability to customize each separately.

This library has been deprecated.

98 questions
0
votes
0 answers

How to implement getItemViewType function in expandable recyclerview to handle position of layout

In the Normal recycler view, if we use getItemViewType that helps us to handle position layout likely if your recycler view binding the same layout after scroll that function helps us to tackle that problem. In my case I'm using expandable recycler…
0
votes
0 answers

Expandable listview with viewpager

How can i use expandable listview with viewpager. I mean, when i click on the first child it would open a fragment layout, i can now swipe from that first child to the last child in that parent group without go back to the expandable listview. Not…
0
votes
2 answers

How to get expandable items in recyclerview?

I want to display recyclerview with sub items which needs to expand/collapse. For example, Main Item 1 (expand) --- Child Item 1 (expand) ------- sub Item 1 ------- sub Item 2 --- Child Item 2 (expand) ------- sub Item 1 Main Item 2 (expand) ---…
0
votes
1 answer

How to change constructors JVM signature for preventing platform declaration clash in Kotlin

I am trying to make a expandable recyclerview with model data. But I am getting a signature error. Tried different solutions but didn't work.How can i set JvmName to a constructor? Error: Platform declaration clash: The following declarations have…
alpertign
  • 296
  • 1
  • 4
  • 13
0
votes
0 answers

Show Header and expand childs

I want to create an expandable view with a header and child, whats the best approach to do something like this: A view to represent a header, that should be the first item of my list When the header is clicked, it shows the rest of the items.…
0
votes
1 answer

In 3 level Nested Expand/ Collapse Vertical(all) Recyclerview data is not updated in inner Recyclerviews after 1st or subsequent time Qrcode scan data

After first qr code scan i make API call and get data. its work fine. But later when i scan other QRcode the data is retrieved but its not shown in inner recyclerview, mean no expand and collapse function works. after instantiating recyclerview,…
0
votes
1 answer

Custom animation when item removed in recycleview

I'm trying to fade out items when it's removed then collapse recycleview. But it doesn't work. Please help me for(Object appData : mInvisibleEntries){ mVisibleEntries.remove(appData); } for(View view:viewHoldersList){ Animation a =…
Pein
  • 33
  • 4
0
votes
1 answer

Creating an expandable Recycler View

I have gone through other questions as well, but couldn't figure out something. I want to create a User list using the Expandable RecyclerView. The way I want it to be My RecyclerView part is all done. Now my question is how can I achieve this…
0
votes
1 answer

RecyclerView notifyItemRangeRemoved no animation

I used recyclerView with notifyItemRangeInserted and notifyItemRangeRemoved. RecyclerView in my screen used width="match_parent" and height="wrap_content" I need to show or hide ALL elements in my recylerView. I used this code and it works nice.…
0
votes
1 answer

Incorrect position code when trying to implement RecyclerView click listener

I've spent quite a while trying to find the cause of this problem. I have a RecyclerView with several different view types but the problem I have is with the click event in 1 of my view holders (ViewHolderA). Since I get these errors, I don't know…
wbk727
  • 8,017
  • 12
  • 61
  • 125
0
votes
2 answers

How to animate an expand/collapse arrow for 180 degree when arrow is clicked?

I have a expand more icon on linearLayout in expandable recycler view I want when click on linearLayout is clicked layout will expand and this icon will rotate with animation in 180 degrees like below- here is my action code: rotationAngle =…
0
votes
1 answer

make recyclerview item take sceen width and position it on click

Am working with google maps and I have a horizontal recyclerview on top of the map to show some Important information about some locations in the map I want when the user select some item to make it take the whole space ( match parent ) and am able…
0
votes
1 answer

Android Java - Variable 'adapter' might not have been initialised

I'm developing an android app where the details from the Firebase Realtime Database will be shown in Recycler View. I want to make it like expandable recyclerview. But I'm getting a error when i tried to use my adapter. Variable 'adapter' might not…
0
votes
2 answers

How to set OnClickListener to Expandable RecycleView

I want to set OnClickListeners to the items from my Expandable Recycleview. Each item from the Recycleview should have a button ( like this https://i.stack.imgur.com/cuQWk.jpg : a + button to add tasks and an "x" button for each task to delete it) I…
0
votes
1 answer

Expandable layout Expands upwards instead of downwards

When i try to put my Expandable layout to the bottom of my cardview using android:layout_gravity="bottom" it goes to the bottom but expands upwards After clicking the relative layout "button" I am getting data from arraylist passing it to the…