Android Button or onTouchEvent

I'm making an android game with SurfaceView and I need to handle touch events.

I tried onTouchEvent(MotionEvent event) and it worked except for making buttons.

If there is an onTouchFinishEvent() type thing, that would be useful for making a button. Or instead should I use an Android button (with a transparent texture) and if so what's the best way.

Replay

Category: java Time: 2016-07-28 Views: 3
Tags: java xml android

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.125 (s). 12 q(s)