Hi Alexey,
1) Your solution is okay for this purpose.
As an alternative you could use
qx.bom.element.Style.set
http://demo.qooxdoo.org/current/apiviewer/#qx.bom.element.Style
if you want to change CSS styles directly.
If you use PhoneGap/Cordova to wrap your application, you get a SplashScreen
handling out-of-the-box.
This does also handle multiple images. (portrait/landscape)
2) The automatic orientation switch can only be disabled if you wrap your app
by Cordova.
A pure HTML website is not able to control this feature.
As a work around... just use a plain colored background, and keep the
same-sized image centered on the screen.
Something like this would work if you add "splash-image" css class:
.splash-image {
width:100px;
height:100px;
position:absolute;
top:50%;
left:50%;
margin-left:-50px;
margin-top:-50px;
}
Always keep in mind that here are multiple displays out there:
http://manual.qooxdoo.org/devel/pages/mobile/resolution.html
If you use qx.ui.mobile.basic.Image for displaying the image, qx.Mobile handles
multiple resolutions for you.
Greetz Christopher
Am 07.01.2014 um 01:37 schrieb alexey.petrenko
<[email protected]<mailto:[email protected]>>:
I want to create a qooxdoo mobile app which starts from a simple splash
screen.
There are two tasks to be solved:
1) I need to set image as a background to the 1st page (without repetitions,
uniformed to fill the whole screen, keeping proportions)
2) Disable automatic orientation switch, so I won't need to create multiple
images
I figured out how to solve the 1st task - with the custom css class and
page's addCssClass() method, but I think there is a better way to do it.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/Splash-screen-in-qooxdoo-mobile-tp7585123.html
Sent from the qooxdoo mailing list archive at Nabble.com<http://Nabble.com>.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel