Android – phonegap splashScreen direction
•
Android
When setting the startup screen for the mobile screen application, even if I make a large picture with a logo in the center, the picture will stretch on the whole screen. Ideally, I want the picture to just sit in the center with a black or white background. How do I configure the behavior of the startup screen?
resolvent:
There is a better solution: just put the following splash.xml in RES / drawable (modify the Android: SRC property) and change the reference to r.drawable.splash in the setintegerproperty() call
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/splashImage"
android:gravity="center_horizontal|center_vertical" />
For a more detailed description of the settings, see my blog
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码