google-material-icons

Android notification displays wrong icon

懵懂的女人 提交于 2019-12-11 06:09:56
问题 I have a static Array with Icon ids: public static final int[][] ICON_IDS = { {R.drawable.ic_access_alarm_black_24dp, R.drawable.ic_access_time_black_24dp, R.drawable.ic_account_box_black_24dp, R.drawable.ic_add_black_24dp, R.drawable.ic_android_black_24dp, R.drawable.ic_clear_black_24dp, R.drawable.ic_delete_black_24dp }, { R.drawable.ic_settings_black_24dp, R.drawable.ic_airplanemode_active_black_24dp, R.drawable.ic_filter_list_black_24dp, R.drawable.ic_account_box_black_24dp, R.drawable.ic

Align material icon with text on Materialize

心不动则不痛 提交于 2019-12-06 17:16:04
问题 Recently, i started working on a project that contains a table with some fields, and I want to add some Material Design Icons trough MaterializeCSS on the side of the icons. Look at the image and you might get it : I tried everything, vertical align, inline(-block), flex, and everything I could find in stack overflow. So no, it's not a duplicate, I really need help. Thank you. 回答1: That's one way to do it. Of course it depends on the icon, you have to find the specific font-size that will fit

how md-icons are rendered on browser

与世无争的帅哥 提交于 2019-12-02 07:28:40
问题 I am using material2 and Material icons in my project. I want to know how these named icons are rendered in the browser. I have used <button md-raised-button><md-icon>mode_edit</md-icon></button> and in the browser, If I inspect the element <md-icon class="mat-icon material-icons" role="img" aria-hidden="true">mode_edit</md-icon> Here are the classes that are used .mat-icon { background-repeat: no-repeat; display: inline-block; fill: currentColor; height: 24px; width: 24px; } .material-icons

how md-icons are rendered on browser

不羁的心 提交于 2019-12-02 03:06:40
I am using material2 and Material icons in my project. I want to know how these named icons are rendered in the browser. I have used <button md-raised-button><md-icon>mode_edit</md-icon></button> and in the browser, If I inspect the element <md-icon class="mat-icon material-icons" role="img" aria-hidden="true">mode_edit</md-icon> Here are the classes that are used .mat-icon { background-repeat: no-repeat; display: inline-block; fill: currentColor; height: 24px; width: 24px; } .material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 24px; line-height:

how to use google material icons as class instead of <i> tag

假装没事ソ 提交于 2019-11-30 21:38:15
According to the guideline in the Google Material website we have to use material icons in _ i _ tag. the question is how to add the icons as font-awesome. something like : Class="material-icons face" instead of <i class="material-icons"> face </i> Yes,you can add the material icons as classes using the after pseudo elements.check out the fiddle <span class="material-icons face"></span> .face { position:relative; display:inline-block; } .face:after { content: "face"; } 来源: https://stackoverflow.com/questions/37281861/how-to-use-google-material-icons-as-class-instead-of-i-tag

CSS - Center align text with icon

谁说我不能喝 提交于 2019-11-28 11:32:49
Using material icons with CSS, I have the following code that renders a link with icon and text. <a href="#"><i class="material-icons">group_work</i>Groups</a> As you can see in the image below, the text seems to be sinking down.. I would like them to be vertically aligned center together. How can i achieve this? PS. (Not a designer!) To vertically center elements, you can use the vertical-algin: middle; rule. In your case, that would most propably be: .material-icons { vertical-align: middle; } Here is an example with your dark button: .material-icons { vertical-align: middle; margin-right:

CSS - Center align text with icon

烈酒焚心 提交于 2019-11-27 06:24:14
问题 Using material icons with CSS, I have the following code that renders a link with icon and text. <a href="#"><i class="material-icons">group_work</i>Groups</a> As you can see in the image below, the text seems to be sinking down.. I would like them to be vertically aligned center together. How can i achieve this? PS. (Not a designer!) 回答1: To vertically center elements, you can use the vertical-algin: middle; rule. In your case, that would most propably be: .material-icons { vertical-align:

How to use the new Material Design Icon themes: Outlined, Rounded, Two-Tone and Sharp?

半城伤御伤魂 提交于 2019-11-27 06:15:23
Google has revamped its Material Design Icons with 4 new preset themes: Outlined, Rounded, Two-Tone and Sharp , in addition to the regular Filled/Baseline theme: But, unfortunately, it doesn't say anywhere how to use the new themes. I've been using it via Google Web Fonts by including the link: <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> And then using the required icon as suggested in the documentation : <i class="material-icons">account_balance</i> But it always shows the 'Filled/Baseline' version. I've tried doing the following to use the Outlined

How to use the new Material Design Icon themes: Outlined, Rounded, Two-Tone and Sharp?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 11:51:17
问题 Google has revamped its Material Design Icons with 4 new preset themes: Outlined, Rounded, Two-Tone and Sharp , in addition to the regular Filled/Baseline theme: But, unfortunately, it doesn\'t say anywhere how to use the new themes. I\'ve been using it via Google Web Fonts by including the link: <link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\"> And then using the required icon as suggested in the documentation: <i class=\"material-icons\">account