AutoRotateTextView

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 AutoRotateTextView

Constructors

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

Functions

onOrientationChange
Link copied to clipboard

Would be set by the OrientationSensor Event.

open fun onOrientationChange(screenOrientation: ScreenOrientation)