
So I want to create this UI below. It is for a College class and I don’t have much time left. I have everything working but I can’t wrap my head around making the list of events. I have a java class eventList that populates a List with data from a database. Any suggestions? Will I have to just dynamically add 2 buttons (up/down) and enough text views to supply the data? How will I keep it formatted if I do something like that? Should I put it all in a scrollview on the mainPage?
So I want to create this UI below. It is for a College class
Share
Make it a
ListViewwith a custom adapter. Each row can be be designed as aRelativeLayout, so you can put your event name, location and such in there.The adapter will look something like this: (code sanitized)
It’s probably a bit more complex example of what you need, but it shows how you can use different layouts for a row based on the contents of the row, and it has clickable ImageViews in it, just like you’d need for your voting buttons.