Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

xamarin.forms - How to split the screen into 2 rows in which 1st row takes no more than 50% (but can take less)

How can I design the ContentPage in Xamarin.Forms so that it's split in 2 sections: the upper one is a ListView that can have 1, 2 or 50 items to display, and the lower one, let it be a BoxView that should FillAndExpand to whatever available area is.

So, if the ListView has 1 or 2 items to display, it will take maybe up to 15% of the screen, whereas BoxView should have 85% available. If, on the other hand the ListView has 50 items to display, it should take no more than 50% of the screen and if necessary enable scrolling. Bottom line, BoxView should never be smaller than 50%.

Is that doable?

question from:https://stackoverflow.com/questions/65873344/how-to-split-the-screen-into-2-rows-in-which-1st-row-takes-no-more-than-50-but

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...