简体   繁体   中英

Android - showing content on button click

I am creating an android application for an event and one of the needs is to show a table of events. The problem is I want to be able to show event content on a button click. The events table I was given is pretty complicated because during the speaker panels there are 5 events going on at the same time. I thought a good way to show this could be similar to in HTML/javascript how you can have a tile view and when you click it you show a hidden Div.

Is there anyway to get this kind of effect in android? I want there to be a label of some sort that spans the parent and I can click it and content will populate underneath it. Any ideas?

您可以通过动态添加项目通过ListViewTableLayoutGridView进行操作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM