Skip to content

Sketch plugin that automatically generates MDPI, HDPI, XHDPI, XXHDPI, and XXXHDPI Android assets.

License

Notifications You must be signed in to change notification settings

todoriliev/generate-android-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Generate Android Assets

This Sketch plugin automatically generates all Android assets (MDPI, HDPI, XHDPI, XXHDPI, and XXXHDPI) and drawable folders by using your XXHDPI layout design.

You can use Jonathan Chen's XXHDPI Android GUI template for starters.

Installation

  1. Navigate the Sketch menu bar to Plugins ▸ Reveal Plugins Folder...
  2. Unzip and place the generate-android-assets folder into the revealed plugins directory. You can rename generate-android-assets to Generate Android Assets
  3. You should find the Generate Android Assets ▸ From XXHDPI function under the Plugins menu in Sketch

Usage

  1. Select the Sketch layer(s) you want to export
  2. Navigate the Sketch menu bar to Plugins ▸ Generate Android Assets ▸ From XXHDPI
  3. Select the folder where you want to generate the five drawable folders and place the assets
  4. You should see the following folders:
  • drawable-mdpi
  • drawable-hdpi
  • drawable-xhdpi
  • drawable-xxhdpi
  • drawable-xxxhdpi

Assumptions

The plugin assumes you design your layouts in XXHDPI, which means 3px = 1dp

Other Android App Design Resources

If you are starting your first Android design, you might find the following links helpful:

Credits

Many thanks to Marius Mathiesen, the original creator.

Jonathan E. Chen, the creator of the Android GUI template for Sketch.

About

Sketch plugin that automatically generates MDPI, HDPI, XHDPI, XXHDPI, and XXXHDPI Android assets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published