Newer
Older
scanSDFile / app / src / main / res / layout / activity_scan_list.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/activity_scan_list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="com.bell.scansdcardfiles.activity.ScanListActivity">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/select_file_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#ccaaee"
            android:gravity="center"
            android:padding="10dp"
            android:text="按文件"/>

        <TextView
            android:id="@+id/select_folder_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:background="#cceeaa"
            android:gravity="center"
            android:padding="10dp"
            android:text="按文件夹"/>

    </LinearLayout>

    <TextView
        android:id="@+id/select_path_text"
        android:textSize="8sp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

    <ListView
        android:id="@+id/file_list_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

</LinearLayout>