Advertisement

自定义XML文件并解析其内容

阅读量:

自定义XML文件,并且将内容解析出来。

Activity_main.xml:

复制代码
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity"
    android:orientation="vertical">
    
    <Button
        android:id="@+id/pulls"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="使用PULL解

全部评论 (0)

还没有任何评论哟~