Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Android app for PlayBook custom layout folder?

I am currently repacking my Android application for the Blackberry playbook but I am having some issues with the layout. I have a custom layout for the Nexus 7 which I would like to use on the Playbook. This layout is contained in layout-sw600dp. I know this folder naming convention only came into place in Android 3.0+ and as the Playbook uses Android 2.3.3 this is not used.

The playbook currently seems to be using resources in the layout-xlarge folder. Layouts in this folder are geared towards 10 inch tablets and look poor on the Playbook.

Is there anyway I can test if the device is a Playbook and make it load the same layouts as the nexus 7 without changing the xlarge layouts.

like image 317
bencallis Avatar asked Feb 02 '26 01:02

bencallis


1 Answers

I am using layout-xlarge-v9 (by version of gingerbread, which should(1) not be in any xlarge tablet)

Edit to add a note about qualifier precedence and version qualifier

You need to use the version qualifier at the end.

layout-xlarge-v9
layout-xlarge-land-v9

Also, this gets version 9 and higher, so your old layout-xlarge should be now:

layout-xlarge-v11
layout-xlarge-land-v11

I agree on being annoying that it considers itself xlarge

(1) should, because honeycomb was designed for that, but you may find some low-end Android tablets that do, but probably you don't care that much about that segment

like image 71
shalafi Avatar answered Feb 04 '26 15:02

shalafi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!