Xamarin forms: Image is not showing in perfect circle

橙三吉。 提交于 2019-12-02 09:24:57

It looks as if you are displaying the circles in a ListView, which has a fixed height of the cells per default. It seems as if your cells are simply not high enough to give the CircleImages the space they need. You have two options to overcome this:

  • Set the cells heigth to a fixed value that is high enough.
    • I don't know the exact value of the cells padding, so you'll have to experiment a bit. Maybe start off with something around 60

<ListView RowHeight="60" ...>

  • Set HasUnevenRows="true"
    • I believe that this will fix the rows height automagically, but it comes at costs: There may be a negative impact on layouting your view.

<ListView HasUnevenRows="true">

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!