-
Notifications
You must be signed in to change notification settings - Fork 72
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
Support for more than Strings #31
Comments
Yes it's possible. For that i have to update my library and publish it.
I will update you once its done.
Thanks.
…On Fri, 19 Jul, 2019, 6:13 PM cfoket, ***@***.***> wrote:
Would it be possible to adapt the SpinnerDialog to support a list of
Objects, rather than Strings? More specifically, I would like to see the
type of the item parameter in public void onClick(String item, int
position) be changed to Object.
I think PR #24 <#24>
would be a good starting point. The first argument of
onSpinerItemClick.onClick(...) could then just be
listView.getItemAtPosition(i).
The reason I am asking is because currently I have to resort to using two
lists; one for the items I actually want to display, and a second one that
contains their 'labels' (i.e. Strings), which I use when creating the
spinner dialog. Then, I use the position I receive from the onClick(String
item,int position) callback to determine which object (from the first
list) was actually selected. However, this does not seem to work when the
results of the spinner dialog are filtered. In that case I get the position
in the filtered list, rather than the position in the unfiltered list,
which is what I need. I think it would be much easier if the callback just
returned the object that was selected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31?email_source=notifications&email_token=AELU5EF5CF7LACZ7MEWKZD3QAGZGJA5CNFSM4IFFS4JKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAIJIKQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AELU5EGVMQDXGPU4YUY6Z4TQAGZGJANCNFSM4IFFS4JA>
.
|
Any updates on this yet? Thank you. |
Any update on the library yet |
Updates please? |
Currently it's only supports string
…On Thu, 19 Mar, 2020, 11:17 AM vamfixed, ***@***.***> wrote:
Updates please?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AELU5EHW4WI4QWZSAKCWVSLRIGWYLANCNFSM4IFFS4JA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would it be possible to adapt the SpinnerDialog to support a list of Objects, rather than Strings? More specifically, I would like to see the type of the
item
parameter inpublic void onClick(String item, int position)
be changed toObject
.I think PR #24 would be a good starting point. The first argument of
onSpinerItemClick.onClick(...)
could then just belistView.getItemAtPosition(i)
.The reason I am asking is because currently I have to resort to using two lists; one for the items I actually want to display, and a second one that contains their 'labels' (i.e. Strings), which I use when creating the spinner dialog. Then, I use the position I receive from the
onClick(String item,int position)
callback to determine which object (from the first list) was actually selected. However, this does not seem to work when the results of the spinner dialog are filtered. In that case I get the position in the filtered list, rather than the position in the unfiltered list, which is what I need. I think it would be much easier if the callback just returned the object that was selected.The text was updated successfully, but these errors were encountered: