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

Unnecessary Padding From The Sides on iOS

$
0
0

I'm still new to Xamarin and I'm having trouble with my code.
We built an app using Xamarin Portable library so that we have the cross-platform solution. However from android to iOS as expected there's some differences. Attached is our HomePage.cs file. On Android it works perfectly (Snapshot 1, this is the desired design and layout).
On iOS it doesn't. (Snapshot 2 shows unnecessary padding on the sides running on iPhone 5 simulator).

NOTE: For the iOS to work I had to change the properties of "iBanner" image to Aspect.Fit not Fill as in Android.
So the attached solution works perfectly on Android only.

But any idea why there's padding?? What's the solution in our case?
There's also another problem on iOS for the 4S screen size. The grid is going out of bounds and not auto re sizing to the small resolution :/ How to avoid this problem??
Any help is much appreciated ! Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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