AutoRotateLayout

Rotate on device rotation it use the OrientationSensor Class. To use it the OrientationSensor must be start on Activity resume and stop on Activity pause.

open class AutoRotateLayout

Constructors

AutoRotateLayout
Link copied to clipboard
open fun AutoRotateLayout(context: Context)
AutoRotateLayout
Link copied to clipboard
open fun AutoRotateLayout(context: Context, attrs: AttributeSet)
AutoRotateLayout
Link copied to clipboard
open fun AutoRotateLayout(context: Context, attrs: AttributeSet, defStyleAttr: Int)

Functions

onOrientationChange
Link copied to clipboard
open fun onOrientationChange(screenOrientation: ScreenOrientation)