Class Overview
A ConstantState that can contain several Drawable
s.
This class was made public to enable testing, and its visibility may change in a future
release.
Summary
[Expand]
Inherited Methods |
From class
android.graphics.drawable.Drawable.ConstantState
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Methods
public
boolean
canApplyTheme
()
Return whether this constant state can have a theme applied.
public
synchronized
boolean
canConstantState
()
public
int
getChangingConfigurations
()
Return a bit mask of configuration changes that will impact
this drawable (and thus require completely reloading it).
public
final
Drawable
getChild
(int index)
public
final
int
getChildCount
()
public
final
int
getConstantHeight
()
public
final
int
getConstantMinimumHeight
()
public
final
int
getConstantMinimumWidth
()
public
final
Rect
getConstantPadding
()
public
final
int
getConstantWidth
()
public
final
int
getEnterFadeDuration
()
public
final
int
getExitFadeDuration
()
public
final
int
getOpacity
()
public
void
growArray
(int oldSize, int newSize)
public
final
boolean
isConstantSize
()
public
final
boolean
isStateful
()
public
final
void
setConstantSize
(boolean constant)
public
final
void
setEnterFadeDuration
(int duration)
public
final
void
setExitFadeDuration
(int duration)
public
final
void
setVariablePadding
(boolean variable)
A boolean value indicating whether to use the maximum padding value
of all frames in the set (false), or to use the padding value of the
frame being shown (true). Default value is false.
Protected Methods
protected
void
computeConstantSize
()