Support Forum

Ask questions and get help from MobileTogether experts.
MobileTogether Product Information
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Shawn  
#1 Posted : Tuesday, March 7, 2017 5:42:39 PM(UTC)
Shawn

Rank: Member

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 22
United States
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):
AppleAppStoreIcons.png (1,127kb) downloaded 43 time(s).
Shawn attached the following image(s):
GooglePlayIcons.png
bbv  
#2 Posted : Tuesday, March 7, 2017 7:04:59 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 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
File Attachment(s):
image sample.mtd (5kb) downloaded 40 time(s).
Shawn  
#3 Posted : Tuesday, March 7, 2017 9:18:01 PM(UTC)
Shawn

Rank: Member

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 22
United States
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?
bbv  
#4 Posted : Tuesday, March 7, 2017 11:03:42 PM(UTC)
bbv

Rank: Administration

Groups: Registered, Administrators
Joined: 7/21/2014(UTC)
Posts: 495

Was thanked: 87 time(s) in 87 post(s)
sounds reasonable
Users browsing this topic
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.