eastwater
eastwater

Reputation: 5582

Android how to use material design icons in layout files

Material design icons:

https://material.io/tools/icons/?style=baseline

How to use these icons in layout XML file? Do I need to download these icons? e.g.

<ImageButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/button_icon"
    ... />

Is icon size/color configurable?

Upvotes: 0

Views: 457

Answers (1)

Ali Shaheer
Ali Shaheer

Reputation: 31

yes you can download it and use it after putting it inside the drawable folder. while you can also create vector asset by right click on drawable folder select new -> vector asset -> clip art .. and select the desirable image

Upvotes: 1

Related Questions