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

XAML pixel on the Android project are px or dp?

$
0
0

Let me explain with an example:

Suppose I have a Page like this:

<?xml version="1.0" encoding="utf-8" ?>

<ContentPage.Resources>
    <ResourceDictionary>

        <!-- This is only an issue on the iPhone; Android and 
       WinPhone auto size the row height to the contents. -->
        <OnPlatform x:Key="rowHeight" 
              x:TypeArguments="x:Int32"
              iOS="60"
              Android="60"
              WinPhone="85" />

...

On Android Platform rowHeight will be 60 pixel or 60 dp ?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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