ListView with Buttons as items? #303
Unanswered
JetpackJackson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to port an app I wrote for Android to Zig as an experiment, and the main "view"/screen is basically just a big scrollable list of buttons with a pic of the bird and the name, and when the button is clicked it opens the webpage about the bird. How can I replicate that using vaxis? It seems to me from looking at the list_view and clicker examples that I can only pick one "type" of thing to put into the model? I could be misunderstanding. Alternatively, is a ListView the wrong structure to use? Should I somehow just make a bunch of buttons? Thanks in advance.
Edit: in case this affects the answer, I intend to have the images download on the fly since I can't bundle them into my program, and I would like to be able to lazy load the buttons/items if possible, since that was how I did it on Android to avoid loading all 10984 birds at once.
Beta Was this translation helpful? Give feedback.
All reactions