I am developing a game. I want it to work on Android, Windows, Mac, and Linux. I will implement a different GUI depending on weather its running on an Android device or a desktop computer. Typically buttons in Android are either transparent or just an image you press. I’m trying to figure out how to make a button transparent for when the game is running on an Android device. I have been doing a lot of Googling and searching here but I am not coming up with any solutions. Is there a way to make a button transparent using Nufty GUI in either XML or Java?
Yes. Use a transparent png as the background image.
another way is to have a background color with an alpha value if u don’t want an image
Thanks for the answers. How do I express the background color in hex to include the alpha value?
#fffa where a is the alpha value…