Lets say I have a very simple layout:
<layout id="MainLayout">
<button x="center" y="300" width="30" height="30" background="Gfx.COLOR_BLACK" behavior="kyle">
<state id="stateDefault" bitmap="@Drawables.LauncherIcon" />
</button>
</layout>
If I add an "id" field to the button element to make it:
<layout id="MainLayout">
<button id="mybutton" x="center" y="300" width="30" height="30" background="Gfx.COLOR_BLACK" behavior="kyle">
<state id="stateDefault" bitmap="@Drawables.LauncherIcon" />
</button>
</layout>
The app will crash on the setLayout() call with the error: "Could not find symbol mybutton"
I'd like to get reference to the button instance to hide or show it based on some condition. (is that possible.. Does a drawable have a 'visible' property? Hard to find that in the documentation)