Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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

![Alt](https://raw.githubusercontent.com/vin89423/material-design-icons-for-android/master/sample.gif)

## 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.com

Licensed 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 at

http://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.
```