[英]android - Xmlns:android Problem
For Every Layout xml file contains this instruction at First Layout (xmlns:android="http://schemas.android.com/apk/res/android") once is enough or we need to put every Layout in the xml file.对于每个布局 xml 文件在第一个布局中包含此指令 (xmlns:android="http://schemas.android.com/apk/res/android") 一次就足够了,否则我们需要将每个布局放入 Z0F635D0E0F38E74F 文件中。 Like this像这样
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
------------
--------->
<Textview
---------/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
------------
--------->
<ListView
--------------
---------------/>
</LinearLayout>
</LinearLayout>
thanks谢谢
for each xml file, in the root layout you have to set this property:对于每个 xml 文件,您必须在根布局中设置此属性:
xmlns:android="http://schemas.android.com/apk/res/android . xmlns:android="http://schemas.android.com/apk/res/android 。
NOTE: Only in the root container layout of each XML file not in all containers.注意:仅在每个 XML 文件的根容器布局中,并非在所有容器中。
Hope you got my point.希望你明白我的意思。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.