public class

StateListDrawableBuilder

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.utils.StateListDrawableBuilder

Class Overview

A builder class to programmatically create state list drawable

Summary

Public Constructors
StateListDrawableBuilder()
Public Methods
StateListDrawable build()
Builds a StateListDrawable using defined drawables in different states.
StateListDrawableBuilder setDisabledDrawable(Drawable disabledDrawable)
Sets the drawable in disabled state.
StateListDrawableBuilder setFocusedDrawable(Drawable focusedDrawable)
Sets the drawable in focused state.
StateListDrawableBuilder setHoveredDrawable(Drawable hoveredDrawable)
Sets the drawable in hovered state.
StateListDrawableBuilder setNormalDrawable(Drawable normalDrawable)
Sets the drawable in normal state.
StateListDrawableBuilder setPressedDrawable(Drawable pressedDrawable)
Sets the drawable in pressed state.
StateListDrawableBuilder setSelectedDrawable(Drawable selectedDrawable)
Sets the drawable in selected state.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public StateListDrawableBuilder ()

Public Methods

public StateListDrawable build ()

Builds a StateListDrawable using defined drawables in different states.

Returns
  • The StateListDrawable

public StateListDrawableBuilder setDisabledDrawable (Drawable disabledDrawable)

Sets the drawable in disabled state.

Parameters
disabledDrawable The drawable in disabled state
Returns
  • The class

public StateListDrawableBuilder setFocusedDrawable (Drawable focusedDrawable)

Sets the drawable in focused state.

Parameters
focusedDrawable The drawable in focused state
Returns
  • The class

public StateListDrawableBuilder setHoveredDrawable (Drawable hoveredDrawable)

Sets the drawable in hovered state.

Parameters
hoveredDrawable The drawable in hovered state
Returns
  • The class

public StateListDrawableBuilder setNormalDrawable (Drawable normalDrawable)

Sets the drawable in normal state.

Parameters
normalDrawable The drawable in normal state
Returns
  • The class

public StateListDrawableBuilder setPressedDrawable (Drawable pressedDrawable)

Sets the drawable in pressed state.

Parameters
pressedDrawable The drawable in pressed state
Returns
  • The class

public StateListDrawableBuilder setSelectedDrawable (Drawable selectedDrawable)

Sets the drawable in selected state.

Parameters
selectedDrawable The drawable in selected state
Returns
  • The class