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.
加载中,请稍侯......
精彩评论