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

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

Add density value to density enum.

This is going to be used as constant to both ADT classes and the
layoutlib.

This is integrated from the Eclair branch.
DO NOT MERGE.
parent a4e59dbb
Loading
Loading
Loading
Loading
+14 −1
Original line number Original line Diff line number Diff line
@@ -21,7 +21,20 @@ package com.android.layoutlib.api;
 */
 */
public interface IDensityBasedResourceValue extends IResourceValue {
public interface IDensityBasedResourceValue extends IResourceValue {
    public static enum Density {
    public static enum Density {
        HIGH, MEDIUM, LOW, NODPI;
        HIGH(240),
        MEDIUM(160),
        LOW(120),
        NODPI(0);

        private final int mValue;

        Density(int value) {
            mValue = value;
        }

        public int getValue() {
            return mValue;
        }
    }
    }


    /**
    /**