Native RadioButton in Xamarin Forms

DavidWiedenauDavidWiedenau USMember
edited October 2017 in Xamarin.Forms

Hi, i have added a native Android RadioButton in my Xamarin Forms Page. It works flawlessly. The only problem i have is if i click the RadioButton the text is being "elevated" (i have a gif attached so you can see what i mean). Does anyone have an idea on how to fix that?

This is my Code:

        <StackLayout Orientation="Horizontal" HorizontalOptions="Fill">
                            <Grid HorizontalOptions="FillAndExpand">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <ContentView Grid.Column="0" HorizontalOptions="Center">
                                    <androidNative:RadioButton TextAlignment="Center" Grid.Column="0" Text="Option1" x:Arguments="{x:Static formsandroid:Forms.Context}"></androidNative:RadioButton>    
                                </ContentView>

                                <BoxView WidthRequest="1" Grid.Column="1" BackgroundColor="DarkGray"></BoxView>

                                <ContentView Grid.Column="2" HorizontalOptions="Center">
                                    <androidNative:RadioButton TextAlignment="Center" Grid.Column="0" Text="Option2" x:Arguments="{x:Static formsandroid:Forms.Context}"></androidNative:RadioButton>
                                </ContentView>
                            </Grid>
                        </StackLayout>
Sign In or Register to comment.