From the course: Android Development Essential Training: App Architecture with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add icon graphics to menu items

Add icon graphics to menu items - Android Tutorial

From the course: Android Development Essential Training: App Architecture with Kotlin

Start my 1-month free trial

Add icon graphics to menu items

- [Instructor] My application has a navigation drawer now that I can view from sliding in from the side, but it's visually very plain. I'm going to describe how to add icons to menu items. You can do this actually on the Options menu, on the Nav menu, or on any other menu in Android, but you'll frequently see them occur on navigation drawer menus. First, I'll need some graphics. My menu has two items, for Settings and for About. I'll create two new vector assets. I'll use clip art for these and so for the first one I'll search for settings and I'll choose the gear icon. I'll make sure my color is set to black and I'll set the name of the file to IC_settings and create it. Then I'll do the same operation again. Once again I'll use clip art and this time I'm going to search for info and I'll choose this version that has the black circle and the white text. And once again I'll make sure my color is set to black. I'll set the name for this one to IC_about and I'll click Finish and create…

Contents