open class AutoRotateTextView : TextView, OrientationSensor.OrientationListener
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.
AutoRotateTextView(context: Context!) AutoRotateTextView(context: Context!, attrs: AttributeSet!) AutoRotateTextView(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) |
open fun onAttachedToWindow(): Unit |
|
open fun onDetachedFromWindow(): Unit |
|
open fun onDraw(canvas: Canvas!): Unit |
|
open fun onOrientationChange(screenOrientation: OrientationSensor.ScreenOrientation!): Unit
Would be set by the OrientationSensor Event. |