Rank: Member
Groups: Registered
Joined: 2/2/2017(UTC) Posts: 22 Location: Tennessee Thanks: 1 times
|
I have developen an App that is in both the Apple App store and Google Play store. The App has a single row table of images at the bottom of the screen that serve as a navagation menu. These images are 64px X 64PX. In the Apple App Store the images look perfect. In the Google Play Store the images are much smaller. Almost unusably small. File Attachment(s): Shawn attached the following image(s):
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 498
Was thanked: 88 time(s) in 88 post(s)
|
Well, that is clear. iPhone works internally with "Logical resolution" - which is about 350x600. This is crazy, but this is the way it is - happened when Apple has doubled resolution of phones and didn't want to introduce incompatibilities with old devices. Now Android and Windows work with real pixels, which means all images are much smaller. On a modern device, for example, Galaxy S7 with 2560×1440 pixels your images with 64x64 resolution should actually look the way like you see them in Google store You can use Control Width setting and $MT_DeviceWidth variables to calculate width. Alternatively, you can load different images. I've attached sample with calculation
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/2/2017(UTC) Posts: 22 Location: Tennessee Thanks: 1 times
|
Since I have 5 images in the menu I used this xcode to set the image width:
if ($MT_iOS) then ("64") else (if ($MT_DeviceWidth idiv 5.5 gt 150) then ("150") else ($MT_DeviceWidth idiv 5.5))
I divided by 5.5 to allow space so the images weren't crammed together. Do you see any flaws in this logic?
|
|
|
|
Rank: Administration
Groups: Registered, Administrators Joined: 7/21/2014(UTC) Posts: 498
Was thanked: 88 time(s) in 88 post(s)
|
|
|
|
|
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.