material-design-icons-for-android
material-design-icons-for-android copied to clipboard
Material Design Icons for Android. Provide drawable generate from font.
Material Design Icons for Android
Feature
- Provide tint and scalable Material Design Icons to Pre-Lollipop Device.
- Provide icon drawable from .ttf font file.
- Detect application theme to show light icon or dark icon automatically.
Screenshot
How to use
Use in ActionBar / toolbar
MaterialIcon md = new MaterialIcon(this);
menu.add("Account Circle").setIcon( materialIconmd.getMenuDrawable("ic_account_circle") );
Use in ImageView
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
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. All icons are released under an Attribution-ShareAlike 4.0 International 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.