在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MrBIMC/MaterialDesignIcons开源软件地址(OpenSource Url):https://github.com/MrBIMC/MaterialDesignIcons开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):MaterialDesignIconsLib that imports all the vector drawables from materialdesignicons.com into your R.drawable/ ##usage: Reference lib from jcenter: compile 'com.pavelsikun:materialdesignicons:1.0' Done! Clean/Build so project updates list of resources. All the drawables are awailable through: R.drawable/zzz_*icon_name_here* Icons follow the same naming scheme as on materialdesignicons.com, though they start with "zzz_" (to make them less cluttery for your resource-list) and every dash('-') is replaced with underscore. That's it. All icons are "#000000", so tint them manually: Drawable icon = ContextCompat.getDrawable(this, R.drawable.zzz_github);
icon.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP); Don't forget to enable proguard, so your app doesn't include 5mb of useless drawables: android {
//...
buildTypes {
//...
release {
minifyEnabled true
shrinkResources true Check out the sample project for more details. ##Licence Copyright 2016 Pavel Sikun.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论