Timeline for answer to How to use ArrayAdapter<myClass> by cesards
Current License: CC BY-SA 3.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 1, 2019 at 15:26 | comment | added | Goddard | This should be provided by default. | |
| Oct 15, 2015 at 8:24 | comment | added | Ev0oD | Yeah, I made it work. I realized you provide a solution for something a little different then what I wanted, but I was able to use your code as a starting point and make amendments in a way that it did for me what I wanted. Thanks for this piece of code. | |
| Oct 15, 2015 at 8:22 | comment | added | cesards | This should be valid as generic adapter. Could you solve the problem? | |
| Oct 13, 2015 at 20:22 | comment | added | Ev0oD | In the end I ended up changing a lot - layout of the dropdown menu was different than the layout of shown item, the drawText was only called on the spinner header, not on its items on clicked.. | |
| Oct 13, 2015 at 19:37 | comment | added | Ev0oD | I really liked your code a LOT, but it took me a while to figure out, why it was crashing with android.content.res.Resources$NotFoundException: Resource ID #0x0. You have in your generic adapter call on super(..,0,..), where 0 is actually a layout resource, which does not exist, so it must be changed to something else.. Also, your gist is 404 | |
| Feb 5, 2014 at 12:42 | history | answered | cesards | CC BY-SA 3.0 |