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

Child rendering behaviour mismatched after upgrading Xamarin.Forms (>4.0) in FlexLayout

$
0
0

Hi All,

I have a simple sample with the layout structure be like, FlexLayout has more number of Grid (MainGrid ) which has two children

  1. Grid with Label as a child
  2. Custom View (TouchView) which is inherited from View.

`

        <FlexLayout.BindableLayout.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <Grid BackgroundColor="Aqua">
                        <Label TextColor="Black" Text="{Binding}"/>
                    </Grid>
                    <local:TouchView/>
                </Grid>
            </DataTemplate>
        </FlexLayout.BindableLayout.ItemTemplate>

    </FlexLayout>

`
Here TouchView represents like

`
public class TouchView:View
{

}

`

This FlexLayout wrap its child element correctly up to the Xamarin.Forms version of 3.6.0.539721

But after 4.0.0.425677 , it rendered be like in below

Note : Issue only with Android platform.

@Xamariners please check this and update us with possible solution. Actually it blocks our development cycle. Taking this a high priority and provide a solution ASAP.

I have attached the sample in both lower and higher version of Xamarin.Forms.

Regards,
Hemalatha M.


Viewing all articles
Browse latest Browse all 89864

Trending Articles