I want to use the new material icons provided by Google. I find it a bit cumbersome to download each icon individually. Is there a way to do something like:
<ImageButton
android:src="@android:Icon.Material.IconName"
.../>
If not, whats the easiest way to include multiple icons in my project? Cheers.
Material Design Icons are available for free on the official Material Design Icons website. You can use them in your Android apps, websites, and designs, and there are no restrictions on how you can use them.
Google's Material Icons provides a long list of icons. Choose any one of them and add the name of the icon class to any HTML element within the < body > tag. In the following example, we have used the icon named accessibility that belongs to the action category.
To embed Google Icons in your HTML web pages you have to add the link of material-icons font library in the <head> section of your HTML file and then add the class material-icons in the <i> or <span> tag of the <body> section along with the name of the icon.
Follow these steps to start Vector Asset Studio:
In Android Studio, open an Android app project. In the Project window, select the Android view.
Right-click the res folder and select New > Vector Asset.
After you open Vector Asset Studio, you can add a material icon as follows:
Select "Material Icon"
Click Choose
Select a material icon
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With