开发者

Android SDK "Slide" Capability

开发者 https://www.devze.com 2023-01-08 14:38 出处:网络
Does the Droid SDK support sliding your finger across the screen to go back to the previous screen, instead of开发者_StackOverflow社区 using the back key?I assume that you mean \"slide\" as the unlock

Does the Droid SDK support sliding your finger across the screen to go back to the previous screen, instead of开发者_StackOverflow社区 using the back key?


I assume that you mean "slide" as the unlocking system of i-phone.

Nothing is inbuilt for going back to previous screen..for implementing finger detection Implement GESTURE and implement OnFling() function.

OnFling() is the function that fired when the same kind of action performed as event unlocking the i-phone.


There is nothing built in for that. You are welcome to watch for that gesture and call finish() on your activity, if you want. However, that is unusual and may cause confusion for your users.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号