Questions tagged [android-recyclerview]

The RecyclerView widget is a more advanced and flexible version of ListView and GridView.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

How to bring to front a recyclerview child item?

When the user clicks an item, I wish to bring it to the front in the recycler view and show a dark/transparent overlay covering all the others. Something like this https://drive.google.com/file/d/1T8-...
-1
votes
1answer
19 views

nested expandable items in recycler view

I'm trying to create a recycler view that has 2 section headers and these headers can contain normal items as well as expandable headers to display more of the standard item. See image. Looking for ...
-1
votes
0answers
7 views

GridLayout with nested RecyclerViews and bidirectional scroll

I would like to achieve the result shown in the gif below Two list views, maybe in a grid layout, which scroll vertically together and one of them can also scroll horizontally to show more contents. ...
0
votes
1answer
16 views

How can I improve the performance of RecyclerView and Firebase search?

I view the data that the user queries through an edittext via Firebase database in the application with RecyclerView. My problem is. If the queried text is too much in the database (for example: 1000+)...
0
votes
0answers
13 views

Touch issue with HelloCharts inside RecyclerView

I have a HelloCharts view inside a RecyclerView. The chart is set as interactive with only value selection enabled (no scrolling or zooming). The problem is that when trying to scroll the ...
2
votes
0answers
30 views

Seekbar in recyclerview also moves recyclerview

Basically i have implemented recyclerview in nested scroll view which contains the arc seek bar in each item of recyclerview. So when i move seekbar recyclerview is also scrolling. I tried using ...
0
votes
0answers
7 views

Recyclerview viewholder item click rendering issue

I am experiencing an issue regarding recyclerview item click, as the viewholder(item) has a textview inside it and I am implementing click on that textview. What I am facing that , when I have put ...
0
votes
1answer
34 views

Advanced recyclerview adapters

I have been trying to find information about creating advanced RecyclerView adapters. I need two versions of adapters for my application. The first one is similar to the Google Keep checklist. ...
0
votes
0answers
33 views

Recycler view in bottomsheet is not click on first time. Second time only able to clicked

I am showing recyclerview in bottomsheetfragment. I can able to click the button which are all visible at start in recyclerview, but the view which are all created by recyclerview on scrolling is not ...
0
votes
1answer
37 views

Why layout is not attach in RecyclerView Adapter class?

I have the following setup for a recyclerview. Now the problem is my layout is not attached with the recyclerview adapter, meaning it is not showing when I enter the layout name in the recyclerview ...
1
vote
1answer
32 views

How do you add text beside your image in an ArrayList in Android in the RecyclerView [on hold]

public class ProgrammingAdapter extends RecyclerView.Adapter<ProgrammingAdapter.ProgrammingViewHolder> { private Context context; private String[] data; public int[] img; ...
1
vote
1answer
37 views

How to resolve addInArray exception and removeFromArray exception in recyclerView Android?

Whenever I try to load data in custom recycler view as a grid layout then view gets disappear suddenly but sometimes its load the data perfectly. I have used recycler view under nested scroll view ...
1
vote
0answers
34 views

findFirstCompletelyVisibleItemPosition recycler view always returning -1

I tried all possible solutions for this issue, but it didn't work. Here is my xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android....
1
vote
1answer
32 views

How to make Toolbar scroll with content in Fragment?

I have an Activity with DrawerLayout which contains a Fragment containing a RecyclerView. How can I let the ToolBar scroll away on scrolling in the RecyclerView without having to load all items in the ...
-3
votes
3answers
42 views

I wanna Get my data from another activity recyclerview, using intent in recyclerview [on hold]

I try to send my data from RecyclerView activity (MainActivity) to another RecyclerView activity (Activity2) using putExtra and getExtra Intent, but when I try to get Intent like this Intent intent =...
0
votes
2answers
42 views

This error keep on pop up: No view found for id 0x7f08003d

I am created a fragment and I want to insert it into a framelayout which is inside the content of my cardview. Inside the fragment there is another reyclerView. View view; private List<...
1
vote
1answer
22 views

RecyclerView GridLayoutManager: Individual layout per item count

I need some help with my GridLayoutManager. If I have an item it should be displayed as normal in the middle. For two items these should be next to one another. Example with 2 Items From three to ...
-1
votes
1answer
26 views

How can I use recyclerviewadapter with sqlite in android?

I have an SQLite database in android. I couldn't be able to see image data in RecyclerView. How can I see that in the activity page with a RecyclerView adapter? I tried this but EpisodesAdapter ...
0
votes
1answer
19 views

I've tried to make a RecyclerView with an Adapter but I cannot see the layout?

I've tried to build a recyclerview with an adapter class and cardview layout however even though the code runs I cannot see the list with cardview (I just get a blank recyclerview)? SpeakerAdapter....
-1
votes
0answers
25 views

Recyclerview at the end of the button of the each activity [on hold]

Trying to build an app which has Recyclerview at the end of the button of each activity. The following image will describe the idea I want to implement https://i.stack.imgur.com/qUVwg.jpg Thanks in ...
1
vote
1answer
41 views

RecyclerView Adapter won't inflate the correct layout

I'm trying to have my application display a specific layout when the arraylist PinnedSongs is empty. I've created different viewholders and tried to inflate them depending on the PinnedSongs.size. ...
0
votes
1answer
28 views

Where to clear CompositeDisposable in RecyclerView.Adapter

Consider we have some Disposable in our RecyclerView.Adapter and we added them to a CompositeDisposable. which Adapter method callback is the best choice to clear() the CompositeDisposable ? ...
0
votes
6answers
80 views

Unable to show list in RecyclerView

I am trying to show the list in RecyclerView. but after setting adapter only Adapter constructor getting called after that nothing happens Below is the code of Adapter public class ...
-1
votes
0answers
24 views

RecyclerView item decoration causes out of memory

I'm trying to set a margin to my RecyclerView items. That's how I do it: public class WidgetMarginItemDecoration extends RecyclerView.ItemDecoration { WidgetMarginItemDecoration(Context context) {...
0
votes
1answer
65 views

For loop is not running fully [duplicate]

Every time I run this code the for loop stops after some random number of iterations, but not 100. If I comment out the data retrieving part from firebase, the for loop runs fully.Can I know the ...
0
votes
0answers
19 views

Android recyclerview adapter load from firestore when needed [duplicate]

I have a FireBase database that's getting quite big now. My recyclerview is filled with items from this database, but I now want to switch from loading the entire list to loading only the first x ...
3
votes
3answers
30 views

Retrofit onFailure throws “Unexpected end of stream” message in scrolling a endless scroll listener

I am loading server data in my app in endless scroll recyclerView using pagination with retrofit 2 library. But unfortunately after scrolling some page retrofit onFailure method throw a message ...
0
votes
0answers
21 views

How to add search functionality in Endlessscrollview(Lazy Loading) in recyclerview android

We are using Lazy loading in Recyclerview but we are not able to add search functionality in lazy loading, kindly suggest any solution Thanks in advance
-1
votes
1answer
38 views

Recyclerview - OnCreateViewholder - How to return “null” if some condition

Im struggling with some code and what i want to do is in some cases inflate a view, in other cases inflate another different view but in OTHER CASES ignore the register and don't inflate a view. So i ...
1
vote
0answers
41 views

RecyclerView repeats data and scrambles on scrolling

I am using a RecyclerView to display a list of items, but it refuses to display nicely despite my most sincere efforts. The items repeat after the first 14 in portrait and the first 10 in landscape, ...
1
vote
2answers
27 views

Android sticky-footer: Align footer view to table, until it reaches screen size, then become fixed.at the bottom

This should be similar to an iOS tableview footer, also seen in various websites (sticky-footer). I want to achieve the following: A is a RecyclerView with variable number of rows. When A is ...
0
votes
0answers
7 views

How to get position of a particular object in RecycleView adapter

I am working with a chat application in which I have to show messages list. I need to update a message. I have message id and other details but I'm not aware of message position. So my question is how ...
0
votes
2answers
22 views

My RecyclerView in fragment stays blank even when it's populated

I have the following problem with RecyclerView on Android: Whenever I try to open the fragment with the RecyclerView, it stays blank. My ArrayList mList isn't empty, it contains data (I tested it). ...
0
votes
1answer
20 views

Pop up Menu functions for ReyclerView Item Android Studio

I'm implementing cancel and enable functions for a reyclerView using a pop up menu that calls a back-end API that interacts with the database. The API works fine. However, the functions update the ...
0
votes
0answers
8 views

Epoxy drag duplicating items

I am trying to implement item drag support with epoxy. But I see dragged items get duplicated and get overlapped with the item previously on that position. And if you scroll you will see that dragged ...
0
votes
1answer
28 views

RecyclerView Show element if is scrollable

I have a List in a RecyclerView, and when is scrollable i want to show a button. And if is not the button remain in Gone. And when the user is at the bottom of the list, the button is gone. My problem ...
0
votes
2answers
34 views

ViewPager2 with horizontal scrollView inside

I implemented the new ViewPager for my project. The viewPager2 contains a list of fragment private class ViewPagerAdapter extends FragmentStateAdapter { private ArrayList<Integer> ...
0
votes
0answers
11 views

recyclerView needs V7 when migrate to androidX

I migrate my project to AndroidX, but now the recyclerView in ANKO is not working anymore. How to use ANKO recyclerView with AndroidX? I put the androidX and Jetifier to false in gradle.property so ...
0
votes
1answer
49 views

How to set OnClickListener on RecyclerView item in MVVM structure

I have an app structured in MVVM. I have different fragments within the same activity. Each fragment has its own ViewModel and all data are retrieved from a REST API. In FragmentA, there is a ...
0
votes
0answers
25 views

Content not displaying horizontally in android using recyclerview with tablelayout [duplicate]

In the below image describes the table row content inside not displaying horizontally. Response: [{"email":"[email protected]","id":"20","mobileNumber":"undefined","username":"akash4345678"}] In the ...
-1
votes
2answers
42 views

RecyclerView.setAdapter not being resolved

Everything works as in other projects but for some reason I'm unable to set the projectListItems ( a recycler view ) adapter because it won't resolve setAdapter()... binding.projectListItems....
0
votes
0answers
25 views

ItemTouchHelper in RecyclerView that has nested horizontal RecyclerView - can't scroll nested RecyclerView

RecyclerView uses ItemTouchHelper for swipe-to-dismiss ViewHolder contains nested horizontal RecyclerView Nested horizontal RecyclerView cannot be scrolled, instead whole ViewHolder gets swiped ...
-1
votes
0answers
15 views

How To make Recyclerview with imageView and textview [on hold]

i want design RecyclerView but i dont know to make User interface like: -Imageview Leftside, image offline not glide or picasso -double Textview with android orientation vertical -with ...
1
vote
0answers
20 views

How to infinite scroll last fragment from multiple fragment?

I have multiple fragment in one activity and want last fragment to infinite scroll, but addOnScrollListener not working when scrolling. I have success to implement infinite scroll in activity and in ...
0
votes
1answer
37 views

ViewHolder cannot be cast to OtherViewHolder

I have a problem with my Recyclerview's custom adapter. I'm trying to display two different views with different data source in one recycler view. It was working great before I make some changes and ...
1
vote
1answer
24 views

IndexOutOfBoundsException for MapView in RecyclerView

I'm getting IndexOutOfBoundsException exception when I try to update the adapter containing the MapView. I'm using example LiteListDemoActivity. Once it's static everything is fine, but when I want ...
0
votes
1answer
30 views

Android When Keyboard Open Bottom EditText Not Showing

I use RecyclerView with costum row. Costum row has Linear Layout (horizontal) and it has two TextView, one EditText and the row count is 50. So my problem is when keyboard open my bottom EditText now ...
0
votes
0answers
19 views

Expand Collapse displays extra items from recycler view

I created various titlesName that can expand and collapse. When I click on individual titleNames they expand and collapse perfectly if the items in recycler view are totally visible in view. Let's say ...
0
votes
0answers
21 views

onclick recyclerview fragment kotlin

Following Code works perfectly on Activity but not on fragment class MyProjects(view: View) : RecyclerView.ViewHolder(view) { init { view.setOnClickListener { println("Test") } } ...
-2
votes
2answers
47 views

My recycleview isn't working. Can you help me?

I really need some help. I'm new in android studio. I'm having a problem about my recyclerview, it wont show some items but there's no errors. Adapter: public class ClassAdapter extends RecyclerView....