Hello everyone, I have been doing landscape or portrait layout, the layout had to switch screens have not done, a lot of the Internet, said the layout of the file to write two, I feel that although some benefits, but what should be achieved in two, we have no good way or examples, please share<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
If you really can not do it, put the horizontal screen to ban
android: screenOrientation = "portrait"
Reply:
There is a more "lazy" approach, with ScrollView, so just write the layout of vertical screen, horizontal screen time is the same, but you can slide up and down.
ScrollView can be written in the outermost layer of your layout.
android: layout_width = "match_parent"
android: layout_height = "match_parent"
>android: layout_width = "match_parent"
android: layout_height = "match_parent"
android: orientation = "vertical"
>
. . . . . . . . .
Reply:
It is not, it will use two layouts, there is no good way to what
Reply:
The on-screen adaptation principles and almost
Reply:
Get some good layout compatibility
No comments:
Post a Comment