- 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.
MaterialIcon md = new MaterialIcon(this);
menu.add("Account Circle").setIcon( materialIconmd.getMenuDrawable("ic_account_circle") );
MaterialIcon md = new MaterialIcon(this);
ImageView img = (ImageView) view.findViewById(R.id.imgView);
img.setImageDrawable( md.getDrawable(context, "ic_3d_rotation") );
ImageView img = (ImageView) view.findViewById(R.id.imgView);
img.setImageDrawable( MaterialIcon.getDrawable(context, "ic_3d_rotation") );
Those icons come from Google Material Design Icons. All icons are released under an Attribution-ShareAlike 4.0 International license.
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.