Questions tagged [realmrecyclerviewadapter]

17 questions
2
votes
2 answers

How to set different color for each items in RecyclerViews' GridLayoutManager

I've implemented the GridLayoutManager and it is working fine. I've used a CardView for the item layout. Screenshot of the GridLayoutManager: I just want to set a different color for the first five items in the list and repeat the same colors for…
1
vote
1 answer

How to create a unique RecyclerView for another RecyclerView in a separate activity

I have an application in which on the first activity I create an Item in the recyclerView (a section consisting of one or two words), and by clicking on it I go to another activity where the RecyclerView is also located in which I create ordinary…
N.E.K
  • 37
  • 4
0
votes
2 answers

RecyclerViewAdapter with ArrayList runtime error

I've been getting into android studio lately and I am having a problem with the RecyclerViewAdapter. I have tried using List which does work, but does not allow me to remove or add items in that list. Is there a way to solve this or should I use a…
0
votes
0 answers

Kotlin ConcurrentModificationException: when finding object from a list (Without removing any object or touching original list)

I have a MutableList of "DisplayableMessage" unmanaged objects, and I want to find an object from this MutableList by property "messageId". The code is in onBindViewHolder of a RecyclerViewAdapter: val displayableMessage = displayableMessages?.find…
0
votes
1 answer

Recyclerview items didn't show data in cardview when condition applied to it in adapter

I have made an recyclerview with firebase realtime database and applied some condition in adapter class,applied condition works but recyclerview item didn't show data in card view it show only cardview but in searchview it shows data correctly in…
0
votes
1 answer

Remove empty spaces from recyclerview

I have add an some condition in viewholder of recycleradapter of recyclerview to hide some items but it shows empty spaces of removed items in recyclerview which I hide how can I solve these problem to remove empty spaces.is there any another way…
0
votes
0 answers

Null Error Exception on badge cart counter

I'm trying to complete the functionality of shopping badge card. But, I face a problem When my shopping cart has many items, my app and the shopping badge works perfectly. Also, when I have 1 item in my shopping cart my app and the shopping badge…
0
votes
1 answer

How to get previous position in RecyclerView's Adapter itself?

I'm having a RecyclerView, inside its layout there's a view "tvDateGrouped", I want it to be displayed only when the current position date and previous position date are not same. Below is the code I tried, but it isn't working This Code is inside…
0
votes
2 answers

android recyclerview viewholder Mediaplayer handling taps problem

I am playing audio files(MP3) by clicking on Item view, and the previous file stop automatically but the problem is that after tapping 3rd item of recyclerview the 1st one does not play sound on its click and the same problem happened on some other…
0
votes
0 answers

Listener for Realm Query changes

I have the following code in my activity where I am trying to fetch data from realm and then display it in a list. I have used a listener which works perfectly. private RealmResults mData = repo.fetchData(); // internally the call is handled…
0
votes
1 answer

How can I create a different realm instance at the same time for ui thread?

I have multiple fragments which are inside activities. I have called myAdapter in fragment onActivityCreate method. I have read too many articles for realm performance improvements, adapter management, realm usage. I open the realm in resume and…
propoLis
  • 1,229
  • 1
  • 14
  • 48
0
votes
2 answers

Fragment cannot be converted to context?

I am developing an Android app with Recyclerview + Cardview with GridLayout in this I got the error as in the title. Reminders.java (Fragment Class) public class Reminders extends Fragment { private OnFragmentInteractionListener…
0
votes
0 answers

How to know when RealmResults changed in RealmRecyclerViewAdapter?

Should we use in activity/fragment RealmResult query listener or we can do this using adapter. My case is to update internal counters when item was added to realm.
demogorgorn
  • 306
  • 1
  • 4
  • 12
0
votes
0 answers

Expected live search in RealmRecyclerViewAdapter does not work

In this solution (How to filter the data in realm adapter?) query handles only when i press enter. Proviso: i use RealmRecyclerViewAdapter instead of RealmBaseAdapter. How to implement live search?
Dereva
  • 23
  • 1
  • 6
0
votes
0 answers

Updating a RealmRecyclerViewAdapter without updating DB

I am using realm DB for the first time. I am listing File info in recyclerview from Realm results using RealmRecyclerViewAdapter . I need to update each item with its download progress, without writing the progress to DB. I am using android…
Nabeel K
  • 5,938
  • 11
  • 38
  • 68
1
2