Package org.robolectric.res
Class Qualifiers
java.lang.Object
org.robolectric.res.Qualifiers
Android qualifers as defined by
https://developer.android.com/guide/topics/resources/providing-resources.html
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addScreenWidth
(String qualifiers, int screenWidth) Deprecated.static String
addSmallestScreenWidth
(String qualifiers, int smallestScreenWidth) Deprecated.UseConfiguration.smallestScreenWidthDp
instead.static Qualifiers
fromParentDir
(Path parentDir) static String
getOrientation
(String qualifiers) Deprecated.UseConfiguration.orientation
instead.static int
getPlatformVersion
(String qualifiers) Deprecated.UseBuild.VERSION.SDK_INT
instead.static int
getScreenWidth
(String qualifiers) Deprecated.UseConfiguration.screenWidthDp
instead.static int
getSmallestScreenWidth
(String qualifiers) Deprecated.UseConfiguration.smallestScreenWidthDp
instead.static Qualifiers
static Qualifiers
toString()
-
Constructor Details
-
Qualifiers
-
-
Method Details
-
parse
-
parse
-
getConfig
-
toString
-
fromParentDir
-
getPlatformVersion
Deprecated.UseBuild.VERSION.SDK_INT
instead. -
getSmallestScreenWidth
Deprecated.UseConfiguration.smallestScreenWidthDp
instead. -
addSmallestScreenWidth
Deprecated.UseConfiguration.smallestScreenWidthDp
instead.If the Config already has asw
qualifier, do nothing. Otherwise, add asw
qualifier for the given width. -
getScreenWidth
Deprecated.UseConfiguration.screenWidthDp
instead. -
addScreenWidth
Deprecated.UseConfiguration.screenWidthDp
instead. -
getOrientation
Deprecated.UseConfiguration.orientation
instead.
-
Configuration.screenWidthDp
instead.