MotionEvent object used to report movement (mouse, pen, finger, trackball) events. Motion events may hold either absolute or relative movements and other data, depending on the type of device. Motion events describe movements in terms of an action code and a set of axis values. The action code specifies the state change that occurred such as a pointer going down or up. The axis values describe the position and other movement properties.
Questions tagged [motionevent]
468 questions
-3
votes
1 answer
onTouchEvent() in a Game
I am developing a game application using android.
The Object(a box) slides up and down. And it has to hit the
objects(orange and pink balls) coming towards it from the right end of
the screen that would increase his score.
There will be black…

Anwesa Roy
- 67
- 1
- 10
-3
votes
1 answer
Implement Motion Event in android button to show password on Edittext with alternate button clicks
I have an Edit text in android for a password field.The input type for the edit text is password.To, the right of the Edit text,I have a button which will show the password when the button is clicked.I have implemented the "Show Password" part using…

Pranami
- 27
- 1
- 10
-3
votes
2 answers
Make image go where user taps
For an android app im coding i am trying to make it so when the users taps the screen the "player" which is an image slides over until it reaches that x value
I tried calling this method when the player touches the screen in a MotionEvent
public…

Kingbluesapphire
- 161
- 10