Questions tagged as 'android-recyclerview'

1
answer

RecyclerView scroll position with Firebase

I'm listing Firebase data in a RecyclerView , but when adding data or removing, the data repeats in the list. I used clear(); or lista.removeAll(lista); to clear before filling only that the list is updated and returns the s...
asked by 11.12.2017 / 22:27
1
answer

Buttons added under 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 entire screen and the buttons do not appear. <?xmlversion="1.0" encoding="utf-8"?> <LinearLayout xmlns:androi...
asked by 24.01.2017 / 22:37
2
answers

Problem pulling server list on Android

Oops, I am pulling a list from the server and populating a RecyclerView with this list. But when the list is empty, I want a message like: "There are no items registered for this product yet." But not a Toast , but a fixed message i...
asked by 02.09.2016 / 01:10
1
answer

Responsiveness - Android studio

I'm having a layout mismatch with other versions of android. In my android 8.0.0 the layout stays that way Onanothermobilewithandroid4.4.2 I'musingrecyclerview,grid,cardviewdependencies{implementationfileTree(include:['*.jar'],dir:'libs')...
asked by 17.05.2018 / 16:19
2
answers

How to update the recyclerView after updating data via dialog

My application works something like this. Within 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 (alertDialog) with a form. editing. Everythin...
asked by 24.01.2017 / 03:24
1
answer

Close Open Dialog within the RecyclerView Adapter

I made a header for my RecyclerView which, when clicked, opens a Dialog. Some time later, it started to give this error: Activity com.mypkg.myP has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44c46ff0 that was o...
asked by 06.12.2016 / 04:51
1
answer

Refresh 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 = LayoutInflater.from(parent...
asked by 26.10.2016 / 13:48
1
answer

Horizontal RecylerView as WhatsApp

I would like your help on how to do this layout of the "Media" part of a given WhatsApp Contact. It would be this CardView integer called "Media". It would be almost exactly the same way, I have no doubt about the adapters, only...
asked by 13.11.2015 / 18:43
1
answer

Disable checkbox in RecyclerView

Each item of a RecyclerView contains a Checkbox , and when selecting a checkbox you would like to disable all other checkboxes. I created setOnCheckedChangeListener inside onBindViewHolder and I believe I should dis...
asked by 29.08.2017 / 17:06
2
answers

NullPointerException while deleting log

Good morning. I have a problem that I can not solve. I'm developing my first Android app and I'm going to stumble over this error, SQLite can not work with Context. I did some research and found no solution. I hope some charitable soul helps me...
asked by 12.07.2016 / 15:35