I understand how to create an Android user control, and I believe that I understand how to extract attributes for it from the Xml layout. However, I do not know how to get any children from it.
Here is a visual example of what I'm trying to accomplish:
public class Menu extends LinearLayout
{
}
public class MenuItem extends Button
{
}
<!-- Layout -->
<?xml version="1.0" encoding="utf-8"?>
<Menu>
<MenuItem/>
<MenuItem/>
</Menu>
When my Menu is created, how do I get links to two MenuItems?
source
share