开发者

Android: ListView problem

Hi I have a problem with ListView scrolling. My activity layout:

<ScrollView>
  <ReleativeLayout>
      <ListView>
      <... other controls>

When this list view has a lot of elements, so that they do not fit on the screen, 开发者_开发百科I cannot scroll. The interesting part is that the scroll works in landscape orientation, but not in portrait.

Does any one has a suggestion on how to tweak my layout in order to allow scrolling?

Thanks


Do NOT place a listview inside a scrollview, google says it doesnt work, and every time I've tried it brings problems.

Think of this, when you swipe your finger over a the listview, what should scroll, the listview or the scrollview?

You are going to have to rethink that portion of the UI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜