Right now all I am trying to do is detect when the screen is pressed and then display a log message to confirm it happened. My code so far is modified off of the CameraPrevi
//on finger touch view visible. On finger up gone
hintView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if(event.getAction()==MotionEvent.ACTION_MOVE){
hintText.setVisibility(View.VISIBLE);
}else if(event.getAction()==MotionEvent.ACTION_UP){
hintText.setVisibility(View.GONE);
}
return true;
}
});