[
Skip Navigation]
≡
-
🏠
CS175 Fall 2014
:
Talk
:
Practice final Question 8 (Android)
≡
Welcome
Signin
Create Account
CS175 Fall 2014 Group
Practice final Question 8 (Android) Thread
Group Feed
Group Wiki
Group Places
Discussions
My Groups
2014-12-11
kenano
✓
kenano
Public Posts
Practice final Question 8 (Android)
.
public TripleTapView exdends View { private tapcount; private TapCounter tc = new TapCounter(delay); . . . @override protected onTouchEvent(MotionEvent e){ switch (e.getAction()) { case e.ACTION_DOWN: tc.resetCounter(); tapcount++; break; } } class TapCounter extends CountDownTimer { . . . @override public void onFinsish(){ if(tapcount == 3){ //add code for what you want executed at 3 taps. } lasttapcount = 0; } } }
<nowiki> public TripleTapView exdends View { private tapcount; private TapCounter tc = new TapCounter(delay); . . . @override protected onTouchEvent(MotionEvent e){ switch (e.getAction()) { case e.ACTION_DOWN: tc.resetCounter(); tapcount++; break; } } class TapCounter extends CountDownTimer { . . . @override public void onFinsish(){ if(tapcount == 3){ //add code for what you want executed at 3 taps. } lasttapcount = 0; } } } </nowiki>
kenano
✓
kenano
Public Posts
-- Practice final Question 8 (Android)
Students who added this question:
Kenan Ozdamar
Sreenidhi Muralidharan
Students who added this question: Kenan Ozdamar Sreenidhi Muralidharan
X
(c) 2024 Yioop -
PHP Search Engine
We use cookies to implement this site's user functionality, social media features, and traffic analytics.
Privacy Policy Details
.
Allow Cookies