daniel-luberda / DLToolkit.Forms.Controls

Xamarin.Forms Custom Controls
Apache License 2.0
393 stars 182 forks source link

Creating sections with different layouts but no grouping #295

Open innomotionmedia opened 3 years ago

innomotionmedia commented 3 years ago

hello,

i have a flowlistview with 2 columns. So every row has 2 columns.

But i want to add a different layout that goes over the entire screen (one row one column) every x rows.

This is to display ads from admob every, say 50 items. So I dont want to group anything, just every now and then inject a different layout with not two but one column.

This is my list:

            <flv:FlowListView
                Grid.Row="1"
                BackgroundColor="Transparent"
                Scrolled="listview_allAds_Scrolled"
                VerticalOptions="Fill"
                FlowIsLoadingInfinite="False"
                FlowItemAppearing="listview_allAds_FlowItemAppearing"                 
                FlowIsLoadingInfiniteEnabled="False"
                Refreshing="listview_allAds_Refreshing"
                FlowColumnCount="2"
                IsPullToRefreshEnabled="True"
                Margin="5,0,5,0"
                VerticalScrollBarVisibility="Never"
                FlowItemTapped="listview_allAds_FlowItemTapped"
                HasUnevenRows="True"
                x:Name="listview_allAds" >

I looked through the sample and couldnt find anything that didnt go with grouping.

Is this even possible here? How would I achieve that?

Thank you :)