public class Qualifiers extends Object
Android qualifers as defined by https://developer.android.com/guide/topics/resources/providing-resources.html
Modifier | Constructor and Description |
---|---|
protected |
Qualifiers(String qualifiers,
ResTable_config config) |
Modifier and Type | Method and Description |
---|---|
static String |
addPlatformVersion(String qualifiers,
int apiLevel)
Deprecated.
Figure something else out.
|
static String |
addScreenWidth(String qualifiers,
int screenWidth)
Deprecated.
Use
Configuration.screenWidthDp instead. |
static String |
addSmallestScreenWidth(String qualifiers,
int smallestScreenWidth)
Deprecated.
Use
Configuration.smallestScreenWidthDp instead. |
static Qualifiers |
fromParentDir(Path parentDir) |
ResTable_config |
getConfig() |
static String |
getOrientation(String qualifiers)
Deprecated.
Use
Configuration.orientation instead. |
static int |
getPlatformVersion(String qualifiers)
Deprecated.
Use
Build.VERSION.SDK_INT instead. |
static int |
getScreenWidth(String qualifiers)
Deprecated.
Use
Configuration.screenWidthDp instead. |
static int |
getSmallestScreenWidth(String qualifiers)
Deprecated.
Use
Configuration.smallestScreenWidthDp instead. |
static Qualifiers |
parse(String qualifiers) |
static Qualifiers |
parse(String qualifiers,
boolean applyVersionForCompat) |
String |
toString() |
protected Qualifiers(String qualifiers, ResTable_config config)
public static Qualifiers parse(String qualifiers)
public static Qualifiers parse(String qualifiers, boolean applyVersionForCompat)
public ResTable_config getConfig()
public static Qualifiers fromParentDir(Path parentDir)
@Deprecated public static int getPlatformVersion(String qualifiers)
Build.VERSION.SDK_INT
instead.@Deprecated public static int getSmallestScreenWidth(String qualifiers)
Configuration.smallestScreenWidthDp
instead.@Deprecated public static String addPlatformVersion(String qualifiers, int apiLevel)
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()).
@Deprecated public static String addSmallestScreenWidth(String qualifiers, int smallestScreenWidth)
Configuration.smallestScreenWidthDp
instead.If the Config already has a sw
qualifier, do nothing. Otherwise, add a sw
qualifier for the given width.
@Deprecated public static int getScreenWidth(String qualifiers)
Configuration.screenWidthDp
instead.@Deprecated public static String addScreenWidth(String qualifiers, int screenWidth)
Configuration.screenWidthDp
instead.@Deprecated public static String getOrientation(String qualifiers)
Configuration.orientation
instead.