Class Qualifiers

java.lang.Object
org.robolectric.res.Qualifiers

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

  • Method Details

    • parse

      public static Qualifiers parse(String qualifiers)
    • parse

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

      public ResTable_config getConfig()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.
    • 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.