After that, the icons are created on the 'mipmap. On Background Layer' use the background provided. Run this Android Application, and we would get the output as shown in the following screenshot, with the color of icon in Floating Action Button (FAB) changed to the given color value of #E91E63.Įxample – Change Icon Color of FAB ProgrammaticallyĬreate an Android Application with Empty Activity and modify the activity_main.xml and MainActivity.kt with the following code. On 'Foreground Layer' select the provided image and resize in order to get the proper aspect for the icon. Example – Change Icon Color of FAB via Layout FileĬreate an Android Application with Empty Activity and modify the activity_main.xml with the following code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |