Is there a way to get the screen width and height

Is there a way to get the screen width and height

BY 19 Jan 2015 Native Application Development

I want add an image to UI, but I want to set it’s width/height according to the screen size(the actually width/height of the emulaor or real device). Is there any sample code? Many thanks!

Written by