开发者

Android does each Layout element require an XLMNS definition?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜