Java android.content.res Configuration fields, constructors, methods, implement or subclass

Example usage for Java android.content.res Configuration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content.res Configuration.

The text is from its open source code.

Field

intSCREENLAYOUT_SIZE_MASK
Constant for #screenLayout : bits that encode the size.
intSCREENLAYOUT_SIZE_UNDEFINED
Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating that no size has been set.
intSCREENLAYOUT_SIZE_SMALL
Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating the screen is at least approximately 320x426 dp units, corresponds to the small resource qualifier.
intSCREENLAYOUT_SIZE_NORMAL
Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating the screen is at least approximately 320x470 dp units, corresponds to the normal resource qualifier.
intSCREENLAYOUT_SIZE_LARGE
Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating the screen is at least approximately 480x640 dp units, corresponds to the large resource qualifier.
intSCREENLAYOUT_SIZE_XLARGE
Constant for #screenLayout : a #SCREENLAYOUT_SIZE_MASK value indicating the screen is at least approximately 720x960 dp units, corresponds to the xlarge resource qualifier.
intSCREENLAYOUT_LONG_MASK
Constant for #screenLayout : bits that encode the aspect ratio.
intSCREENLAYOUT_LONG_NO
Constant for #screenLayout : a #SCREENLAYOUT_LONG_MASK value that corresponds to the notlong resource qualifier.
intSCREENLAYOUT_LONG_YES
Constant for #screenLayout : a #SCREENLAYOUT_LONG_MASK value that corresponds to the long resource qualifier.
intSCREENLAYOUT_LAYOUTDIR_MASK
Constant for #screenLayout : bits that encode the layout direction.
intSCREENLAYOUT_LAYOUTDIR_LTR
Constant for #screenLayout : a #SCREENLAYOUT_LAYOUTDIR_MASK value indicating that a layout dir has been set to LTR.
intSCREENLAYOUT_LAYOUTDIR_RTL
Constant for #screenLayout : a #SCREENLAYOUT_LAYOUTDIR_MASK value indicating that a layout dir has been set to RTL.
intTOUCHSCREEN_UNDEFINED
Constant for #touchscreen : a value indicating that no value has been set.
intTOUCHSCREEN_NOTOUCH
Constant for #touchscreen , value corresponding to the notouch resource qualifier.
intTOUCHSCREEN_FINGER
Constant for #touchscreen , value corresponding to the finger resource qualifier.
intKEYBOARD_UNDEFINED
Constant for #keyboard : a value indicating that no value has been set.
intKEYBOARD_NOKEYS
Constant for #keyboard , value corresponding to the nokeys resource qualifier.
intKEYBOARD_QWERTY
Constant for #keyboard , value corresponding to the qwerty resource qualifier.
intKEYBOARDHIDDEN_NO
Constant for #keyboardHidden , value corresponding to the keysexposed resource qualifier.
intKEYBOARDHIDDEN_YES
Constant for #keyboardHidden , value corresponding to the keyshidden resource qualifier.
intHARDKEYBOARDHIDDEN_UNDEFINED
Constant for #hardKeyboardHidden : a value indicating that no value has been set.
intHARDKEYBOARDHIDDEN_NO
Constant for #hardKeyboardHidden , value corresponding to the physical keyboard being exposed.
intHARDKEYBOARDHIDDEN_YES
Constant for #hardKeyboardHidden , value corresponding to the physical keyboard being hidden.
intNAVIGATION_UNDEFINED
Constant for #navigation : a value indicating that no value has been set.
intNAVIGATION_NONAV
Constant for #navigation , value corresponding to the nonav resource qualifier.
intNAVIGATION_DPAD
Constant for #navigation , value corresponding to the dpad resource qualifier.
intNAVIGATIONHIDDEN_YES
Constant for #navigationHidden , value corresponding to the navhidden resource qualifier.
intORIENTATION_UNDEFINED
Constant for #orientation : a value indicating that no value has been set.
intORIENTATION_PORTRAIT
Constant for #orientation , value corresponding to the port resource qualifier.
intORIENTATION_LANDSCAPE
Constant for #orientation , value corresponding to the land resource qualifier.
intORIENTATION_SQUARE
intUI_MODE_TYPE_MASK
Constant for #uiMode : bits that encode the mode type.
intUI_MODE_TYPE_NORMAL
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to no UI mode resource qualifier specified.
intUI_MODE_TYPE_DESK
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to the desk resource qualifier.
intUI_MODE_TYPE_CAR
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to the car resource qualifier.
intUI_MODE_TYPE_TELEVISION
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to the television resource qualifier.
intUI_MODE_TYPE_APPLIANCE
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to the appliance resource qualifier.
intUI_MODE_TYPE_WATCH
Constant for #uiMode : a #UI_MODE_TYPE_MASK value that corresponds to the watch resource qualifier.
intUI_MODE_NIGHT_MASK
Constant for #uiMode : bits that encode the night mode.
intUI_MODE_NIGHT_UNDEFINED
Constant for #uiMode : a #UI_MODE_NIGHT_MASK value indicating that no mode type has been set.
intUI_MODE_NIGHT_NO
Constant for #uiMode : a #UI_MODE_NIGHT_MASK value that corresponds to the notnight resource qualifier.
intUI_MODE_NIGHT_YES
Constant for #uiMode : a #UI_MODE_NIGHT_MASK value that corresponds to the night resource qualifier.
intSCREEN_WIDTH_DP_UNDEFINED
Default value for #screenWidthDp indicating that no width has been specified.
intSCREEN_HEIGHT_DP_UNDEFINED
Default value for #screenHeightDp indicating that no width has been specified.
intNATIVE_CONFIG_VERSION

Constructor

Configuration(Configuration o)
Makes a deep copy suitable for modification.
Configuration(Parcel source)
Construct this Configuration object, reading from the Parcel.
Configuration()

Construct an invalid Configuration.

Method

intdiff(Configuration delta)
Return a bit mask of the differences between this Configuration object and the given one.
ClassgetClass()
Returns the runtime class of this Object .
intgetLayoutDirection()
Return the layout direction.
LocaleListgetLocales()
Get the locale list.
voidsetLayoutDirection(Locale loc)
Set the layout direction from a Locale.
voidsetLocale(@Nullable Locale loc)
Set the locale list to a list of just one locale.
voidsetLocales(@Nullable LocaleList locales)
Set the locale list.
voidsetToDefaults()
Set this object to the system defaults.
StringtoString()