The general idea is to get the width and height of the current screen. If width>height is horizontal screen, otherwise it is vertical screen. The specific operation has not been practiced yet, and the screenshot will be recorded for the time being.
Android development study notes (fourteen) horizontal screen and vertical screen state judgment
Guess you like
Origin blog.csdn.net/qq1198768105/article/details/113835532
Recommended
Ranking