12
Android Icon Deployment potatotips#13 @tishibas

Android icon deployment

Embed Size (px)

Citation preview

Android Icon Deploymentpotatotips#13

@tishibas

@tishibas

アイコンを用意するのはすごくめんどくさい

1. どのアイコンにするかを選択2. 色を選択3. svgからmdpi,hdpi,xhdpiなど様々なサイズで

pngを作成4. projectのdrawable-hogeに作成したpngをそれ

ぞれ配置5. デザインや色が気に入らなかったりすると1や2

に戻ってやり直し

アイコンを配置するまでの流れ

1. どのアイコンにするかを選択2. 色を選択3. svgからmdpi,hdpi,xhdpiなど様々なサイズで

pngを作成4. projectのdrawable-hogeに作成したpngをそれ

ぞれ配置5. デザインや色が気に入らなかったりすると1や2

に戻ってやり直し

アイコンを配置するまでの流れ

めんどくさい:(

めんどくさすぎたので1コマンドで配置してくれるスクリプト書いた

https://github.com/tishibas67/Android-IconDeployment

Prerequisit

● Inkscape○ https://inkscape.org/en/○ for ubuntu user :)

■ sudo apt-get install inkscape○ for mac user ;)

■ Sorry, I don’t have mac. See the above link.○ for win user :(

■ I have it but...

Usage

$ aid.sh [-c color] [-p /path/to/project] icon_name

Usage

● 指定できるアイコンは746種類○ Reference: https://google.github.io/material-design-icons/

● Android Studioのプロジェクトのみ対応

文字で色指定可能ex) $ aid.sh -c red done

● #ff0000のように色指定する場合はダブルクォーテーションで括る○ ex) $ aid.sh -c “#ff0000” done

● デフォルトのプロジェクトは現在いるプロジェクト

Not supported

● グラデーション/マルチカラーのアイコンを作成○ そもそもmaterial designのコンセプトとは多分違うので

必要なし

● Windows○ そもそもbashが動かない