Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8ba3114 authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

Layoutlib: Add a constant for default density value.

Change-Id: I6dc8a694bbdae2385d4e877ea04a6b4325a5719e
parent b9b45a5e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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) {