Launcher UI as Phone on Tablet

223 views
Skip to first unread message

racks11479

unread,
Feb 13, 2012, 3:47:02 PM2/13/12
to Cornerstone Development
Hello,

First off let me say thank you for making this open source! It is a
valuable product in my eyes.

Well to my issue. I've baked this into CM9 ICS for the Nook Color.
Which by default the UI is displayed in tablet mode. But when compiled
with OnSkreen, for some reason it's showing the UI as phone layout.
I've attached a pic for you to see. What could be causing the issue?

[IMG]http://i41.tinypic.com/35hen3l.png[/IMG]

[IMG]http://i44.tinypic.com/ilfuiu.png[/IMG]

Thank you for any input!
Racks

no1home

unread,
Feb 13, 2012, 6:33:05 PM2/13/12
to Cornerstone Development
I noticed this only happens with the Trebuchet launcher, it seems to
work fine with Go Launcher Ex and possibly others.

Sanjay

unread,
Feb 13, 2012, 10:19:01 PM2/13/12
to Cornerstone Development
When cornerstone is running on tablet, the launcher running in main
panel has less space than usually running in full screen. The app
itself chooses how it should be laying out in different ways. We
haven't done any app specific settings in Cornerstone. It depends on
app configuration and its layout defined for orientations (portrait or
landscape).

David McClellan

unread,
Feb 14, 2012, 11:03:50 AM2/14/12
to corners...@googlegroups.com
Right, but in your demonstration video, this is not the case. The launcher stays in 'tablet' form even though the space is restricted. How much has changed since the demo video and the product going open source? It sure seems like quite a bit has. =/ 

onhsnm

unread,
Feb 14, 2012, 12:02:03 PM2/14/12
to corners...@googlegroups.com
That video was recorded while this version was still under development, so some things have changed since then.

racks11479

unread,
Feb 14, 2012, 2:57:07 PM2/14/12
to Cornerstone Development
If you noticed in the screen shot. The second window on the bottom
apps icon wasn't appearing. I guess this had to do with the screen
size as well. By default it is set to 1280x800. I've commented that
out and used 1024x600 (which is what the Nook Color uses). Now the app
drawer shows fine in the second window. However. It still shows in
Phone UI instead of tablet. Could this have to do with having OnSkreen
on the display, it's taking up X amount of pixels of the screen size
from the actual 1024x600 because of the tabs? Do you think I would
have to dig into the core framework itself to adjust display size to
offset the OnSkreen tab?

Question is does it display correctly on a 1280x800 display?

Thanks,
Racks

racks11479

unread,
Feb 14, 2012, 3:17:03 PM2/14/12
to Cornerstone Development
Forgot to mention. Thanks David McClellan for pointing that out to
me. :)

David McClellan

unread,
Feb 14, 2012, 4:02:10 PM2/14/12
to corners...@googlegroups.com
Hello onhsnm,

Care to elaborate as to what has changed?

~David McClellan 

onhsnm

unread,
Feb 14, 2012, 11:43:17 PM2/14/12
to corners...@googlegroups.com
David  - the relevant changes were how the Configuration for the Activities are calculated. The video was taken while that was still in dev, thus the reason for the variance between what you have seen in the video and in the released version.

Sanjay

unread,
Feb 15, 2012, 2:47:34 AM2/15/12
to Cornerstone Development
Hello Racks,

We are seeing the problem you are describing here in many screenshots
of various custom ROMS. So to help everybody about how to customize
Cornerstone on various screens, we have written the wiki on github.
Please go through the wiki and steps defined there.

https://github.com/Onskreen/cornerstone/wiki/Cornerstone-Customization

Thanks for your feedback.

racks11479

unread,
Feb 16, 2012, 12:47:19 AM2/16/12
to Cornerstone Development
Hi Sanjay,

Thank you for the wiki. However, the issue still pertains. The Nook's
screen size is 1024x600, which is already included in OnSkreen. It was
commented out. So I edited the necessary files that pertains to
1024x600 display. But no matter what values I edit. It still displays
the main screen in phone UI.

When booting the system. The initial display is in tablet UI, but as
soon as OnSkreen loads it switches over to phone UI. Seems like as
soon as it pushes the screen real estate over for the OnSkreen tab,
something changes the values of the display that makes the system
thinks it's running on a phone instead of a tablet.

To troubleshoot the problem. I quit out of OnSkreen and then restart
launcher, now it's back in table UI. But as soon as I start up
OnSkreen again. It goes back to phone UI.

Thank you for any feedback,
Racks

Sanjay

unread,
Feb 16, 2012, 3:09:06 AM2/16/12
to Cornerstone Development
Hello Racks,

I think I got the issue you are describing. Officially, we have been
testing on 1280x800, so we never had any such issue. I also suggest
you go through this official Android doc.

http://developer.android.com/guide/practices/screens_support.html

Scroll the page and go to Table 3 which displays various screen sizes
and how the devices are categorized as small, normal, large or extra
large.

As you said that, you had activated already available config settings
of 1024x600 layout in cornerstone.xml file. According to the current
setting, the Cornerstone panel width is 450 and the handler width is
38 pixels. So the over all space left for main panel or where the
launcher app runs as (1024 - 450 - 38 = 536). Hence, the launcher app
runs in to 536x600 which is considered as the normal screen category
and the Android framework grabs the resources designed for smaller
screen or the phone UI. So I suggest you apply the below layout
settings in cornerstone.xml and then build the source.

<layout width="1024" height="600">
<landscape>
<width>320</width>
<height>257</height>
<handler>
<width>38</width>
</handler>
<appheader>
<height>30</height>
</appheader>
</landscape>
<portrait>
<width>298</width>
<height>450</height>
<handler>
<width>38</width>
</handler>
<appheader>
<height>30</height>
</appheader>
<gutter>4</gutter>
</portrait>
</layout>

Of course, you have to make appropriate changes in CSPanel layout
files too. Please make the above changes, test at your end and let us
know the result.

Thank you,
Sanjay

racks11479

unread,
Feb 16, 2012, 4:46:58 PM2/16/12
to Cornerstone Development
Hello Sanjay,

Thank you very much for the input. Works as suggested. We have tablet
UI! :)

Now on to the next issue? :) For some reason when merging OnSkreen and
building. It somehow breaks wifi.

-When rom first boots, wifi will not stay toggled on. However you can
see available networks.
-Try and choose a network to connect to and it doesn't initiate a
connection. But it will add it to remembered networks. Long press and
try to connect with same outcome.
-Only way to get wifi to connect is to do a full reboot and it will
connect upon completion of boot.
-Then wifi will connect to the internet, you can browse the web, sign
into market. However you are unable to download anything from market.
Gives out a -101 error.
-In the wifi settings, it states that it's not connected to any
network at all. However, you're still able to browse the web?

Thank you again for the support. Also this is just my feedback and it
could just be a unique experience from using OnSkreen on the Nook
Color running CM9.

-Racks
Reply all
Reply to author
Forward
0 new messages