Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced RecyclerView sample #27

Open
cmelchior opened this issue May 13, 2016 · 5 comments
Open

Advanced RecyclerView sample #27

cmelchior opened this issue May 13, 2016 · 5 comments
Labels
First-Good-Issue First Good Issue - Relatively easy issue for new contributers T-Doc

Comments

@cmelchior
Copy link
Contributor

The current RecyclerView sample is just a glorified ListView. We should create a more advanced one with the potentially following things:

@cmelchior cmelchior added First-Good-Issue First Good Issue - Relatively easy issue for new contributers S:P2 Backlog T-Doc labels May 13, 2016
@coletz
Copy link

coletz commented Aug 26, 2016

It could be useful to put an example of a filter for recyclerview imho. I'm having problem using realm conditions foto dynamically filter a list.
For example, I have a realm recyclerview and an edittext, how can I filter the list according to the edittext? At the moment I need to change swap adapter or avoid using realm filter and remove/add element as I've ever done with common recyclerview. Is there a better way?

@Shajeel-Afzal
Copy link

I am facing the same problem as @coletz is facing. I also want example with filter, currently it is very hard or impossible to do.

@coletz
Copy link

coletz commented Sep 5, 2016

After some problem I've found out how to filter in a "proper" way (at least it's reliable and pretty fast): when you need to update the filter (eg edittext change or on click) you simply use recyclerView.updateData(realm.where(MyClass.class).equalTo("myField", editText.getText().toString()))
I can write on the edittext and after each character the text is updated realtime

Dunno if that's the "official" way, but it's working

@romeroz
Copy link

romeroz commented Oct 20, 2016

I would love a good animations and swipe-to-delete example.

@sismotur
Copy link

sismotur commented Mar 7, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-Good-Issue First Good Issue - Relatively easy issue for new contributers T-Doc
Projects
None yet
Development

No branches or pull requests

5 participants