Add fixed content after ListView


#1

Hi,

I’m struggling to add a StackLayout of fixed height under a ListView.
I know there is the possibility to change the ListView to a RadListView which has a footerItemTemplate, I’m looking for a way to acheive it with ListView and some Layouts, so it displays correctly on each devices.

Basically what I want to do is :

<GridLayout rows="2">
    <ListView row="0">
         [...] the height should vary depending on devices or landscape/portrait mode 
    </Listview>
    <StackLayout row="1" height="100">
        [...] fixed height
    </StackLayout>
</GridLayout>

#2

Please go through the GridLayout docs or may be https://www.nslayouts.com/ to understand how it works.

Should be,

<GridLayout rows="*,100">

and you can remove height from the stack layout.