在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):tmiyamon/gradle-mdicons开源软件地址(OpenSource Url):https://github.com/tmiyamon/gradle-mdicons开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Gradle Material Design Icons PluginThis plugin will manage Google's official material design icons in your build.gradle. The plugin copies specified icons from the material design icon repository into your application allowing you to focus on the png icons only. The working sample project is here. Usagebuildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.tmiyamon:gradle-mdicons:0.3.1'
}
}
repositories {
jcenter()
}
apply plugin: 'com.android.application'
apply plugin: 'com.tmiyamon.mdicons' The plugin will clone the material design icons repository to your local environment first, and then refer to it for later builds. The first build will take a while as a result of the clone. Configurationmdicons {
defcolor 'mycolor', '#9804d9'
assets {
nav {
densities "mdpi", "xxxhdpi"
colors "mycolor", "white"
sizes "18dp", "36dp"
names "camera", "search"
}
toolbar {
colors "primary", "secondary"
sizes "18dp"
names "home"
}
}
} Google's material design icons repository follows a naming convention of The blocks in Icon tintingThe icon tinting is supported. The plugin gets the color information from the values of At installation of icons, when trying to get a specific color icon fails, the plugin try to convert white one to the color one and install it. TasksinstallAssetsInstall assets with supporting tinting. The destination directory is uninstallAsstsUninstall assets by deleting destination directory. listColorsYou can check out the available colors for syncRepositoryMainly implicitly used but you can explicitly clone or pull the material design repostiory on your system by running this task. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论