简体   繁体   中英

How to set the contents of a vertical scrollview depending on what button is chosen from a horizontal scroll above?

I was just wondering if any of you guys could give me a heads up as to what this involves?

I have used ScrollViews, I know they need a LinearLayout to scroll through and that isn't the problem.

It is that there is a dynamic horizontal ScrollView containing several buttons with buttons can be added/removed.

I also have a vertical scrollview.

The GOAL is to set the contents of the vertical ScrollView depending on which button is pressed in the above horizontal ScrolLView.

Any direction/insight would be appreciated.

Cheers

In ur Horizontal scroll view U have to set tag for individual views. Then in on click event of a view u can populate the vertical scroll by required data. I thinks for ur vertical scroll u can use the listview. It will be easy to handle. Also if ur horizontal things are in more numbers then its better to use the ListView for that even..

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