Problem with Material design

Eduardo Gomez 3,426 Reputation points
2021-07-29T09:25:08.283+00:00

Hello

I am using the material design nugget on my Xamarin app

I ma using a listView and a button, in Android everything work fine on Android, but on IOS, my button is not visible and get distorted

119025-download.png

This is my code, if you could help me I would appreciate it

https://github.com/eduardoagr/safe.Xamarin

fill free to request any futures

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
    2021-07-30T02:26:29.6+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Please change your Button's CornerRadius to 25(keep the value of CornerRadius is half of value of width or height ), And I find If we set value of font size is bigger than value of CornerRadius, this + will be moved, not put it in the center. So I set the value of FontSize to "20"

       <Button  
                       Margin="30"  
                       BorderColor="Gray"  
                       BorderWidth="2"  
                       Command="{x:Binding CreateNewNotebookCommand}"  
                       CornerRadius="25"  
                       
                       FontFamily="material"  
                       FontSize="20"  
                       HeightRequest="50"  
                       HorizontalOptions="EndAndExpand"  
                       Text="{x:Static fi:IconFonts.Plus}"  
                       VerticalOptions="End"  
                       WidthRequest="50" />  
    

    119233-image.png 119271-image.png

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful