14.09.2015 Views

Touch

Lectures 13 and 14 – Touch

Lectures 13 and 14 – Touch

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Touch</strong> Events<br />

• Two ways to get touch events<br />

• Either register a new On<strong>Touch</strong>Listener with<br />

a view, (with setOn<strong>Touch</strong>Listener(…))<br />

• Or implement on<strong>Touch</strong>Event() in a custom<br />

View<br />

• Either way, you’ll get delivered a series of<br />

MotionEvents<br />

show how we can set up a touch listener

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!