I have a long android layout xml.
how can I extract a linearlayout in it to another file?
how is the including convention?
I'm using eclipse
I have a long android layout xml.
how can I extract a linearlayout in it to another file?
how is the including convention?
I'm using eclipse
add this to ur another file under layout..
<include layout="@layout/urfirstlayout"/>
Reference: Check this link for more info
Check out this link: http://developer.android.com/training/improving-layouts/reusing-layouts.html
Basically if you save your layout in titlebar.xml
Include it like this: <include layout="@layout/titlebar"/>