Skip to content

Assets, Resources & Theming

Tan Jun Rong edited this page Jan 8, 2019 · 1 revision

SVG resources is preferrred since VectorDrawableCompat can enough to support for the min sdk version 21 in this app. SVG icons can be found in the material site.

If custom icons are needed, vector graphics can be created by Sketch(paid, cheaper), Adobe Illustrator (paid, expensive) or Inkscape (free).

The steps for creating usable vector drawable is roughly:

  • create your design using any design tools mentioned above (or any other tools)
  • export as svg
  • import svg into Android Studio, this will turn into a drawable xml
  • use drawable in ImageView like here
Theming

Since theming is fun, so this app is built with the capability to change theme in the future. To achieve, don't use resources directly.

Don't 👇 🙅‍♀️
android:background="@color/blue"

Do 😃 android:background="?pixelBackgroundColor"