diff options
author | Xavier Ducrohet <xav@android.com> | 2009-12-11 14:20:54 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2009-12-11 14:20:54 -0800 |
commit | a8ba3114e801282cf375c3ea2332164a52cb3813 (patch) | |
tree | ebceb8fb644efd11a43bf7e1526186378bc9d0d4 /tools/layoutlib | |
parent | b9b45a5e26ed020a39a507a173d9f29e336cf989 (diff) | |
download | frameworks_base-a8ba3114e801282cf375c3ea2332164a52cb3813.zip frameworks_base-a8ba3114e801282cf375c3ea2332164a52cb3813.tar.gz frameworks_base-a8ba3114e801282cf375c3ea2332164a52cb3813.tar.bz2 |
Layoutlib: Add a constant for default density value.
Change-Id: I6dc8a694bbdae2385d4e877ea04a6b4325a5719e
Diffstat (limited to 'tools/layoutlib')
-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) { |