android - Cordova/PhoneGap 9-patch splash screen -
i have 9-patch image (splash.9.png) i'd use cordova (3.4.0) app splash screen. if run (cordova) android project eclipse, it's supposed be, i.e. splash screen appears , stretchable areas stretched. however, if run app using command line interface, entire splash screen stretched/deformed, if cordova doesn't see 9-patch image, regular .png. have following specified in config.xml:
<preference name="splashscreen" value="splash" /> <preference name="splashscreendelay" value="5000" />
is there else needs set? other clues? in advance!
ok, answer has stretchy areas of 9patch image. found answer pinging github question. user sent me discussion had cracked it.
the main issue 9patch tutorials explain how stretch buttons, none detail how center image.
look green/blue/red image little more half way through discussion.
http://community.phonegap.com/nitobi/topics/stretched_9_patch_splash_screens_android
wayback copy: http://web.archive.org/web/20160405060404/http://community.phonegap.com/nitobi/topics/stretched_9_patch_splash_screens_android
the key me @ edges. it's hard see (for me @ least), can barely make out black marks along edge define stretchy areas. top has 2 small areas (on green), left has 2 small (on green), bottom has 1 long (on blue), right has 1 long (on blue).
additionally, xml provided allow use of single image in both vertical , horizontal orientations.
consequently, find 1 image (as hard see lines) better instruction on how 9patch works of tutorials i've watched.
Comments
Post a Comment