Android Question Cannot set button icon

Indy

Active Member
Licensed User
Hi,

I'm trying to set an icon for a button but, the Image File drop-down list is empty. I have definitely copied the png file across into the Files folder, selected the required BitmapDrawable but still nothing. I'm wondering whether there's something I have done because one of my other projects seems fine but, I can't spot any difference.

Thanks
 

Indy

Active Member
Licensed User
Yep, done the Add files bit aswell. I can't figure it out. Anyway, to save time I have added the image in code, which has got the job done for now. Personally I like to use the Designer for as much of the layout as I can as it keeps the main code minimal and tidy, and besides, I think Erel would reccomend we do it that way.

Thanks for your help guys.
 

klaus

Expert
Licensed User
Yep, done the Add files bit aswell.
Sorry, I don't understand. Does it work now in the Designer or not?
If not, where did you add the files ?
You should add those in the Designer for each layout file.
 

Indy

Active Member
Licensed User
Hi Klaus,

No, still not working in Designer. I add the files using the Add Files tab and I can see it's brought the file across. However, nothing exists in the drop-down list. But for now I have done the same using code, although I always prefer to do majority of the layout setup in the Designer.
 
Top