Android programming is driving me crazy. The XML or programmable ways for GUI development is making a right old dogs breakfast of the code--some stuff here, some stuff there.
My current frustration is trying to keep it all XML and I would like to set the background color of the TextView
the same color as the background color of a Button
without having to specify the exact color code. I would like to use a system constant, something like java.awt.SystemColor.control
, but specified in XML.
Is there anyway of doing this without having to respecify a bunch of stuff? I'm looking for a solution like: android:background="{Insert constant here}"
.