开发者

how to split main.xml to other xmls?

开发者 https://www.devze.com 2023-02-06 08:37 出处:网络
I have main.xml and is a very large file, i want to split some of the components(some layouts) to other xml so that i can lin开发者_开发知识库k from main.xml itself. is this possible from android ?You

I have main.xml and is a very large file, i want to split some of the components(some layouts) to other xml so that i can lin开发者_开发知识库k from main.xml itself. is this possible from android ?


You can use this

<include  layout="@layout/commonlayout" android:id="@+id/id" />

Refer this import xml into another xml

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号