setLandscape

fun Activity.setLandscape(isLandscape: Boolean = true)

切横竖屏

Parameters

isLandscape

true: 横屏;false: 竖屏