public class Qualifiers
extends java.lang.Object
Android qualifers as defined by https://developer.android.com/guide/topics/resources/providing-resources.html
Modifier | Constructor and Description |
---|---|
protected |
Qualifiers(java.lang.String qualifiers,
ResTable_config config) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addPlatformVersion(java.lang.String qualifiers,
int apiLevel)
Deprecated.
Figure something else out.
|
static java.lang.String |
addScreenWidth(java.lang.String qualifiers,
int screenWidth)
Deprecated.
Use
Configuration.screenWidthDp instead. |
static java.lang.String |
addSmallestScreenWidth(java.lang.String qualifiers,
int smallestScreenWidth)
Deprecated.
Use
Configuration.smallestScreenWidthDp instead. |
static Qualifiers |
fromParentDir(FsFile parentDir) |
ResTable_config |
getConfig() |
static java.lang.String |
getOrientation(java.lang.String qualifiers)
Deprecated.
Use
Configuration.orientation instead. |
static int |
getPlatformVersion(java.lang.String qualifiers)
Deprecated.
Use
Build.VERSION.SDK_INT instead. |
static int |
getScreenWidth(java.lang.String qualifiers)
Deprecated.
Use
Configuration.screenWidthDp instead. |
static int |
getSmallestScreenWidth(java.lang.String qualifiers)
Deprecated.
Use
Configuration.smallestScreenWidthDp instead. |
static Qualifiers |
parse(java.lang.String qualifiers) |
static Qualifiers |
parse(java.lang.String qualifiers,
boolean applyVersionForCompat) |
java.lang.String |
toString() |
protected Qualifiers(java.lang.String qualifiers, ResTable_config config)
public static Qualifiers parse(java.lang.String qualifiers)
public static Qualifiers parse(java.lang.String qualifiers, boolean applyVersionForCompat)
public ResTable_config getConfig()
public java.lang.String toString()
toString
in class java.lang.Object
public static Qualifiers fromParentDir(FsFile parentDir)
@Deprecated public static int getPlatformVersion(java.lang.String qualifiers)
Build.VERSION.SDK_INT
instead.@Deprecated public static int getSmallestScreenWidth(java.lang.String qualifiers)
Configuration.smallestScreenWidthDp
instead.@Deprecated public static java.lang.String addPlatformVersion(java.lang.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 java.lang.String addSmallestScreenWidth(java.lang.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(java.lang.String qualifiers)
Configuration.screenWidthDp
instead.@Deprecated public static java.lang.String addScreenWidth(java.lang.String qualifiers, int screenWidth)
Configuration.screenWidthDp
instead.@Deprecated public static java.lang.String getOrientation(java.lang.String qualifiers)
Configuration.orientation
instead.