Im new to android studio, and java though it is very similiar to C#/C++ that i usually work with. It bugs the hell out of me that i cant seem to get this to work, ive google some with no luck. Is it possible to do something like this, to make imagebutton with code? For the app im planning on making, i need the imagebuttons to create themselves in accord to some variables, and therefor i cant just create them all myself in the xml file beforehand.
public ImageButton CreateEnterBtn(Image _enterStoreImage, someposition parametre)
{
return new ImageButton(image, someposition)
}
Thanks in advance!
public ImageButton CreateEnterBtn(Image _enterStoreImage, someposition parametre)
{
return new ImageButton(image, someposition)
}
Thanks in advance!