Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
435 views
in Technique[技术] by (71.8m points)

android - Android滑动至打开侧边菜单如何工作?(How do android swipe-to-open side menus work?)

How does the side menu in android work?

(android中的侧面菜单如何工作?)

I mean how does the app detect that a user is swiping from the edge of the device/screen?

(我的意思是,应用程序如何检测到用户正在从设备/屏幕的边缘滑动?)

  • Is there an invisible handle of some sort on the edge that gets dragged while swiping from edge?

    (从边缘滑动时,边缘上是否存在某种隐形手柄?)

    If so, what is its width?

    (如果是这样,它的宽度是多少?)

  • Does the app make the let padding into a trigger of some kind that detects the swipe within it?

    (该应用程序是否将让填充变成某种类型的触发器,以检测其中的滑动?)

I don't need the code to implement a menu just the underlying principle of swipe detection & execution...

(我不需要代码来实现菜单,而只需执行滑动检测和执行的基本原理...)

  ask by YourPalNurav translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...