Say I want a reusable border layout for Android.
border.xml
<LinearLayout ...>
<LinearLayout...>
This is where I want content to go
</LinearLayout...>
<FrameLayout .../>
</LinearLayout ...>
and Border.java inflates border.xml. Now in another view, I want to draw things inside my border. Something like
homepage.xml
<Border ... >
<TextView .../>
<TextView .../>
</Border>
Is there a way to tell xml where to put the content of custom tags?
No comments:
Post a Comment