fragment_data_manager.xml 1.93 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
<layout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools"
4
    xmlns:app="http://schemas.android.com/apk/res-auto">
5

6 7 8 9 10 11
    <data>
        <import type="com.wmdigit.setting.viewmodel.DataManagerViewModel"/>
        <variable
            name="viewModel"
            type="DataManagerViewModel" />
    </data>
12

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    <FrameLayout
        style="@style/fragment_root"
        tools:context=".fragment.DataManagerFragment">

        <androidx.constraintlayout.widget.ConstraintLayout
            style="@style/setting_module"
            android:layout_height="match_parent"
            android:layout_marginBottom="@dimen/dp_20"
            android:background="@color/gray_d9d9d9">

            <!--绿色图标-->
            <View
                android:id="@+id/icon_data_manager"
                style="@style/icon_title_green"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="@+id/tv_data_manager"
                app:layout_constraintBottom_toBottomOf="@+id/tv_data_manager"/>

            <!--标题-->
            <TextView
                android:id="@+id/tv_data_manager"
                style="@style/text_base.title.module_title"
                android:text="@string/module_setting_data_manager"
                app:layout_constraintStart_toEndOf="@+id/icon_data_manager"
                app:layout_constraintTop_toTopOf="parent" />

            <!--功能按钮列表-->
            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/rv_data_manager"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginTop="@dimen/dp_40"
                app:layout_constraintTop_toBottomOf="@+id/tv_data_manager"/>

        </androidx.constraintlayout.widget.ConstraintLayout>

    </FrameLayout>
</layout>