Slide 1

Slide 1 text

リソースの整理整頓 for Android @kaelaela potatotips #24

Slide 2

Slide 2 text

potatotips #24 potatotips #24 Yuichi Maekawa(@kaelaela) kaelaela kaelaela31 @755

Slide 3

Slide 3 text

potatotips #24

Slide 4

Slide 4 text

potatotips #24

Slide 5

Slide 5 text

potatotips #24

Slide 6

Slide 6 text

potatotips #24

Slide 7

Slide 7 text

potatotips #24

Slide 8

Slide 8 text

potatotips #24

Slide 9

Slide 9 text

potatotips #24

Slide 10

Slide 10 text

potatotips #24

Slide 11

Slide 11 text

potatotips #24

Slide 12

Slide 12 text

potatotips #24

Slide 13

Slide 13 text

potatotips #24 もれなく不採択だったので さっそく修行にきました

Slide 14

Slide 14 text

potatotips #24 今日するお話 リソースの整理整頓 potatotips #24

Slide 15

Slide 15 text

potatotips #24 大事なことは三つ  Lintで無駄なファイルを消す  Viewのxmlを共通化  Drawableリソースを再利用する リソースの整理整頓

Slide 16

Slide 16 text

potatotips #24 話すことはひとつ えっ...  Lintで無駄なファイルを消す →AndroidStudioで未使用のresourceを検出する(@konifar) | Qiita  Viewのxmlを共通化 →AndroidのView共通化方法まとめ(@konifar) | Qiita  Drawableリソースを再利用する リソースの整理整頓

Slide 17

Slide 17 text

よくあるケース potatotips #24

Slide 18

Slide 18 text

potatotips #24 よくあるケース

Slide 19

Slide 19 text

potatotips #24 よくあるケース

Slide 20

Slide 20 text

potatotips #24 よくあるケース

Slide 21

Slide 21 text

Drawableリソースを 一つにしたい potatotips #24

Slide 22

Slide 22 text

potatotips #24 Drawableリソースを 再利用してすっきりさせる potatotips #24

Slide 23

Slide 23 text

potatotips #24 Drawableリソースを再利用する サンプル作りました kaelaela/ResourceColorChangeSample

Slide 24

Slide 24 text

potatotips #24 Drawableリソースを再利用する やっていることは三つ  指定した色とリソースを取得  色の明度を40%下げる  ColorFilterでオーバーレイ

Slide 25

Slide 25 text

potatotips #24 Drawableリソースを再利用する 参考  Android ColorFilter を使う|Y.A.M の 雑記帳  RGBとHSV・HSBの相互変換ツール|PEKO STEP

Slide 26

Slide 26 text

potatotips #24 Demo potatotips #24

Slide 27

Slide 27 text

Thank you!