Start a new topic



I'm new to Wikitude and I'm trying to make an application where I can add gestures to the architectView object such as: onTouch, doubleTap, etc. I have tried with setOnTouchListener but it does not do any action anyone could support me this is my code:

this.architectView.setOnTouchListener(new ArchitectView.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {

if (event.getAction() == MotionEvent.ACTION_DOWN) {
Toast toast1 = Toast.makeText(getApplicationContext(), "MotionEvent", Toast.LENGTH_LONG);
toast1.setGravity(Gravity.CENTER, 0, 0);
Log.d("myTag", "Go");;

return false;

I would thank you very much

Hi Nancy,

Please review the documentation section regarding Gestures.



Hello !

Thank you.

I would like to know if from Android you can not use setOnTouchListener with architectView?

What I'm interested in is applying the gestures from the application on android not from javascript.

Hi Nancy, 

thank you for reporting this issue. It seems to be related to the touch handling of the WebView that is part of the ArchitectView. Right now i can only suggest a workaround. 

The workaround would be to add a new layout on top of the ArchitectView and set the onTouchListener there. If you do this you have to make sure to add the layout after ArchitectView.onPostCreate since the webView is added to the ArchitectView there. 

Best Regards,


Login or Signup to post a comment