aboutsummaryrefslogtreecommitdiffstats
path: root/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-08-28 16:07:37 -0700
committerTor Norbye <tnorbye@google.com>2011-09-01 13:56:56 -0700
commit71ca2b70f4c4d463be013ebf643d363b92ebd5f7 (patch)
tree7c2e0a36e74db222b0a963d47b32453f549ccce5 /assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java
parent59bddc5b09c091cfae54577ec36b16925b362b55 (diff)
downloadsdk-71ca2b70f4c4d463be013ebf643d363b92ebd5f7.zip
sdk-71ca2b70f4c4d463be013ebf643d363b92ebd5f7.tar.gz
sdk-71ca2b70f4c4d463be013ebf643d363b92ebd5f7.tar.bz2
Use project minimum SDK to generate fewer icons
This changeset makes the icon generator consider the project's minimum SDK version, to only create necessary icons. For example, by default the tab icon generator will generate different icons for v5 and newer and folder older icons. With this CL, if the minimum SDK is 5 or higher, then only the newer style icons are created (and they are placed in the default drawable folder instead of a -v5 version of the folder). Similarly, notification icons for v11, v9 and older are also created conditionally. Change-Id: Id96d572d4b8f23cd59d0f1b983c6aea85683eb0f
Diffstat (limited to 'assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java')
-rw-r--r--assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java b/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java
index dea6eeb..1c9fb29 100644
--- a/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java
+++ b/assetstudio/src/com/android/assetstudiolib/GraphicGenerator.java
@@ -47,8 +47,12 @@ public abstract class GraphicGenerator {
* Options used for all generators.
*/
public static class Options {
+ /** Minimum version (API level) of the SDK to generate icons for */
+ public int minSdk = 1;
+
/** Source image to use as a basis for the icon */
public BufferedImage sourceImage;
+
/** The density to generate the icon with */
public Density density = Density.XHIGH;
}