-
Notifications
You must be signed in to change notification settings - Fork 811
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
get View of dialog List item #29
Comments
|
How can I get the position of that dialog instance, as dialog adapter does not have that method? kindly help! |
DialogsListAdapter doesn't seem to provide a getter for the list of items you need, so you either keep track of your actions (by having a secondary list of DIALOG synchronized with the one held inside the DialogsListAdapter) or fork this repo and add a Check the code of DialogsListAdapter and read the RecyclerView.adapter and LinearLayoutManager official documentation. All you need is in there, you just need to think how to use it. |
Thanks, it worked! |
I already created a PR to allow the users to retrieve the current position of a certain dialog. As soon as it gets merged (if it is) you can get back to relay on the official implementation of this library. |
Hi @mubtadasyed ! Best regards, Alexander. |
Hey @troy379, the main reason for creating the PR was because providing listeners can be very limiting for the developer. For example, how does the developer implement a swipe to delete functionality based on those listeners? IMHO, having the possibility to retrieve the view itself (through RecyclerView and RecyclerView.Adapter methods) is much more flexible than providing a listener itself. |
#32 merged. Thanks @mradzinski |
Hi, I want to show popup menu when a user longClick on any dialog list item, to show popup menu I need the view of that list item, how can I get that? kindly help.
The text was updated successfully, but these errors were encountered: