public class AutoRotateImageSource extends ImageSourceView implements OrientationSensor.OrientationListener
Constructor and Description |
---|
AutoRotateImageSource(Context context) |
AutoRotateImageSource(Context context,
AttributeSet attrs) |
AutoRotateImageSource(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
void |
onOrientationChange(OrientationSensor.ScreenOrientation screenOrientation)
Would be set by the OrientationSensor Event.
|
drawableStateChanged, onSizeChanged, setImageBitmap, setImageResource, setImageSource
public AutoRotateImageSource(Context context)
public AutoRotateImageSource(Context context, AttributeSet attrs)
public AutoRotateImageSource(Context context, AttributeSet attrs, int defStyleAttr)
protected void onAttachedToWindow()
onAttachedToWindow
in class ImageSourceView
protected void onDetachedFromWindow()
onDetachedFromWindow
in class ImageSourceView
public void onOrientationChange(@NonNull OrientationSensor.ScreenOrientation screenOrientation)
onOrientationChange
in interface OrientationSensor.OrientationListener
screenOrientation
- Orientation set by Sensor.