Items are packed toward the end on the main axis. Items are packed toward the start on the main axis. Breaks lines as necessary to fill line boxes.Ĭollapses whitespace as for normal, but suppresses line breaks (text wrapping) within text. Newline characters in the source are handled as other whitespace. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line. The inline contents are centered within the line box. The same as text-right if direction is left-to-right and text-left if direction is right-to-left. The same as text-left if direction is left-to-right and text-right if direction is right-to-left. The inline contents are aligned to the right edge of the line box. The inline contents are aligned to the left edge of the line box. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Only available on Android.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Doesn't work on launch when using the Android 12 API. If layoutName is not configured, it will use a layout that uses the splash image as background. If useDialog is not set or false, use a layout instead of the ImageView. If useDialog is set to true, configure the Dialog layout. Hide the status bar and the software navigation buttons on the Splash Screen. Hide the status bar on the Splash Screen. Doesn't work if useDialog is true or on launch when using the Android 12 API. Only available on iOS.Ĭolor of the spinner in hex format, #RRGGBB or #RRGGBBAA. 'horizontal' | 'small' | 'large' | 'inverse' | 'smallInverse' | 'largeInverse' Show a loading spinner on the Splash Screen. The ImageView.ScaleType used to scale the Splash Screen image. 'CENTER' | 'CENTER_CROP' | 'CENTER_INSIDE' | 'FIT_CENTER' | 'FIT_END' | 'FIT_START' | 'FIT_XY' | 'MATRIX' Name of the resource to be used as Splash Screen. Whether to auto hide the splash after launchShowDuration.ĭuration for the fade out animation of the launch splash screen (in ms) Only available for Android, when using the Android 12 Splash Screen API.Ĭolor of the background of the Splash Screen in hex format, #RRGGBB or #RRGGBBAA. How long to show the launch splash screen when autoHide is enabled (in ms) To set the color of the spinner use spinnerColor, values are either #RRGGBB or #RRGGBBAA. You can customize the appearance of the spinner with the following configuration.įor Android, androidSpinnerStyle has the following options:įor iOS, iosSpinnerStyle has the following options: If you want to show a spinner on top of the splash screen, set showSpinner to true in your Capacitor configuration file. Possible values for backgroundColor are either #RRGGBB or #RRGGBBAA. Instead of showing a transparent color, you can set a backgroundColor to cover those areas. In certain conditions, especially if the splash screen does not fully cover the device screen, it might happen that the app screen is visible around the corners (due to transparency). If, instead, you want to show the splash screen for a fixed amount of time, set launchShowDuration in your Capacitor configuration file. For the best user experience, your app should call hide() as soon as possible. If you want to be sure the splash screen never disappears before your app is ready, set launchAutoHide to false the splash screen will then stay visible until manually hidden. Show the splash for two seconds and then automatically hide it:īy default, the Splash Screen is set to automatically hide after 500 ms. Show the splash for an indefinite amount of time: Hide the splash (you should do this on app launch)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |