Google 致力于为黑人社区推动种族平等。查看具体举措

Openable

interface Openable
androidx.customview.widget.Openable

A layout that has two states: opened and closed.

Summary

Public methods
abstract Unit

Move the layout to the closed state.

abstract Boolean

Check if the layout is currently in the opened state.

abstract Unit

Move the layout to the opened state.

Public methods

close

abstract fun close(): Unit

Move the layout to the closed state.

isOpen

abstract fun isOpen(): Boolean

Check if the layout is currently in the opened state.

Return
Boolean true if the layout's state is considered opened.

open

abstract fun open(): Unit

Move the layout to the opened state.