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

How to tell if running on a phone or tablet in Xamarin Forms

$
0
0

Hi, I know how I can tell if we are in a tablet or phone on Android but looking for a fairly foolproof way in Xamarin Forms.

I was pointed to:
if (Device.Idiom == TargetIdiom.Phone)

That differentiates a Samsung S4 from a Nexus 10 tablet. But my Nexus 7 tablet seems to get picked up as a phone...

I guess I am going to have to check in the Android start code and then launch a different Xamarin form, please let me know if there is a friendly Xamarin forms way to solve this!!!


Viewing all articles
Browse latest Browse all 91519

Trending Articles