Package org.robolectric.res
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 SummaryConstructors Modifier Constructor Description protectedQualifiers(String qualifiers, ResTable_config config)
- 
Method SummaryModifier and Type Method Description static StringaddPlatformVersion(String qualifiers, int apiLevel)Deprecated.Figure something else out.static StringaddScreenWidth(String qualifiers, int screenWidth)Deprecated.UseConfiguration.screenWidthDpinstead.static StringaddSmallestScreenWidth(String qualifiers, int smallestScreenWidth)Deprecated.UseConfiguration.smallestScreenWidthDpinstead.static QualifiersfromParentDir(Path parentDir)ResTable_configgetConfig()static StringgetOrientation(String qualifiers)Deprecated.UseConfiguration.orientationinstead.static intgetPlatformVersion(String qualifiers)Deprecated.UseBuild.VERSION.SDK_INTinstead.static intgetScreenWidth(String qualifiers)Deprecated.UseConfiguration.screenWidthDpinstead.static intgetSmallestScreenWidth(String qualifiers)Deprecated.UseConfiguration.smallestScreenWidthDpinstead.static Qualifiersparse(String qualifiers)static Qualifiersparse(String qualifiers, boolean applyVersionForCompat)StringtoString()
- 
Constructor Details
- 
Method Details- 
parse
- 
parse
- 
getConfig
- 
toString
- 
fromParentDir
- 
getPlatformVersionDeprecated.UseBuild.VERSION.SDK_INTinstead.
- 
getSmallestScreenWidthDeprecated.UseConfiguration.smallestScreenWidthDpinstead.
- 
addPlatformVersionDeprecated.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.UseConfiguration.smallestScreenWidthDpinstead.If the Config already has aswqualifier, do nothing. Otherwise, add aswqualifier for the given width.
- 
getScreenWidthDeprecated.UseConfiguration.screenWidthDpinstead.
- 
addScreenWidthDeprecated.UseConfiguration.screenWidthDpinstead.
- 
getOrientationDeprecated.UseConfiguration.orientationinstead.
 
-