简体   繁体   English

多个可扩展列表视图不可滚动

[英]Multiple expandable list views not scrollable

I have a Problem by my App. 我的应用程序有问题。 In a loop I dynamically create an ExpandableListView. 在一个循环中,我动态创建了ExpandableListView。 Now I want to make my screen scrollable. 现在,我要使屏幕可滚动。 But when i put a Scrollview over my Layout, the screen will not able to scroll and the expandable list views are very tiny. 但是,当我在布局上放置Scrollview时,屏幕将无法滚动,并且可扩展列表视图很小。 How can I fix this? 我怎样才能解决这个问题?


No i have to scroll the Screen with the ExpandableListViews. 不,我必须使用ExpandableListViews滚动屏幕。

When i have more Customers or i turn the Phone, the Screen will be to small and so i have to Scroll, but it will not works. 当我有更多客户或我打开电话时,屏幕将变小,因此我必须滚动,但无法使用。 Thanks Mark 谢谢马克

My screen looks like: 我的屏幕看起来像:

+-------------------------------------+
|                                     |
|  Customer 1:                        |
|  +-------------------------------+  |
|  |                               +  |
|  |    ExpandableListView 1       +  |
|  |                               +  |
|  +-------------------------------+  |
|                                     |
|                                     |
|  Customer 2:                        |
|  +-------------------------------+  |
|  |                               +  |
|  |    ExpandableListView 2       +  |
|  |                               +  |
|  +-------------------------------+  |
|                                     |
|                                     |
|  Customer 3:                        |
|  +-------------------------------+  |
|  |                               +  |
|  |    ExpandableListView 3       +  |
|  |                               +  |
|  +-------------------------------+  |
|                                     |
|                                     |
|                                     |
+-------------------------------------+

I can't say without seeing the code, but it sounds like your list item view are small enough to not need to bee scrolled through. 我不能不看代码而不敢说,但是听起来您的列表项视图足够小,不需要滚动蜜蜂。 FWIW you don't need a scroll view for a ListView or ExpandableListView as they both scroll on their own. FWIW, ListViewExpandableListView不需要滚动视图,因为它们都是自己滚动的。

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

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