hi there
i use to wrap a lib from a java for b4a
i made almost every thing make run
but i stick in click event and enevt wont rasing
here is my java onclick code
and here ive added event annotation
@Events(values = { "Click" })
and here is my b4a code
and b4a logged SUB not made
tnx for help in advance
i use to wrap a lib from a java for b4a
i made almost every thing make run
but i stick in click event and enevt wont rasing
here is my java onclick code
B4X:
public void ClickListener() {
CV.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
if(ba.subExists(eventName + "_Click")) {
ba.raiseEvent(null,eventName + "_Click" );
BA.Log("lib:raising.."+eventName +"Clicked!");
}else {
BA.Log("SUB not made");
}
}
});
}
and here ive added event annotation
@Events(values = { "Click" })
and here is my b4a code
B4X:
Sub Globals
Dim btn As PSDEV_ProgressButton
End Sub
Sub Activity_Create(FirstTime As Boolean)
btn.Initialize("btn")
Activity.AddView(btn,30%x,60%y,40%x,30dip)
End Sub
Sub btn_Click
Log("Hi")
End Sub
and b4a logged SUB not made
tnx for help in advance