Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vin89423/material-design-icons-for-android
Material Design Icons for Android. Provide drawable generate from font.
https://github.com/vin89423/material-design-icons-for-android
Last synced: 4 months ago
JSON representation
Material Design Icons for Android. Provide drawable generate from font.
- Host: GitHub
- URL: https://github.com/vin89423/material-design-icons-for-android
- Owner: vin89423
- License: apache-2.0
- Created: 2014-10-22T15:15:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-21T06:11:53.000Z (about 10 years ago)
- Last Synced: 2024-08-02T17:37:09.087Z (7 months ago)
- Language: Java
- Homepage:
- Size: 1.29 MB
- Stars: 20
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Material Design Icons for Android
## Feature
* Provide tint and scalable [Material Design Icons](https://github.com/google/material-design-icons) to Pre-Lollipop Device.
* Provide icon drawable from [.ttf](https://github.com/vin89423/material-design-icons-for-android/tree/master/library/res/raw) font file.
* Detect application theme to show light icon or dark icon automatically.
## Screenshot
## How to use
#### Use in ActionBar / toolbar
```java
MaterialIcon md = new MaterialIcon(this);
menu.add("Account Circle").setIcon( materialIconmd.getMenuDrawable("ic_account_circle") );```
#### Use in ImageView
```java
MaterialIcon md = new MaterialIcon(this);
ImageView img = (ImageView) view.findViewById(R.id.imgView);
img.setImageDrawable( md.getDrawable(context, "ic_3d_rotation") );
```#### Use in ImageView by static access
```java
ImageView img = (ImageView) view.findViewById(R.id.imgView);
img.setImageDrawable( MaterialIcon.getDrawable(context, "ic_3d_rotation") );
```## Icon Licence
Those icons come from Google [Material Design Icons](https://github.com/google/material-design-icons). All icons are released under an [Attribution-ShareAlike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/) license.
## Library Licence
```
Copyright Vin Wong @ vinexs.comLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.```
####Special thanks to
```
JoanZapata - I solved lots of bugs by reading his code.
```