Start a new topic

Label in Android SDK javascript

Hi, I'm new in wikitude, I need show a label and a image, well the image is easy to show but still I can't 

this is my code

 var label = new AR.Label("AUX AUX AUX", 100, {
offsetY : 1,
onClick : function() {
label.text += "CLICK "
},
verticalAnchor : AR.CONST.VERTICAL_ANCHOR.TOP,
opacity : 0.1
});

var imgOne = new AR.ImageResource("assets/imageOne.png");
var overlayOne = new AR.ImageDrawable(imgOne, 1, {
translate: {
x:-0.15
}

});

var pageOne = new AR.ImageTrackable(this.tracker, "*", {
drawables: {
cam: [label, overlayOne]
},
onImageRecognized: this.removeLoadingBar,
onError: function(errorMessage) {
alert(errorMessage);
}
});
},
1 Comment

Hello Claudia,

Please refer here to review more information regarding the Label class and here to see how to work with labels.

Thanks
Eva

 

Login or Signup to post a comment