Forum Xamarin.Android

GridLayout Column width percentage

Hi to all,
I want to mage a GridLayout with 4 rows and 3 columns.
Each cell must have an ImageButton.
How can I have GridLayout columns widthe, auto divide by 3, so be filled for every screen resolution?
Something like


Thanks in advance


  • mamtabmamtab USMember ✭✭
    edited May 2016

    Hi @VagelisDermos
    Use the below code:-


  • VagelisDermosVagelisDermos USMember
    edited May 2016

    I do not know but the question missing the ColumnDefinitions part!!!

    Anyway is like that:

    <Grid.ColumnDefinitions> <ColumnDefinition Width="0.1*" /> <ColumnDefinition Width="0.1*" /> <ColumnDefinition Width="0.1*" /> </Grid.ColumnDefinitions>

    anyone please

Sign In or Register to comment.