Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

displayCaps.platformWidth returns iOS(in dp) vs Android(in px)

$
0
0

I was wondering how to fix the problem where Ti.Platform.displayCaps.platformWidth is returning the value in dp on iOS where on Android it is returning the value in px. The default value in the tiapp.xml is dp but still no change in Android. (<property name="ti.ui.defaultunit" type="string">dp</property>)

Any suggestions?


Viewing all articles
Browse latest Browse all 7655

Trending Articles



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