This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disabled Aapt2 to fallback on xml file usage | |
android.enableAapt2=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Notes: | |
gradleVersion = '2.14.1' | |
com.android.tools.build:gradle:2.2.3 | |
compileSdkVersion 25 | |
buildToolsVersion "25.0.2" | |
minSdkVersion 15 | |
targetSdkVersion 25 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ShapeDrawable.ShaderFactory factory = new ShapeDrawable.ShaderFactory() { | |
public Shader resize(int width, int height) { | |
final int[] colors = new int[]{ 0xFFFCDB7C, 0xFFE21C4D, 0xFF4832DF }; | |
final float[] anchors = new float[]{ 0, .5f, 1 }; | |
return new RadialGradient(width / 10, height, (float) (width * .8), colors, anchors, Shader.TileMode.CLAMP); | |
} | |
}; | |
# Drawable.setShaderFactory(factory); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in {320..1}; | |
do | |
val="$(((${i} * 7) / 10))" | |
if [ "${val}" -lt "1" ] | |
then | |
val="1" | |
fi | |
#echo $val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
destFileName="${1/.svg/.png}" | |
sizes=( 48 72 96 144 192 512 ) | |
for size in "${sizes[@]}" | |
do | |
mkdir $size/ | |
inkscape -z -e $size/$destFileName -w $size -h $size $1 | |
done |