public class AutoRotateLayout extends RelativeLayout implements OrientationSensor.OrientationListener
Constructor and Description |
---|
AutoRotateLayout(Context context) |
AutoRotateLayout(Context context,
AttributeSet attrs) |
AutoRotateLayout(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected void |
onAttachedToWindow() |
protected void |
onDetachedFromWindow() |
void |
onOrientationChange(OrientationSensor.ScreenOrientation screenOrientation) |
public AutoRotateLayout(Context context)
public AutoRotateLayout(Context context, AttributeSet attrs)
public AutoRotateLayout(Context context, AttributeSet attrs, int defStyleAttr)
protected void onAttachedToWindow()
protected void onDetachedFromWindow()
public void onOrientationChange(@NonNull OrientationSensor.ScreenOrientation screenOrientation)
onOrientationChange
in interface OrientationSensor.OrientationListener