Android Question Layout Issues with Kindle Fire & Galaxy Note 10.1

devlei

Active Member
Licensed User
Longtime User
For all my layouts I have used: Default font, Size 16 and set the heights to 40dip and 45dip for Buttons and AutoCompleteEditTexts (Acet) respectively. This displays very well on all devices from the UI Cloud, except the Kindle Fire where only the bottom of the text shows at the top of the Acet. Also the text on the button is too low and some of the text bottom is cut off at the bottom of the button. Now I have purchased a Galaxy Note 10.1, and it does the same thing!

Does anyone understand why these two devices are different?

The simple solution is to increase the heights to 45dip & 50dip for buttons & Acets respectively, but then it is too spaced out on all other devices. Any suggestions?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Note that the UI Cloud is made of real devices. So what you see there is identical to what you will see with the real app running on the same model.

About the kindle, you can use Phone.Manufacturer. If it is Amazon then go over all the views and change their text size.

In v3.0 it can be done with this code:
B4X:
For Each v As View In Activity.GetAllViewsRecursive
 If v Is Label Then
   Dim lbl As Label = v
   lbl.TextSize = ...
Next

You can find similar code for previous versions in the forum.
 
Reactions: eps
Upvote 0

devlei

Active Member
Licensed User
Longtime User
Thank you, Erel, will use that code for the Kindle.

Any ideas of how to do the same for the Note 10.1? (The Galaxy Tab 10.1 displays correctly)

Has anyone experienced similar display issues with any other devices?
 
Upvote 0

MaFu

Well-Known Member
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…