LoginSignup
9
8

More than 5 years have passed since last update.

xxxhdpiのAction Bar Icon Packを手に入れる

Last updated at Posted at 2014-11-15

※ただしIllustrator必須

ActionBar用のアイコンセットが公式で配布されているが、これにはxxhdpiまでの画像しか含まれていない。

Action Bar Icon Pack
https://developer.android.com/intl/ja/design/downloads/index.html#action-bar-icon-pack

しかし、このセットには任意のDPI用に書き出してくれるスクリプトが付属しているので、Illustratorさえ持っていれば簡単にxxxhdpiの画像も作れる。

手順

  1. Android_Design_Icons_20131106.zipをダウンロード
  2. 解凍し、中にあるAction_Bar_Icons_Export.jsxをテキストエディタで開く。
  3. 最初の部分に書き出し対象のDPI名と比率の設定があるので、そこにxxxhdpiを書き足す。

    Action_Bar_Icons_Export.jsx
    var DPIS = {
     'xxxhdpi': 4, // <- この行を書き足す
      'xxhdpi': 3,
       'xhdpi': 2,
        'hdpi': 1.5,
        'mdpi': 1
    };
    
  4. Illustratorを起動し、ファイル > スクリプト > その他のスクリプト からAction_Bar_Icons_Export.jsxを実行する。

  5. こういうディレクトリ構成で生成される

    Action Bar Icons/
    └── out/
        └── holo_dark/
            └── 01_core_accept/
                └── drawable-xxxhdpi/
                    └── ic_action_accept.png
    
9
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8