Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to use a ListView in a layout without messing up page scrolling

$
0
0

What I'm trying to achieve:

    --- Stack Layout / Relative Layout--- 
    - some widget (e.g. Label)          -
    - some widget (e.g. Label)          -
    - ListView                          -
    -------------------------------------

However, I also want the following scroll behaviour:
Top widgets disappear first then ListView starts scrolling. Basically, I want a "natural" scrolling behaviour.

One way I can achieve this is by making the whole page a ListView and putting the widgets as a Header for the ListView

But that has one problem (on Android)... which I think is a bug:

If you have a long Label (what else to hold text?), it will not display all of it. It will actually make it scrollable and display only part of it at a time. What makes this even worse is that you cannot scroll the Label "easily", you have to try multiple times to make it scroll the label instead of the page, it's obviously bugged. That happens even if the page itself has hit the end (i.e. can't scroll any more), the Label still can't be scrolled easily.

I will have a sample project showing this later and file a bug report. But for now, is there another way or a workaround to achieve what I want?

Cheers,
Space Monkey


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>