In WPF (Microsoft land I know) you can define a control in XAML (xml-ish thing) along with the controls behaviour in codebehind (C#).
So in an XML file I want to be able to say something like:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/com.example.mytestapp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
control:name="MyCustomControl" >
<Button />
<stuff>(...)</stuff>
</LinearLayout>
And also have a java source file called MyCustomControl which controls the behaviour of the control defined in the XML file.
Is there an equivalent for android with Java/XML? All I see are things involving custom attributes where you have to write out the entire control in Java still :-/