![]() Next, we have to set our launch_background.xml as a splash screen.If you also have a drawable-v21 directory present, which in my case, was generated together with the whole project, you can remove the mentioned directory or place there the same launch_background.xml file as in the drawable directory. ![]() This file will represent the look of our splash screen. Then, we need to modify the Android/app/src/main/res/drawable/launch_background.xml file.After generating all required images, place them in appropriate directories in Android/app/src/main/res.if you want to use an image of 200x200 pixels in your app, you should provide an image of 800x800 pixels because that is the highest resolution used by some Android devices ( drawable-xxxhdpi). Remember to provide high-resolution image as an input, e.g. To generate all required resolutions of images, I have used the website (but this one is also cool ). If you are not familiar with drawables, I highly recommend reading that article explaining the topic in detail. In this case, place these images in directories called drawable with different suffixes. Run the app… and, unfortunately, we can notice a black screen between our beautiful splash screen and the first page of the app.įor Android, we also need our icon image in different resolutions for different devices. “ LaunchBackgroundColor” and “ LaunchImage” are assets added in a previous steps. And then set the appearance of our new splash screen using “ Launch Screen” key.To do that, delete the “ Launch screen interface file base name” key. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |