Start a new topic

How to add a button in ARchitectView?

How to add a button in ARchitectView?

1 person has this problem

Can I add a button in the screen to call a method or activity? Thanks.

yes you can.

simply add a <div> or <button> element on your HTML, it will be displayed on screen on top of everything else. Adding the onClick allows you to call a javascript function, which could interface with your native code to open the activity.


function buttonClicked() {

document.location = "architectsdk://dosomething";


<div onClick="buttonClicked();">Click here</div>

Inside your native code you must react on the "architectsdk://" url being called. See ArchitectUrlListener for more details on how to do this.
Login or Signup to post a comment