Titanium - 获取当前高度 window
Titanium - Get height of current window
是否可以获取当前window的高度作为像素值?
或者,屏幕高度作为像素值?
对于window身高你可以使用Ti.Platform.displayCaps.platformHeight
你也可以尝试方法
view.getRect().height
或 view.toImage().height
获取视图高度。
希望对您有所帮助。
是否可以获取当前window的高度作为像素值? 或者,屏幕高度作为像素值?
对于window身高你可以使用Ti.Platform.displayCaps.platformHeight
你也可以尝试方法
view.getRect().height
或 view.toImage().height
获取视图高度。
希望对您有所帮助。