android.content.res
Class Configuration

java.lang.Object
  extended by android.content.res.Configuration
All Implemented Interfaces:
Parcelable, Comparable<Configuration>

public final class Configuration
extends Object
implements Parcelable, Comparable<Configuration>


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Configuration> CREATOR
           
 float fontScale
           
 int hardKeyboardHidden
           
static int HARDKEYBOARDHIDDEN_NO
           
static int HARDKEYBOARDHIDDEN_UNDEFINED
           
static int HARDKEYBOARDHIDDEN_YES
           
 int keyboard
           
static int KEYBOARD_12KEY
           
static int KEYBOARD_NOKEYS
           
static int KEYBOARD_QWERTY
           
static int KEYBOARD_UNDEFINED
           
 int keyboardHidden
           
static int KEYBOARDHIDDEN_NO
           
static int KEYBOARDHIDDEN_UNDEFINED
           
static int KEYBOARDHIDDEN_YES
           
 Locale locale
           
 int mcc
           
 int mnc
           
 int navigation
           
static int NAVIGATION_DPAD
           
static int NAVIGATION_NONAV
           
static int NAVIGATION_TRACKBALL
           
static int NAVIGATION_UNDEFINED
           
static int NAVIGATION_WHEEL
           
 int navigationHidden
           
static int NAVIGATIONHIDDEN_NO
           
static int NAVIGATIONHIDDEN_UNDEFINED
           
static int NAVIGATIONHIDDEN_YES
           
 int orientation
           
static int ORIENTATION_LANDSCAPE
           
static int ORIENTATION_PORTRAIT
           
static int ORIENTATION_SQUARE
           
static int ORIENTATION_UNDEFINED
           
static int SCREEN_HEIGHT_DP_UNDEFINED
           
static int SCREEN_WIDTH_DP_UNDEFINED
           
 int screenHeightDp
           
 int screenLayout
           
static int SCREENLAYOUT_LONG_MASK
           
static int SCREENLAYOUT_LONG_NO
           
static int SCREENLAYOUT_LONG_UNDEFINED
           
static int SCREENLAYOUT_LONG_YES
           
static int SCREENLAYOUT_SIZE_LARGE
           
static int SCREENLAYOUT_SIZE_MASK
           
static int SCREENLAYOUT_SIZE_NORMAL
           
static int SCREENLAYOUT_SIZE_SMALL
           
static int SCREENLAYOUT_SIZE_UNDEFINED
           
static int SCREENLAYOUT_SIZE_XLARGE
           
 int screenWidthDp
           
static int SMALLEST_SCREEN_WIDTH_DP_UNDEFINED
           
 int smallestScreenWidthDp
           
 int touchscreen
           
static int TOUCHSCREEN_FINGER
           
static int TOUCHSCREEN_NOTOUCH
           
static int TOUCHSCREEN_STYLUS
           
static int TOUCHSCREEN_UNDEFINED
           
static int UI_MODE_NIGHT_MASK
           
static int UI_MODE_NIGHT_NO
           
static int UI_MODE_NIGHT_UNDEFINED
           
static int UI_MODE_NIGHT_YES
           
static int UI_MODE_TYPE_CAR
           
static int UI_MODE_TYPE_DESK
           
static int UI_MODE_TYPE_MASK
           
static int UI_MODE_TYPE_NORMAL
           
static int UI_MODE_TYPE_TELEVISION
           
static int UI_MODE_TYPE_UNDEFINED
           
 int uiMode
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Configuration()
           
Configuration(Configuration o)
           
 
Method Summary
 int compareTo(Configuration that)
           
 int describeContents()
           
 int diff(Configuration delta)
           
 boolean equals(Configuration that)
           
 boolean equals(Object that)
           
 int hashCode()
           
 boolean isLayoutSizeAtLeast(int size)
           
static boolean needNewResources(int configChanges, int interestingChanges)
           
 void readFromParcel(Parcel source)
           
 void setTo(Configuration o)
           
 void setToDefaults()
           
 String toString()
           
 int updateFrom(Configuration delta)
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fontScale

public float fontScale

mcc

public int mcc

mnc

public int mnc

locale

public Locale locale

SCREENLAYOUT_SIZE_MASK

public static final int SCREENLAYOUT_SIZE_MASK
See Also:
Constant Field Values

SCREENLAYOUT_SIZE_UNDEFINED

public static final int SCREENLAYOUT_SIZE_UNDEFINED
See Also:
Constant Field Values

SCREENLAYOUT_SIZE_SMALL

public static final int SCREENLAYOUT_SIZE_SMALL
See Also:
Constant Field Values

SCREENLAYOUT_SIZE_NORMAL

public static final int SCREENLAYOUT_SIZE_NORMAL
See Also:
Constant Field Values

SCREENLAYOUT_SIZE_LARGE

public static final int SCREENLAYOUT_SIZE_LARGE
See Also:
Constant Field Values

SCREENLAYOUT_SIZE_XLARGE

public static final int SCREENLAYOUT_SIZE_XLARGE
See Also:
Constant Field Values

SCREENLAYOUT_LONG_MASK

public static final int SCREENLAYOUT_LONG_MASK
See Also:
Constant Field Values

SCREENLAYOUT_LONG_UNDEFINED

public static final int SCREENLAYOUT_LONG_UNDEFINED
See Also:
Constant Field Values

SCREENLAYOUT_LONG_NO

public static final int SCREENLAYOUT_LONG_NO
See Also:
Constant Field Values

SCREENLAYOUT_LONG_YES

public static final int SCREENLAYOUT_LONG_YES
See Also:
Constant Field Values

screenLayout

public int screenLayout

TOUCHSCREEN_UNDEFINED

public static final int TOUCHSCREEN_UNDEFINED
See Also:
Constant Field Values

TOUCHSCREEN_NOTOUCH

public static final int TOUCHSCREEN_NOTOUCH
See Also:
Constant Field Values

TOUCHSCREEN_STYLUS

public static final int TOUCHSCREEN_STYLUS
See Also:
Constant Field Values

TOUCHSCREEN_FINGER

public static final int TOUCHSCREEN_FINGER
See Also:
Constant Field Values

touchscreen

public int touchscreen

KEYBOARD_UNDEFINED

public static final int KEYBOARD_UNDEFINED
See Also:
Constant Field Values

KEYBOARD_NOKEYS

public static final int KEYBOARD_NOKEYS
See Also:
Constant Field Values

KEYBOARD_QWERTY

public static final int KEYBOARD_QWERTY
See Also:
Constant Field Values

KEYBOARD_12KEY

public static final int KEYBOARD_12KEY
See Also:
Constant Field Values

keyboard

public int keyboard

KEYBOARDHIDDEN_UNDEFINED

public static final int KEYBOARDHIDDEN_UNDEFINED
See Also:
Constant Field Values

KEYBOARDHIDDEN_NO

public static final int KEYBOARDHIDDEN_NO
See Also:
Constant Field Values

KEYBOARDHIDDEN_YES

public static final int KEYBOARDHIDDEN_YES
See Also:
Constant Field Values

keyboardHidden

public int keyboardHidden

HARDKEYBOARDHIDDEN_UNDEFINED

public static final int HARDKEYBOARDHIDDEN_UNDEFINED
See Also:
Constant Field Values

HARDKEYBOARDHIDDEN_NO

public static final int HARDKEYBOARDHIDDEN_NO
See Also:
Constant Field Values

HARDKEYBOARDHIDDEN_YES

public static final int HARDKEYBOARDHIDDEN_YES
See Also:
Constant Field Values

hardKeyboardHidden

public int hardKeyboardHidden

NAVIGATION_UNDEFINED

public static final int NAVIGATION_UNDEFINED
See Also:
Constant Field Values

NAVIGATION_NONAV

public static final int NAVIGATION_NONAV
See Also:
Constant Field Values

NAVIGATION_DPAD

public static final int NAVIGATION_DPAD
See Also:
Constant Field Values

NAVIGATION_TRACKBALL

public static final int NAVIGATION_TRACKBALL
See Also:
Constant Field Values

NAVIGATION_WHEEL

public static final int NAVIGATION_WHEEL
See Also:
Constant Field Values

navigation

public int navigation

NAVIGATIONHIDDEN_UNDEFINED

public static final int NAVIGATIONHIDDEN_UNDEFINED
See Also:
Constant Field Values

NAVIGATIONHIDDEN_NO

public static final int NAVIGATIONHIDDEN_NO
See Also:
Constant Field Values

NAVIGATIONHIDDEN_YES

public static final int NAVIGATIONHIDDEN_YES
See Also:
Constant Field Values

navigationHidden

public int navigationHidden

ORIENTATION_UNDEFINED

public static final int ORIENTATION_UNDEFINED
See Also:
Constant Field Values

ORIENTATION_PORTRAIT

public static final int ORIENTATION_PORTRAIT
See Also:
Constant Field Values

ORIENTATION_LANDSCAPE

public static final int ORIENTATION_LANDSCAPE
See Also:
Constant Field Values

ORIENTATION_SQUARE

public static final int ORIENTATION_SQUARE
See Also:
Constant Field Values

orientation

public int orientation

UI_MODE_TYPE_MASK

public static final int UI_MODE_TYPE_MASK
See Also:
Constant Field Values

UI_MODE_TYPE_UNDEFINED

public static final int UI_MODE_TYPE_UNDEFINED
See Also:
Constant Field Values

UI_MODE_TYPE_NORMAL

public static final int UI_MODE_TYPE_NORMAL
See Also:
Constant Field Values

UI_MODE_TYPE_DESK

public static final int UI_MODE_TYPE_DESK
See Also:
Constant Field Values

UI_MODE_TYPE_CAR

public static final int UI_MODE_TYPE_CAR
See Also:
Constant Field Values

UI_MODE_TYPE_TELEVISION

public static final int UI_MODE_TYPE_TELEVISION
See Also:
Constant Field Values

UI_MODE_NIGHT_MASK

public static final int UI_MODE_NIGHT_MASK
See Also:
Constant Field Values

UI_MODE_NIGHT_UNDEFINED

public static final int UI_MODE_NIGHT_UNDEFINED
See Also:
Constant Field Values

UI_MODE_NIGHT_NO

public static final int UI_MODE_NIGHT_NO
See Also:
Constant Field Values

UI_MODE_NIGHT_YES

public static final int UI_MODE_NIGHT_YES
See Also:
Constant Field Values

uiMode

public int uiMode

SCREEN_WIDTH_DP_UNDEFINED

public static final int SCREEN_WIDTH_DP_UNDEFINED
See Also:
Constant Field Values

screenWidthDp

public int screenWidthDp

SCREEN_HEIGHT_DP_UNDEFINED

public static final int SCREEN_HEIGHT_DP_UNDEFINED
See Also:
Constant Field Values

screenHeightDp

public int screenHeightDp

SMALLEST_SCREEN_WIDTH_DP_UNDEFINED

public static final int SMALLEST_SCREEN_WIDTH_DP_UNDEFINED
See Also:
Constant Field Values

smallestScreenWidthDp

public int smallestScreenWidthDp

CREATOR

public static final Parcelable.Creator<Configuration> CREATOR
Constructor Detail

Configuration

public Configuration()

Configuration

public Configuration(Configuration o)
Method Detail

isLayoutSizeAtLeast

public boolean isLayoutSizeAtLeast(int size)

setTo

public void setTo(Configuration o)

toString

public String toString()
Overrides:
toString in class Object

setToDefaults

public void setToDefaults()

updateFrom

public int updateFrom(Configuration delta)

diff

public int diff(Configuration delta)

needNewResources

public static boolean needNewResources(int configChanges,
                                       int interestingChanges)

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

readFromParcel

public void readFromParcel(Parcel source)

compareTo

public int compareTo(Configuration that)
Specified by:
compareTo in interface Comparable<Configuration>

equals

public boolean equals(Configuration that)

equals

public boolean equals(Object that)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2008-2012. All Rights Reserved.