简体   繁体   English

另一个可滚动视图android中的可滚动视图

[英]Scrollable view inside another scrollable view, android

Hi all and thanks for reading, 大家好,感谢您的阅读,

I've been trying to put a scrollable view (TableLayout inside a ScrollView) inside another scrollable view (LinearLayout inside a ScrollView). 我一直在尝试将可滚动视图(ScrollView内的TableLayout)放在另一个可滚动视图(ScrollView内的LinearLayout)内。

This didn't work very well because the table was almost impossible to scroll. 这不是很好,因为表格几乎无法滚动。 So I tried with a ListView instead but couldn't get it to work, but i'm thinking that I'm doing something wrong. 所以我尝试使用ListView代替,但无法使其正常工作,但是我认为我做错了什么。

What I need to do is put the scrollable view (which shows a list of orders) in an activity with a main scrollable view including other views. 我需要做的是将可滚动视图(显示订单列表)放在活动中,并带有一个包含其他视图的主可滚动视图。

So to summarize... 总结一下...

Activity <- Main scrollable view <- Scrollable view as "order list" with fixed headers and other views 活动<-主可滚动视图<-可滚动视图作为带有固定标题和其他视图的“订单列表”

Can anyone point me to some good examples or give me one? 谁能给我指出一些很好的例子或举一个例子? And is it possible to put other views as main view in a ListActivity? 并且可以将其他视图作为主视图放置在ListActivity中吗?

Big thanks! 太谢谢了!

What I need to do is put the scrollable view (which shows a list of orders) in an activity with a main scrollable view including other views. 我需要做的是将可滚动视图(显示订单列表)放在活动中,并带有一个包含其他视图的主可滚动视图。

Putting scrollable things in other scrollable things infrequently works. 很少将可滚动的内容放入其他可滚动的内容中。 Please come up with a UI design that does not require putting scrollable things in other scrollable things. 请提出一个UI设计,该设计不需要在其他可滚动内容中放置可滚动内容。

But there must be a way to put some kind of a scollable view inside a ScrollView 但是必须有一种方法可以将某种可伸缩的视图放入ScrollView中

You are mistaken. 你误会了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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