Archos A101 - Layout values

GabrielM

Member
Licensed User
Longtime User
Hi

While I do not have an actual Archos A101 10" with me to test, I would like to write an app for it. I have found so far that the screen res is 1024x600.

Is there anyone here on the forum using such a tablet ? and if so is it possible to let me know the real X, Y and layout values using : "GetDeviceLayoutValues" , please.

Many thanks.

I have attached a simple code for you to test:
 

Attachments

  • Get_Layout_Values.zip
    5.4 KB · Views: 228
Last edited:

GabrielM

Member
Licensed User
Longtime User
Update:

I have found someone with an Archos A101 and run the apk above.

B4X:
Result as showed in the messagebox:

 Density=1 Scale= 1 height=600 width=1024

I have tried to run an app written for the above density and scale, that is the app should show a 1024x600 bitmap on the screen.
Thing is that the image shown is larger than the screen :BangHead:

I have tested with a scale of 1.075 and it looks that the 1024x600 bmp is shown Ok on the screen.

Still, if I want to add one gif with some transparency areas (same size as the bmp 1024x600) the transparent areas will be colored white.

:sign0163:
 
Upvote 0

DarkMann

Member
Licensed User
Longtime User
Hi,

I'm not sure your quick test of layout values goes far enough.

I have a 101 G8 and came up with the following figures.

Density: 1
Scale: 1
Height: 600
Width: 1024

Now, with INCLUDE TITLE checked I get -

Activity.Height 923 (P) or 543 (L)
Activity.Width 600 (P) or 980 (L)

with INCLUDE TITLE unchecked -

Activity.Height 948 (P) or 568 (L)
Activity.Width 600(P) 980 (L)

Finally, for fullscreen I get -

Activity.Height 980 (P) or 600 (L)
Activity.Width 600 (P) or 980 (L)

Actually it was a worthwhile exercise foe me to, I never tried to work it out before, always used %x and %y.

The on-screen button bar for home, menu etc never disappears and is always at either bottom (P) or right (L) and 48 pixels high/wide.

Anyway, hope that helps.

David
 
Upvote 0

GabrielM

Member
Licensed User
Longtime User
Hi Errel,

Yes :eek: , I have compiled it for full screen landscape only . So that must be the error I guess. Thank you.


@ DarkMann

Thank you DarkMann, very helpful to know about that bar. It is always present in the right side (i.e. when tablet hold in landscape mode) and I thought is just similar to P1000 Samsung tablet.

I will re-size the bitmaps/gif background images to 980x600 and see how it goes.

Gabi
 
Upvote 0
Top