<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context=".ui.MainActivity">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/cl_nav_bar"
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<TextView
|
android:id="@+id/tv_filter"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="16dp"
|
android:text="@string/filter"
|
android:textSize="16sp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<TextView
|
android:id="@+id/tv_job_center"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/job_center"
|
android:textSize="18sp"
|
app:layout_constraintBottom_toBottomOf="@+id/tv_filter"
|
app:layout_constraintEnd_toStartOf="@+id/tv_setting"
|
app:layout_constraintStart_toEndOf="@+id/tv_filter"
|
app:layout_constraintTop_toTopOf="@+id/tv_filter" />
|
|
<TextView
|
android:id="@+id/tv_setting"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginEnd="16dp"
|
android:text="@string/setting"
|
android:textSize="16sp"
|
app:layout_constraintBottom_toBottomOf="@+id/tv_job_center"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/tv_job_center" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
android:id="@+id/swipe_refresh_layout"
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
app:layout_constraintBottom_toTopOf="@+id/fl_bottom"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/cl_nav_bar">
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/rv_order"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="#fff3f3f3">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
<FrameLayout
|
android:id="@+id/fl_bottom"
|
android:layout_width="match_parent"
|
android:layout_height="48dp"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent">
|
|
<Button
|
android:layout_height="44dp"
|
android:id="@+id/button_reset"
|
android:text="重置支付次数(0/50)"
|
android:gravity="center"
|
android:layout_gravity="center_vertical"
|
android:layout_width="wrap_content">
|
</Button>
|
|
|
<ToggleButton
|
android:id="@+id/btn_auto_run"
|
android:layout_width="wrap_content"
|
android:paddingLeft="10dp"
|
android:paddingRight="10dp"
|
android:button="@null"
|
android:layout_height="36dp"
|
android:textOff="@string/on_auto_run"
|
android:textOn="@string/off_auto_run"
|
android:layout_gravity="end|center_vertical"
|
android:background="@drawable/selector_auto_run_btn_bg"
|
android:textColor="@color/white" />
|
</FrameLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|