diff options
-rw-r--r-- | tools/layoutlib/api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/layoutlib/api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java b/tools/layoutlib/api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java index 7128032..57a776f 100644 --- a/tools/layoutlib/api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java +++ b/tools/layoutlib/api/src/com/android/layoutlib/api/IDensityBasedResourceValue.java @@ -20,12 +20,15 @@ package com.android.layoutlib.api; * Represents an Android Resources that has a density info attached to it. */ public interface IDensityBasedResourceValue extends IResourceValue { + public static enum Density { HIGH(240), MEDIUM(160), LOW(120), NODPI(0); + public final static int DEFAULT_DENSITY = 160; + private final int mValue; Density(int value) { |