Does anyone know how to modify the position of the Cordova splash screen spinner? I have checked the documentation and couldn't find any information.
For android, a similar fix is in
platforms/android/src/org/apache/cordova/splashscreen/SplashScreen.java
in spinnerStart() change the Gravity value, and RelativeLayout rule.
spinnerStart()
Gravity
RelativeLayout
e.g. to put spinner at the bottom:
change
centeredLayout.setGravity(Gravity.CENTER);
to
centeredLayout.setGravity(Gravity.BOTTOM);
and change
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM, RelativeLayout.TRUE);
List RelativeLayout options: https://developer.android.com/reference/android/widget/RelativeLayout.html
List of Gravity options: https://developer.android.com/reference/android/view/Gravity.html
1.4m articles
1.4m replys
5 comments
57.0k users