Page 1 of 2

9-patch image

Posted: Wed Jan 29, 2014 7:27 pm
by Rafael Martínez

According to the documentation is highly recommended to use 9-patch images as launch images. This requires the extension 9.png.

Appery.IO stores launch images as splash.png instead splash.9.png.

This has effects on the launch image for different screen sizes (and in portrait / landscape modes of the devices)?


9-patch image

Posted: Wed Jan 29, 2014 8:02 pm
by Kateryna Grynko

Hi Rafael,

Did you set all "Launch Images"?


9-patch image

Posted: Wed Jan 29, 2014 8:14 pm
by Rafael Martínez

Yes, but unfortunately the device displays a stretched launch image except for the devices with screen sizes exact to 960x270, 640x320, 470x320, 426x320...

In all other devices (with different screen sizes) looks really bad.


9-patch image

Posted: Wed Jan 29, 2014 9:25 pm
by Kateryna Grynko

Rafael,

You can try manually adding all the possible sizes in an appropriate file (there should be an xml file with all sizes).


9-patch image

Posted: Wed Jan 29, 2014 10:18 pm
by Rafael Martínez

We think that this is an issue of Appery.IO. All the posible sizes are so much sizes....

We have downloaded the code, we have replaced the 4 files (xhdpi, hdpi, mdpi, ldpi splash.png) with images splash.9.png 9-patches developed with a 9-patch tool, we have compiled the code using Eclipse and it works fine in all devices (with different screen sizes).

We think Appery.IO is doing something wrong with the launch images that are uploaded to Android binary - Launch Images

Thank you so much.


9-patch image

Posted: Thu Jan 30, 2014 9:37 pm
by Kateryna Grynko

Rafael,

Appery.io uses images allowed by PhoneGap: http://docs.phonegap.com/en/3.0.0/cor...


9-patch image

Posted: Thu Jan 30, 2014 10:47 pm
by Rafael Martínez

If no one else have problems like this is a sign that perhaps we are doing something wrong

In anycase, we solve this issue replacing the images and using Eclipse.


9-patch image

Posted: Thu Jan 30, 2014 11:00 pm
by Rafael Martínez

And this url that you provides us is very clear:

"You should use a 9-patch image for your splash screen."

and in this other link:

https://developer.android.com/tools/h...

is very clear too as you can see:

"Your image will be saved with the .9.png file name."

This is just the way we do it and it works.


9-patch image

Posted: Thu Jan 30, 2014 11:10 pm
by Alena Prykhodko

Rafael, thanks for update.


9-patch image

Posted: Tue Feb 11, 2014 1:17 pm
by Maryna Brodina

Hello Rafael! See my reply here https://getsatisfaction.com/apperyio/...