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

onPlatform changes for Android but not for iOS

$
0
0

I have been developing a Xamarin Forms app and have been testing its functionality on the windows emulator.
On a button click, the user would be sent to the resulting listview that contains locations imgur.com/7o4I37B,QkNNtnl,UQWObD3#0
On an Android device, the list cells would overlap and you could not read the full cell, so a fix for this would would be to fix the listview's row height by 225. This can be done in xaml by:

<ListView.RowHeight> OnPlatform x:TypeArguments="x:Int32" Android="225" </ListView.RowHeight> note: there should be tags around OnPlatform

The resulting listview would look like this one android imgur.com/7o4I37B,QkNNtnl,UQWObD3#1

On iOS, I had the same cell overlapping problem and would have thought that the fix would be the same.

<ListView.RowHeight> OnPlatform x:TypeArguments="x:Int32" Android="225" iOS="225"</ListView.RowHeight>

But the resulting listview looks like imgur.com/7o4I37B,QkNNtnl,UQWObD3#2

I know that the cells are there because when I click on a blank cell, I get sent to the resulting detail page of the cell, which happens in all platforms, but I am getting blank short cells. Is there any way to fix this or is this a Xamarin bug?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>