setPortrait

fun Activity.setPortrait(isPortrait: Boolean = true)

切横竖屏

Parameters

isPortrait

true: 竖屏;false: 横屏