Most voted "android-recyclerview" questions
Recyclerview is a more advanced and flexible version of Listview. It was introduced with the Android L Developer Preview, but is also available as part of the Support Library.
Learn more…119 questions
Sort by count of
-
13
votes2
answers3271
viewsWhat is the difference between Listview and Recyclerview?
What difference between ListView and RecyclerView on Android? From which Api to RecyclerView is available? It is valid to use the RecyclerView and not the ListView?…
-
11
votes2
answers8134
viewsWhat is the right approach to get the click/position in Recyclerview?
What is the right approach to click on Recyclerview? 1 - Inside onBindViewHolder use position, even if within setOnClickListener methods, which turns the position variable into FINAL; 2 - Inside…
-
9
votes1
answer302
viewsWhat is the Recyclerview?
I saw the class at documentation of Andorid, but I did not understand its functionality, where it should be used and with what purpose. The name referred me to something that doesn’t seem to be what…
-
8
votes1
answer1772
viewsWhat is Viewholder Pattern?
I’m implementing a RecyclerView on Android and I noticed that it is necessary to create a class called ViewHolder. This class seems to be a design standard called Viewholder Pattern, and my doubts…
-
6
votes2
answers1240
viewsWhat is the purpose of the Recyclerview.Adapter class when using Recyclerview?
To use the Recylerview Android we need to create a class CustomAdapter extending from the abstract class RecyclerView.Adapter then implement three methods that are: onCreateViewHolder…
-
4
votes3
answers1444
viewsList of questions, each question with a list of answers
I’m implementing a question and answer app. For my listing I am using a Recyclerview in which I load several Cardviews (coming from loading a list). Each Cardview shows a question. Below the text of…
android android-layout android-adapter android-recyclerviewasked 8 years, 11 months ago SpammingOff 387 -
4
votes1
answer1577
viewsHow to update Recyclerview simply and efficiently?
The most efficient way I know to update a Recyclerview is to resort to Adapter methods notifyItemMoved notifyItemRangeChanged notifyItemRangeInserted notifyItemRangeRemoved They, as opposed to…
-
3
votes0
answers71
viewsEvent triggering multiple times when using Recyclerview
I’m having a problem working with RecyclerView. Man Adapter has the following code: public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private…
-
3
votes2
answers1280
viewsRecyclerview Error: No layout manager Attached
I couldn’t find the mistake. my Activity: private AdapterPacientes adapterPacientes; private static MVP.Presenter presenter; @Override protected void onCreate(Bundle savedInstanceState) {…
-
2
votes1
answer772
viewsItems repeating in a Recyclerview
I have a fragment v4 which is managed by a SectionsPagerAdapter. In the fragment have a RecyclerView who has a Adapter personalized that receives a ArrayList which contains exactly 96 objects,…
-
2
votes1
answer105
viewsBreak line when components inside Recyclerview occupy full screen width
Is it possible to make that when the width of the components of a list occupies the total width of the screen, the next component drops a line? I don’t want to use scroll if it’s not possible to do…
-
2
votes2
answers53
viewsProblem pulling server list on Android
Whoa, guys, I’m pulling a list from the server and populating a RecyclerView with that list. But when the list is empty, I want a message like: "There are no entries for that product yet". But not a…
-
2
votes1
answer137
viewsButtons added underneath Reciclerview do not appear
I’m using a Linearlayout with a Reciclerview and 3 buttons underneath it. I’m doing this, but Reciclerview takes up the whole screen and the buttons don’t appear. <?xml version="1.0"…
-
2
votes1
answer120
viewsRecyclerview scroll position with Firebase
I am listing data from Firebase in a RecyclerView, but when adding or removing data, the data is repeated in the list. I used the clear(); or lista.removeAll(lista); to clear before filling only the…
-
2
votes1
answer66
viewsResponsiveness - Android studio
I’m having a layout incompatibility with other versions of android. on my android 8.0.0 the layout is like this On another mobile with android 4.4.2 I’m using recyclerview,grid,cardview dependencies…
-
1
votes1
answer185
viewsRecylerview Horizontal as Whatsapp
I would like the help of you how to make this layout of the "Media" part in a particular Whatsapp Contact. Would this be CardView whole called "Media". It would be almost exactly the same way, I…
-
1
votes2
answers96
viewsNullpointerexception when deleting register
Good morning. I have a problem I can’t solve. I am developing my first Android app and bumped into this error, Sqlite can not work with Context. I did some research and I couldn’t find a solution. I…
android sqlite nullpointerexception android-context android-recyclerviewasked 8 years, 4 months ago Charles Presidente 91 -
1
votes0
answers243
viewsLow performance in Recyclerview with Constraintlayout, inside a Viewpager on Android
I have a Recyclerview with about 20 items. It takes a long time to render and blocks the UI. I’m using the Constraintlayout to position items on each line. They’re not as complex as you can see in…
-
1
votes0
answers70
viewsaddView(View, Layoutparams) is not supported in Adapterview when accessing "Home" activity
I am developing a shopping cart for Android using Firebase and I am having problems using Recycleview since the activity is crashing after user login, producing the following error. Log 05-24…
-
1
votes0
answers178
viewsCoordinatorlayout with Recyclerview in another
I have a Fragment with a CoordinatorLayout and a FrameLayout to popular with other Fragments. One of these Fragments contains a RecyclerView. I’d like to know how to do the RecyclerView work with…
-
1
votes1
answer58
viewsStatic objects in Activities with View Pagers
I have an Activity with a view pager, and this one controls three fragments, F1, F2, F3. The F1 fragment shows user-added items, the F2 fragment loads all items from an external server, showing them…
android android-fragment static android-context android-recyclerviewasked 8 years, 2 months ago Guilherme Ramos 343 -
1
votes1
answer608
viewsCapture selected Recyclerview item to another screen
I have my search screen. When typing, it brings the search result. The result is shown in a recyclerview. My Recyclerview was modeled with some textviews and an image. I wanted when touching the…
android android-fragment android-recyclerviewasked 5 years, 2 months ago Luciana Freire Efelipe Correia 27 -
1
votes1
answer661
viewsUpdate Recyclerview from another Activity
I have the following class public class FavoriteListAdapter extends RecyclerView.Adapter { @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View view =…
-
1
votes1
answer88
viewsClose Dialog opened inside the Recyclerview Adapter
I made a headline for my RecyclerView which, when clicked, opens a dialog. Some time later, started to give this error: Activity com.mypkg.myP has leaked window…
-
1
votes2
answers1670
viewsHow to update recyclerView after updating data via dialog
My app works more or less like this. Inside a fragment I have a Recyclerview composed of cardviews, fed by a database. On each card, there is an edit button (imageView) that opens a dialog…
-
1
votes2
answers604
viewsRecyclerview, problem inserting an item
Talk guys, I’m new on android, I have a problem here, I’m trying to insert items in a Recyclerview, when I use the direct method on the button it is inserting statically good: public void…
-
1
votes1
answer466
viewsHow to search within a Recycleview?
I have a Recycleview that receives data from Firebase, each data creates a box in the layout with the information contained within each key there in Firebase. I want you to search for a certain data…
-
1
votes1
answer246
viewsDisable checkbox in Recyclerview
Each item of a RecyclerView contains a Checkbox, and when selecting a checkbox would like to disable all other checkboxes. I created a setOnCheckedChangeListener within the onBindViewHolder and I…
-
1
votes0
answers344
viewsMathematical operation in Recyclerview
I want to know how to add up certain values of a Recyclerview.. in case it will be the model.getQntd(), I need to add all your respective results. UPDATING I managed to count the problem now is that…
-
1
votes1
answer95
viewsproblems with Float Action Buttom (speedDial) - Android
Hello! I found a lib of a float action with speed dial and I’m trying to implement it in my Android project, but I’m not able to interact with the Float Button... follows the code of the fragment…
java android android-fragment android-recyclerview floatingactionbuttonasked 7 years ago Mikhael Araujo 333 -
1
votes1
answer26
viewshow to set the position of the item in the horizontal recycleview list?
Good morning, I have a correct horizontal recycleview, but I want to do this effect of example , the items starts almost in the middle of recycleview and after scrolling to the side it fills all the…
-
1
votes2
answers385
viewsChange background image of a Recycler View Adapter after click
The thing is, I created a Adapter amending a RecyclerView in an Activity I call through this function (within Activity): private void gerarDatasView(CalendarJur calendario){ LinearLayoutManager…
-
1
votes1
answer308
viewsRecyclerview with Show More button
I have a recyclerview that pulls data from firebase, but it takes all the data at once, and this causes the application to lock, as I do for it to show only the first 10 and as the user goes down…
-
1
votes1
answer134
viewsHow to take a JSON String and display in recyclerview without repeating?
I have a json with a list of users, photos posted by this user. The idea is to have a recyclerview with the name of the users, and when clicked, it will display the photos of that user. The…
-
1
votes1
answer35
viewsCorrect use of the onChildRemoved method in Childeventlistener
Good evening! I’m making a chat app and I list the conversations in a recyclerview. I chose to use the addChildEventListener method, because (I think) it will consume less resources since the data…
-
1
votes0
answers408
viewsGrab the firebase download link and save a database string to be displayed in cardview via Picasso or similar
Good evening, you guys. I’m doing a job that I need to get the download URL of the image I sent to Torage, save this URL in the database to be able to display this image in cardview using the…
android android-studio firebase android-recyclerview firebase-databaseasked 5 years, 5 months ago Lucas Gabriel 11 -
0
votes1
answer93
viewsHow do I make a recyclerview of mine appear on a tab instead of fixed on main?
I created a recyclerview on main which is ok, tbm I created 2 tabs which are ok. But when I change between tabs the Recycler view is fixed on the screen instead of just appearing in tab1. A friend…
-
0
votes1
answer220
viewsRecyclerview makes imageview disappear
Simple. Recycler View makes imageView disappear after I scroll back to the top of the list. For example, in the case, the first image simply disappears. It was like that:…
-
0
votes0
answers259
viewsProblem with animation loading more items in recyclerview
I am applying an animation in displaying items in my recyclerview, however when I load more items, the last item in my recyclerview is animated again in a strange way. Here are the snippets of my…
android animation android-adapter android-recyclerviewasked 7 years, 11 months ago ThiagoFerreiraS 1 -
0
votes1
answer43
viewsGoogleapiclient inside recycleViewAdapter?
The app has a fragment with a recyclerview and a FAB. By clicking on FAB, opens a dialog where the user informs addresses, among other information. Address input fields are of the…
-
0
votes0
answers38
viewsScrollview with a static view in the middle
I have this layout in which I need to implement a Scrollview but I can’t adjust in a correct way, I need Scrollview to contemplate the blue and yellow part, so the user can see the rest of the items…
-
0
votes0
answers132
viewsAndroid recyclerView - create fields dynamically
How do I create fields dynamically in a RecyClerView? I’m trying to insert a RadioButton I can’t do it manually. All the examples I found, shows that you have to first create an XML layout in order…
-
0
votes2
answers488
viewsDelay in loading Recyclerview
It is normal to take 3 seconds to load a recyclerview with data of 16 thousand records in sqlite? Is there any way to optimize the load? Code here…
-
0
votes1
answer231
viewsHow to create a Cardview like Google Play
Good morning, I’m looking to create a layout like Google Play, but I’m not sure how to design it. Could help me? https://i.stack.Imgur.com/Xw2wt.jpg Link to the XML code…
-
0
votes1
answer109
viewsHow to put two Recyclerview’s inside an Activity?
I would like to know how to use 2 RecyclerView's within a single Activity, so that one is next to the other and I can carry data between them?
-
0
votes3
answers129
viewsHow to make lists and cards equal to Trello
I need to make those lists with equal cards and used by Trello, with scrolling to the sides. What is used to do that?
android android-fragment android-recyclerview trelloasked 7 years, 2 months ago Lucas Brugnera Martinelli 11 -
0
votes1
answer190
viewsapp ordering development, android firebase
good evening guys wanted to ask a question, I’m developing an app, and use firebase but I’m kind of layman still in programming, in order wanted to know if there is any way to sort the data that…
android database firebase classification android-recyclerviewasked 7 years, 1 month ago Eder Rodrigo Coffani 25 -
0
votes0
answers374
viewsChange item color - Recyclerview and Firebase
I need to change the color of a Linearlayout, as a query to Firebase. Bank structure: USUARIOS - ID_USUARIO ---AGENDAMENTOS -----nome: João -----lastview_usuario: "1506816888384"…
-
0
votes1
answer203
viewsProduction Application, how to recover data from firebase in recyclerview?
Good morning guys I’m developing an app and I’m on the employee listing and production("this listing in a single line in recyclerview referring to the would work")but I’m in trouble because I don’t…
-
0
votes1
answer197
viewsHow to make columns responsive with Gridlayoutmanager?
In the precise case that when you are in Portrait display a number of columns that complete the width of the screen and when in Landscape the items in recyclerview are presented in a number of…