Java Question Creating libraries for Basic4android

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi erel, First you are great, thanks for your creation(b4a)

now what I'd like to ask you,for example if I wanted to create a own button, how do I use this code when i click on it.Please something more clear and more complete.

Best regard.
S.Giuseppe

if (ba.subExists(eventName + "_click")) {
getObject().setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {
ba.raiseEvent(getObject(), eventName + "_click");
}

});
}
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Why do you need a library for a button? Why not create it with Basic4android?

thanks to you I'm starting to program in java again and i wont to understand this one.
Sorry for my English are many years that I did not write. but i use I made a nice b4a game it will be soon in the market.
best regards.
 
Top