There is no changes to the code of your application required, only the need to generate and package additional resources. Packaging these resources with your application.Creating or generating the adaptive icon resources.There are two steps to adding adaptive icons to your application: The icon on the right implements the adaptive icons approach contained here. By adding adaptive icons we can make our AIR application a first class citzen with an icon that adapts with the OS. You will most likely see your icon surrounded by a white area as in the icon on the left below. You must provide icon layers as drawables without masks or background shadows around the outline of the icon.Ĭurrently AIR does not generate adaptive icons automatically. You can control the look of your adaptive launcher icon by defining 2 layers, consisting of a background and a foreground. Adaptive launcher icons are also used in shortcuts, the Settings app, sharing dialogs, and the overview screen. Each device OEM provides a mask, which the system then uses to render all adaptive icons with the same shape. For example, an adaptive launcher icon can display a circular shape on one OEM device, and display a squircle on another device. Android 8.0 (API level 26) introduces adaptive launcher icons, which can display a variety of shapes across different device models.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
August 2023
Categories |