Questions tagged [recycler-adapter]

A RecyclerAdapter binds model data with recycling views.

3
votes
1answer
25 views

How can I keep the soft keyboard up when switching to the next EditText in a recycler view?

The problem I am facing is when the user clicks the next button on the keyboard, the program should focus onto the next EditText on the screen and keep the keyboard open until there are no more ...
0
votes
1answer
70 views

Start Another Class From adapter Using Intent?

I want to use Intent And Want to move to another viewpager class and I am using the Intent to do this like private void gotInvoiceClass(String fname) { Intent goToUpdate = new Intent (...
0
votes
0answers
43 views

How to increase RecyclerView performance?

When I use a "heavy" views in RecyclerView, it has lagged when I scrolling and shows strange artifacts like this animation. When I use a "light" views in RecyclerView, it works correctly. That happens ...
-2
votes
0answers
22 views

notifyItemRemoved not updating the list

Using MVVM design pattern in android and showing mutlicolors cards using Recyclerview adapter. When i try to remove a card from the code. It is working. eventsDataModelList.remove(position); ...
0
votes
1answer
19 views

RecycleView multiplebuttons should hold user id from volley and send user id to database on click of buttons

I created a RecyclerView with multiple buttons. Both buttons will hold user_id using volley with PHP and MySQL. But I am not able to send the user id when clicking the button of the particular user. I ...
1
vote
3answers
29 views

Mess while changing a Special item color

I want to change the color of a Special item in a recyclerview I used the following code for this request but when there are too many items, I scroll down Background color of all other items also ...
0
votes
1answer
27 views

ClassCastException custom ViewHolder cannot be cast to another Viewholder

my project should create multiple views based on user input (user send text, take a photo or record a video) similar to WhatsApp chat activity, almost same structure. The adapter should be able to ...
-2
votes
0answers
27 views

How to create a recyclerView with smooth scrolling [on hold]

I am facing scrolling smoothness issues when I create recyclerViews. I want to create a recyclerView that scrolls smoothly like the ones in the following E-commerce apps: flipkart myntra
0
votes
1answer
21 views

How can I put two different variables inside of a textview in recyclerview when it runs a second time?

I have one recyclierview adapter in my project. It loads two times and puts variables inside textview in activity. I want it to load different for the second time when it loads. I just tried to make ...
1
vote
0answers
23 views

chatting recyclerview's type2 don't display

i want it left display is Data class and view type ==0 right display is MeData class and view type ==2 Currently I would like to use two multiview types using recyclerview. Data and MeData are two ...
2
votes
2answers
44 views

Get RecyclerView item click count

I am using recyclerview in my android app and i want to show ads in my app, i know how to show ads but what i want to do is get recyclerview item count so if a user clicks on say e.g two items i want ...
0
votes
1answer
34 views

Edit Text values from Recycler View should be updated in Firebase Database

I am able to access the marks but want to store them at their respective locations only (meaning every student gets his marks and not someone else's) This is how my Recycler View looks Firebase Data ...
0
votes
0answers
19 views

how to use a data model to change recycleview data

Im building a chat application with kivy and have a SelectableRecycleBoxLayout of the users friends(works good). Im trying to switch chats everytime the user select a friend from the list to that chat ...
-2
votes
0answers
21 views

OnClickListener is not working in RecyclerView AdapterClass [duplicate]

I am working with CardView with RecyclerView. When I add this Line "listener.onCardSelected(position, holder.thumbnail);" in Listener I get Error. If i romve this line My project Run. But I need This ...
0
votes
5answers
86 views

Android: How to pass all the data from RecyclerView adapter to NewActivity by clicking button outside of RecyclerView?

I want to pass prices (without titles) from RecyclerView to NewActivity and then display them sorted by clicking on the button. I've got a problem with passing all of the prices to NewActivity by ...
-1
votes
0answers
11 views

Debug : E/RecyclerView: No adapter attached; skipping layout

why doesn't the data appear in fragment on my emulator? I got the the error" No adapter attached; skipping layout" onCreateView Method v = inflater.inflate(R.layout.frag_diagnosawal, container, ...
0
votes
0answers
12 views

Is it possible to add a Section Item/Footer to the top/first index of a Expandable group?

I am using the groupie library for managing my recyclerviews. My issue is that I can only get it to add a sectionItem to the bottom of the expandableGroup list everytime I call expandableGroup.add(...
1
vote
2answers
31 views

How to create base fragments so that child fragment can extend from them to set an adapter in the OnCreateView function?

I have an abstract base fragment class that extends from fragment. Monitor list fragment extend from this base fragment. I need to set individual adapters in each fragment because the data in the ...
0
votes
1answer
50 views

Kotlin: Type mismatch (RecyclerView.Adapter<RecyclerView.ViewHolder>)

I'm pretty new using Kotlin, I tried to port my project from java to kotlin. Basically, I have a helper class that try to init recyclerview layout, adapter and so on. In java: Adapter public class ...
0
votes
1answer
47 views

how to pass multiple arraylist of different types to a single recyclerview adapter

I am trying to use a single RecyclerView.Adapter to view multiple Arraylists of different object models in multiple fragments. But I don't know how to do it, is there a way to do it and if possible ...
-1
votes
1answer
34 views

RecycleView inside HorizontalScrollView not showing all items

I have a RecycleView inside a HorizontalScrollView. I don't see inside RecycleView all the items. I have looked and even if the list in the adapter has 7 items, onBindViewHolder is called only 4 times!...
0
votes
1answer
45 views

Kotlin: No adapter attached; skipping layout

I have a recycler view and a custom adapter, I have the adapter attached but I get "No adapter attached; skipping layout" timetableRecyclerView?.apply { layoutManager = LinearLayoutManager(...
0
votes
1answer
84 views

How to use RecyclerView into another RecyclerView's adapter in Android?

In my application i have one list and into this this i have another list!(I know this is bad idea for UI but i should develop this!) For show this lists i used RecyclerView and initialize other ...
0
votes
0answers
19 views

RecyclerView displaying no items and calling none of the custom Adapter's functions [duplicate]

I have a RecyclerView which is supposed to display custom items using a custom adapter. I had a similar logic in a different activity in my app and it's working fine, and now I tried to do something ...
-1
votes
0answers
30 views

Recycler View item's value changes while scroll in android

I am using RecyclerView in my app which contains a list of products. User is able to change quantity if each and every project. But the problem is this while I scroll the quantity of each product ...
0
votes
1answer
35 views

How to scale an image with the size of a bitmap in RecylerView adapter

I have taken a picture from camera and now I want to add it in a RecyclerView, but when I start to scale that bitmap with the size of the ImageView getHeight() and getWidth() always zero and gives me ...
0
votes
2answers
46 views

How can detect which fragment is active?

My project includes fragments inside of tabLayout. Fragments has recyclerView in the adapter that load data from web server. In this case, I want to use two different layouts for adapter. I get it how ...
1
vote
0answers
29 views

onCreateViewHolder not called in PagedListAdapter

I have PagedListAdapater: class TrackedActivityAdapter constructor(diffUtilCallback: DiffUtil.ItemCallback<TrackedActivity>) : PagedListAdapter<TrackedActivity, TrackedActivityAdapter....
-1
votes
0answers
16 views

fetch data from two different nodes and populate in single firebase recyclerview

I want to fetch data from two different nodes and then show the combined data in a single firebase recyclerview adapter This is my database. I intend to fetch the items inside Public and Private and ...
0
votes
0answers
21 views

Trying to loop through nested List in recyclerViewAdapter

I'm trying to loop through a Nested List in android recyclerviewAdapter. public class ParentObject{ String mTitle; List<ChildObject> mChildsList; } public ParentObject(String title, List&...
0
votes
2answers
32 views

mAdapter.notifyDataSetChanged() does not work in some cases

I'm trying to update my RecyclerView by using adapter.notifyDataSetChanged(). While it works when I use a button to update the list and gets reflected in the view but, it does not work when I call it ...
-2
votes
1answer
31 views

RecyclerView select multi item when user select single item

I create recycler view and inflate it many elements like text view and image view the problem is when user press on any one position to bookmark it the item selected good but I found that there ...
-1
votes
1answer
35 views

RecyclerView is left blank and doesn't bind any data

I am using a recyclerview(id recyclerView) inside a fragment(viewContractorsFragment), I have inflated the root view of the fragment layout and initialized the recycler view. Also the respective ...
0
votes
0answers
10 views

Recycler View insde Recycler View Pagination using hashmap

I have recyclerView in which each child item have its own recyclerView. I am passing recyclerView a hashmap. HashMap is like HashMap<String, List<Object>> hashmap = new HashMap<>()...
0
votes
1answer
34 views

Expandable listview recycling issue

Friends, I am using an Expandable listview to display various categories and its subitems. I am using checkbox for selecting the subitems, so that multiple subitems can be selected from various ...
0
votes
1answer
16 views

Android: Attempt to invoke virtual method on a null object reference in onBindViewHolder

My app is supposed to parse JSON data and display it in a recycler view. When I run the app, it crashes with the following error: I've re-checked my code multiple times to make sure I am calling the ...
0
votes
1answer
15 views

Custom GridLayoutManager

I am thinking of a way to implement a view using RecyclerView like this image where the header row is on the left side and the content under that header on the right. Any ideas or pointers on how to ...
1
vote
1answer
29 views

Problems with sending data to my RV adapter, how I can solve it?

I'm trying to make attaching files to some messages at my app. I have managed to do it, but my method is based on custom RV with adapter to which I send the list of folders and files. I decided to use ...
-3
votes
2answers
36 views

How To Create Android RecyclerView with one radio button in each item that all radio buttons can interact together?

when I check radio button I can't uncheck other radio buttons in other items of recycler view I can't reach other item view position on radio button click when I tried to uncheck other radio ...
-1
votes
0answers
21 views

RecyclerView Button adapter change Selected button backGround color and other not

In my RecyclerView button list -> On Clicking selected button trying to change background color(by setBackgroundResource). But when I click on other buttons previously selected buttons still remain ...
-1
votes
1answer
27 views

Need to set default image in RecyclerView if the image is not set

I am new to Android and tried to set default image in RecyclerView adapter if the image is not set. But default image is not setting. Where I am mistaken? Checking it like this: if(advertisement....
0
votes
1answer
35 views

How to fix some text symbols in JSON android

Below picture describes my problem - How to fix some text symbols in JSON android My Code @Override public void onBindViewHolder(@NonNull ToursViewHolder holder, int position) { tourData = ...
1
vote
0answers
19 views

How to show data only to followers or following users in Firebase Database in Android?

I am working on app similar to LinkedIn and here I have some users already added to Firebase Database. Also every user can post or upload some content as well. Now am looking for a technique or code ...
6
votes
0answers
127 views

Nested Expandable RecyclerView lags on Expand and Collapse with too many number of child items freezes

I have created expandable recycle view in my app looks like below It has parent Items Menu category and Category has child items as shown in image Following is part of my parent adapter code. ...
0
votes
0answers
37 views

Recyclerview grid layout item decoration to showing

I have a recyclerview which is using gridlayout as shown below. I want to set item decoration i such a way that 4 items appear per row and with borders and no space between the borders. recyclerView =...
-4
votes
1answer
30 views

How to create a List like Facebook comment section in andorid

I want to implement a chat application, I want to show chat messages with multiple view type like Media Files (Video, Audio, Photo) Documents (PDF, DOC, EXCEL) Likes... etc also, implement reply of ...
2
votes
1answer
47 views

Recyclerview adapter is loaded with square the amount of object in the database(e.g. 25 for 5, 16 for 4 etc)

I have a recyclerView the holds the user's notifications. A new notification has a colored background where an old one has a white background. My data base holds the information about every ...
0
votes
0answers
16 views

How to get get All checkboxes value in one list Type veriable

In the following code i want to store all checkboxes value in List<integar>ProcedureIDs = new ArrayList<>(); but it save only last checked checkbox id.i want to save multiple ids in it.....
0
votes
1answer
43 views

Having some issues during run time in recycler view

So I was trying to implement Recycler view in app using some documentations. First time it worked very well. But don't what I done or what happened my app started crashing on that view. 2019-04-25 ...
0
votes
1answer
53 views

Android RecyclerView how to animate items only once?

I have a RecyclerViewAdapter and I would need the items to get animated when they first appear on the screen (i.e. when scrolled down) but only once, for the first time they appear, after that ...