How to i set boundaries? android java
<p>How can i set bounds so my image which moves using acclerometer can only move a certain distance? Really need help been trying for a while and getting no where. I have an image moveing with my accelerometer but i want to set boundaries so it only moves within them, example i dont want it to move backwards and only a certain distance to the left and right and forward. </p>
