- Joined
- Jan 2, 2020
- Messages
- 1,284
Can someone please explain how CX handles different resolutions and DPI's on Android devices?
As I understand, when you start a CX application on Android, CX will present you with a fullscreen to work with.
You are then supposed to read the true pixel native width and height (without having DPI modes come in-between, that could in theory give you some lower number, right?) After this is done, you have to decide what to do with these numbers and how you want to scale things appropriately.
I think I understood that part correctly but how do you get the DPI-level that is used on a particular Android device?
Are you meant to calculate the DPI for yourself depending on the native true pixel resolution that is given you using the height and width commands?
As I understand, when you start a CX application on Android, CX will present you with a fullscreen to work with.
You are then supposed to read the true pixel native width and height (without having DPI modes come in-between, that could in theory give you some lower number, right?) After this is done, you have to decide what to do with these numbers and how you want to scale things appropriately.
I think I understood that part correctly but how do you get the DPI-level that is used on a particular Android device?
Are you meant to calculate the DPI for yourself depending on the native true pixel resolution that is given you using the height and width commands?