![]() ![]() Since one of the launcher icons is an XML file, the tag throws an exception. This is the reason some people run into this issue when creating a launch screen using the original blog post. When a newer Android app is created, the mipmap launcher icons include a vector version which is an XML file. The tag expects an image resource, but it doesn’t allow specifying an XML drawable source file. This no longer works for more recently created Android apps for an interesting reason. The original implementation declared the background like this: A background XML drawable is created and set as the window background for a launch screen-specific theme. Fixing a bugĬonfiguring the launch screen background works the same as the original post. And though there are several types of launch screens, we’ll focus on one that displays the app icon when the app process first loads. If you are interested, I uploaded some sample project code on Github.īefore getting started, the official Material name for a splash screen is now Launch Screen. The general implementation of the splash screen is the same but there are a few considerations to make about how to navigate. ![]() We’re aiming to update the implementation with modern Android practices and to fix a bug in the original post. In fact, BNR’s VP of Engineering, Chris Stewart, wrote our original Splash Screens the Right Way blog post over five years ago and it is still our most popular post. ![]() Splash screens are a big deal for Android developers. Splash Screens the Right Way Launching a Splash Screen Update
0 Comments
Leave a Reply. |