ShadowOverlayHelper.Builder
public
static
final
class
ShadowOverlayHelper.Builder
extends Object
java.lang.Object
|
↳ |
android.support.v17.leanback.widget.ShadowOverlayHelper.Builder
|
Builder for creating ShadowOverlayHelper.
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long millis, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long millis)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Public constructors
ShadowOverlayHelper.Builder
ShadowOverlayHelper.Builder ()
Public methods
build
ShadowOverlayHelper build (Context context)
Create ShadowOverlayHelper object
Parameters |
context |
Context :
The context uses to read Resources settings. |
keepForegroundDrawable
ShadowOverlayHelper.Builder keepForegroundDrawable (boolean keepForegroundDrawable)
Set if not using foreground drawable for overlay color. For example if
the view has already assigned a foreground drawable for other purposes.
When it's true, helper will use a ShadowOverlayContainer for overlay color.
Parameters |
keepForegroundDrawable |
boolean :
True to keep the original foreground drawable. |
needsOverlay
ShadowOverlayHelper.Builder needsOverlay (boolean needsOverlay)
Set if needs overlay color.
Parameters |
needsOverlay |
boolean :
True if needs overlay. |
needsRoundedCorner
ShadowOverlayHelper.Builder needsRoundedCorner (boolean needsRoundedCorner)
Set if needs rounded corner.
Parameters |
needsRoundedCorner |
boolean :
True if needs rounded corner. |
needsShadow
ShadowOverlayHelper.Builder needsShadow (boolean needsShadow)
Set if needs shadow.
Parameters |
needsShadow |
boolean :
True if needs shadow. |
preferZOrder
ShadowOverlayHelper.Builder preferZOrder (boolean preferZOrder)
Set if prefer z-order shadow. On old devices, z-order shadow might be slow,
set to false to fall back to static 9-patch shadow. Recommend to read
from system wide Setting value: see Settings
.
Parameters |
preferZOrder |
boolean :
True if prefer Z shadow. Default is true. |