开发者

Android: How to set onTouch event for activity?

I have an activity I wan开发者_StackOverflow社区t to finish when the activity is touched, how do I go about doing this?


Get a reference to the top level View in your layout and call .setOnTouchListener() on it passing an OnTouchListener with finish(); in the onTouch() method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜