How can i make a dynamic flipping screen(like that of iPhone) in Android

后端 未结 4 1159
不知归路
不知归路 2020-12-23 12:52

I am parsing data through the web service. I want the flipping horizontally rather than vertically. Here is a tutorial where ViewFlipper is used but it is for static data.

4条回答
  •  太阳男子
    2020-12-23 13:42

    Do you just want the screen to rotate based off of the position it is being held in (as determined by the accelerometer sensors)?

    If so just add

    android:screenOrientation="sensor"
    

    to the Activity node in your AndroidManifest.xml file

提交回复
热议问题