CustomSpinner

public final class CustomSpinner extends AppCompatSpinner

CustomSpinner is a class that extends AppCompatSpinner and allows for custom spinner events

Constructors

Link copied to clipboard

Types

Link copied to clipboard
public interface SpinnerEventsListener

SpinnerEventsListener is an interface that listens for spinner events

Properties

Link copied to clipboard
private Boolean isOpen

isOpen is a boolean that tracks if the spinner is open

Link copied to clipboard

listener is a SpinnerEventsListener that listens for spinner events

Functions

Link copied to clipboard

listener is a SpinnerEventsListener that listens for spinner events

Link copied to clipboard
private final Boolean isOpen()

isOpen is a boolean that tracks if the spinner is open

Link copied to clipboard
public Unit onWindowFocusChanged(Boolean hasWindowFocus)
Link copied to clipboard

performClick is called when the spinner is clicked

Link copied to clipboard

listener is a SpinnerEventsListener that listens for spinner events

Link copied to clipboard
private final Unit setOpen(Boolean isOpen)

isOpen is a boolean that tracks if the spinner is open

Link copied to clipboard

setSpinnerEventsListener sets the listener for spinner events