android-recyclerview Questions

3

I have RecyclerView above that i have an AppBarLayout whose height is larger than 255 px. When user scrolls RecyclerView, AppBarLayout has an fling issue. To avoid that i decided to expand AppBarLa...

1

I have a SearchView within a Toolbar, that sits up above a RecyclerView list of CardViews. The SearchView works correctly to filter the list based on text inputs. However, the code in the ListAdapt...

2

I am trying to map a List<List<Object>> to a RecyclerView in Android, but the result is totally messed up. For example, I have a list of list like this (just for explaining, not my real...
Bedmate asked 15/4, 2015 at 23:14

3

Solved

I have a RecyclerView where each row also has an EditText that allows the user to enter a value. However when the user rotates the screen the values reset to their default blank values. So I want...
Preterition asked 26/4, 2016 at 18:25

7

Below are the Dependencies which I have used implementation 'com.squareup.retrofit2:retrofit:2.0.2' implementation 'com.squareup.retrofit2:converter-gson:2.0.2' Below is the code which I am callin...
Bustard asked 20/10, 2020 at 5:50

6

I've read through similar topics but I couldn't find satisfactory result: What is the equivalent of NestedScrollView + RecyclerView or Nested RecyclerView (Recycler inside another recycler) in Jet...

5

Solved

Is it possible to have feature like drag and drop between two different RecyclerView? I found library for drag and drop within RecyclerView. Please help me to improve this functionality.
Cavil asked 17/4, 2015 at 4:45

6

Solved

I have a RecyclerView that loads images from URLs using Glide. Now the URLs are retrieved from Firebase using pagination as you can see below. The issue is that when the MainActivity (which contain...

6

Solved

I have a list of objects of class AA that contain a date and a list of objects of class BB: data class AA( val date: LocalDate, val bb: List<BB> ) @Parcelize data class BB( val x: Int, ...
Flapjack asked 5/8, 2019 at 10:38

12

Solved

This is what I want: As image above, I want to draw a center line on RecycleView, then get the center item when scrolling (as well as move left or right) Here is my try to draw a horizontal Recycl...

6

Solved

I have a RecyclerView which is in a CardView that has a couple of TextViews. The CardView has a OnClickListener set and is fired off when clicking on the TextViews, but does not fire when clicking ...
Rositaroskes asked 24/5, 2015 at 3:51

9

Solved

I am using Advance Navigation Component with BottomNavigationView. In one tab I have ViewPager2. When I clicked on the tab for the first time, it worked fine. Although the second time, come on that...

3

Solved

I set animaion like this: @Override public void onBindViewHolder(ViewHolder holder, int position) { Animation anim = AnimationUtils.loadAnimation(context, R.anim.rotate); holder.windPropellers...
Palaeontography asked 21/1, 2017 at 13:45

4

Solved

I have a RecyclerView inside a HorizontalScrollView. I don't see inside RecyclerView all the items. I have looked and even if the list in the adapter has 7 items, onBindViewHolder is called only 4 ...
Viehmann asked 14/5, 2019 at 17:32

5

Solved

I have an AppBar and RecyclerView in CoordiantorLayout. SwipeToRefresh has to be fullscreen but RecyclerView not scrolling down then. <com.google.android.material.appbar.AppBarLayout andro...

3

I would like to check when smoothScrollToPosition has finished scrolling back to the first item of recyclerview. I tried doing it like this which only works while smoothScrollToPosition is still sc...
Francophile asked 10/7, 2018 at 9:10

1

I was trying to use FlexBox layout with JetpackCompose. I assumed that I can use normal RecyclerView and use ComposeView to render my view. So I started with the documentation and attempted all the...
Bertelli asked 28/9, 2021 at 10:53

10

I need to make sure that horizontal recyclerView height is the same as the height of the biggest item. Items can have a different height (Item = always the same image + title + subtitle, title an...
Shuck asked 11/9, 2019 at 13:21

3

ExoPlayer is not showing the video. I can listen the audio but video is not playing. I am using the Exoplayer in the Recyclerview.I only can see the black screen and listen to audio.I am not ...
Cobblestone asked 6/8, 2016 at 12:29

5

In my application I have vertical parent RecyclerView with few horizontal childs inside its ViewHolders. But I have pretty annoying scrolling issue - after I scroll parent RV vertically I want to s...
Gehman asked 4/4, 2018 at 13:14

13

I want to expand/collapse the items of my recyclerView in order to show more info. I want to achieve the same effect of the SlideExpandableListView. Basically in my viewHolder I have a view that ...
Betthel asked 29/11, 2014 at 15:23

4

Solved

Using the following code within a RecyclerView.Adapter: onBindViewHolder(VH holder, int position){ holder.itemView.setAlpha(0.5f); } Alpha will not be shown the first time the item is shown. Ho...

4

Solved

Currently, I need to use paddingTop and paddingBottom of RecyclerView, as I want to avoid complex space calculation, in my first RecyclerView item and last item. However, I notice that, requiresFa...
Brouhaha asked 27/3, 2019 at 8:37

10

I have a RecyclerView with its RecyclerView.Adapter and view holder. I am trying to delete an item from list, code as follows inside onClick() on delete button in the ViewHolder int position = getA...
Dinger asked 5/4, 2017 at 12:18

17

I have a RecyclerView that is inside a CardView. The CardView has a height of 500dp, but I want to shorten this height if the RecyclerView is smaller. So I wonder if there is any listener that is c...
Scalar asked 22/5, 2015 at 13:3

© 2022 - 2024 — McMap. All rights reserved.