开发者

Android does each Layout element require an XLMNS definition?

开发者 https://www.devze.com 2023-02-13 11:15 出处:网络
I guess this is more of a best practice question.But does each Layout element (LinearLayout, ReleativeLayout, etc.) need a xmlns:android tag?I know the root tag requires it, but should child Layout el

I guess this is more of a best practice question. But does each Layout element (LinearLayout, ReleativeLayout, etc.) need a xmlns:android tag? I know the root tag requires it, but should child Layout elements have开发者_开发知识库 it as well?

Thanks.


no, there's no need to add xmlns to child elements, unless they require attributes unknown to the sdk (for example, the AdMob SDK)

0

精彩评论

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