Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
询问androidxml_Android_Xml - Fatal编程技术网

询问androidxml

询问androidxml,android,xml,Android,Xml,我正在下载示例android应用程序 然后将xml ini文件放在下面 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:or

我正在下载示例android应用程序

然后将xml ini文件放在下面

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="horizontal" >

    <net.example.view
        android:id="@+id/view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="10" />

    <TextView
        android:id="@+id/text"
        android:layout_width="fill_parent"
        android:layout_height="346dp"
        android:layout_weight="79.81"
        android:gravity="center_horizontal|center_vertical"
        android:text=""
        android:textSize="16pt" />

</LinearLayout>

我想问一下这个xml

 <net.example.view
       android:id="@+id/view"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:layout_weight="10" />


上面的xml是什么意思和用途?

这是一个自定义视图

自定义视图可以在扩展现有视图的Java类中定义,然后可以在布局XML中使用

您可以在《Android开发者指南》的一节中阅读更多关于它们的内容(并学习如何创建自己的)