Thursday, February 27, 2014
android2.3.4 horizontal screen vertical screen switch problem
We screen resolution is 800 * 480 resolution, horizontal screen, but the 2.3 system is developed for the vertical screen, we rotate the direction gsensor, but there will be some problem flipping the direction of the game.
I think the program: a 480 * 800 screen changed, so android considered a vertical screen. However lcd driver does not support 90-degree flip, change the resolution will result in a mandatory half-screen display
Two. Modify the logic of the upper display system is more complex, according to the method tried online or not.
Demand has had relevant experience in the development of the heroes! The ultimate goal is to make the android system that I was vertical screen! Or directly change the horizontal screen vertical screen, do not flip the bug appears some gsensor<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Set vertical screen and switch the screen anyway ban:
In AndroidManifest.xml, and add to each Activity:
android: screenOrientation = "portrait"
android: configChanges = "keyboardHidden | orientation"
(Landscape horizontal, portrait longitudinal)
Reply:
Pro, I have to do is a system-level changes. Not every application has its source
Reply:
Want to know the landlord solutions ready yet, I have encountered this problem, I put the whole system into something vertical screen, and now we are horizontal screen ..
We are 4.0, the landlord can be easily done if you tell me you ..
Reply:
The landlord is how to solve ah, share with you. . .
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment