Display issues

Roy Razor

New Member
Hi people,

I have been developping B4A applications for a week now, so I'm a real newbie with it. I have an issue with display though. Let me explain.

I use an AVD, and in the Designer, the Activity just looks fine. Exactly what I want.

Yet, when I run my project on my 7inch tablet, an Archos Arnova 7f G3, the Activity only takes one quarter of my screen. Everything is small, I can barely read, whereas on the emulator it works just fine ! Everything is "big", the whole screen is "filled", I dunno if you see what I mean...

Now I've tried different layouts, different scales, but it still doesn't work... Anyone could help ?

Thanks for the answers, and my bad for the mistakes if there were any as English is not my native language.

Much love to the community.
 

NJDude

Expert
Licensed User
Longtime User
Possibly you have issues with SCALING, can you post your project? from the IDE click on File -> Export as ZIP and attach it to your post.

Without seeing the code, it will be near impossible to help you.
 
Upvote 0

Merlot2309

Active Member
Licensed User
Longtime User
Hello Roy,

The Archos Arnova 7f G3 has a density of 1, not 1.5.

Another approach is to define views in percentages, saves you a lot of time in the Abstract Designer, eg.:

Activity. Addview(RBAller, 0, 1%y, 100%x, 7%y)

or:
Dim top as String
top = 1%y
Activity.Addview(RBAller, 0, top, 100%x, 7%y)

and then you can add
top = top + 8%y

to go to the next view.

The layout looks fine on the Galaxy Note.

NJDude might overrule me, ha, ha.

Success,
Helen.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
Helen is right, you should use percentages to position your views and use the designer scripts.

I took the liberty of "fixing" your design, take a look at the attached project it should work on any device without a problem, however, you will see that you need to make a few adjustments to some labels height and create a portrait layout, but I leave that to you as an exercise :D.

I hope that helps you understand how to make layouts in B4A.
 

Attachments

  • Horaires_Sample.zip
    11.4 KB · Views: 237
Upvote 0

Roy Razor

New Member
Hey people !

Thanks for all the answers (I didn't hope to get any so fast, wow lol) so I have been following your tips and it worked great for the positioning. I have everything right where I want it and now the issue is with TextSize.

Erel, I have seen the attached post on your signature about supporting multiple screens. I have used the Delta code, but I always find myself with a scale of 1. I have tried everything I found in this very same post but it only gave a little bit of size, or reduced it at the point I couldn't even read it.

So I'm sorry for the inconvenience, but is there another way to adapt TextSize to the devices ?

Thanks a lot
 
Upvote 0
Top