Class Qualifiers


  • public class Qualifiers
    extends Object
    Android qualifers as defined by https://developer.android.com/guide/topics/resources/providing-resources.html
    • Method Detail

      • parse

        public static Qualifiers parse​(String qualifiers,
                                       boolean applyVersionForCompat)
      • fromParentDir

        public static Qualifiers fromParentDir​(Path parentDir)
      • getPlatformVersion

        @Deprecated
        public static int getPlatformVersion​(String qualifiers)
        Deprecated.
        Use android.os.Build.VERSION#SDK_INT instead.
      • getSmallestScreenWidth

        @Deprecated
        public static int getSmallestScreenWidth​(String qualifiers)
        Deprecated.
        Use android.content.res.Configuration#smallestScreenWidthDp instead.
      • addPlatformVersion

        @Deprecated
        public static String addPlatformVersion​(String qualifiers,
                                                int apiLevel)
        Deprecated.
        Figure something else out.
        If the Config already has a version qualifier, do nothing. Otherwise, add a version qualifier for the target api level (which comes from the manifest or Config.sdk()).
      • addSmallestScreenWidth

        @Deprecated
        public static String addSmallestScreenWidth​(String qualifiers,
                                                    int smallestScreenWidth)
        Deprecated.
        Use android.content.res.Configuration#smallestScreenWidthDp instead.
        If the Config already has a sw qualifier, do nothing. Otherwise, add a sw qualifier for the given width.
      • getScreenWidth

        @Deprecated
        public static int getScreenWidth​(String qualifiers)
        Deprecated.
        Use android.content.res.Configuration#screenWidthDp instead.
      • addScreenWidth

        @Deprecated
        public static String addScreenWidth​(String qualifiers,
                                            int screenWidth)
        Deprecated.
        Use android.content.res.Configuration#screenWidthDp instead.
      • getOrientation

        @Deprecated
        public static String getOrientation​(String qualifiers)
        Deprecated.
        Use android.content.res.Configuration#orientation instead.