<?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"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/white">
|
|
<androidx.appcompat.widget.Toolbar
|
android:id="@+id/titleBar"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dimen_title_height"
|
android:background="@color/bottom_color"
|
android:elevation="4dp"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:text="制卡"
|
android:textColor="@color/white"
|
android:textSize="@dimen/title_text_size"
|
android:textStyle="bold" />
|
</androidx.appcompat.widget.Toolbar>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:fillViewport="true"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="16dp">
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_newCard"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="16dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toStartOf="@+id/home_redCard"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_add" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="新卡开户"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_recharge"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="16dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:visibility="gone"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_recharge" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="充值"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_redCard"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="16dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/home_newCard"
|
app:layout_constraintTop_toTopOf="parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_read" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="读取卡片"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_loss"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toStartOf="@+id/home_replacement"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/home_newCard">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_report" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="挂失"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<TextView
|
android:id="@+id/home_reportLoss"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="解除挂失"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size"
|
android:visibility="gone"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_replacement"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toEndOf="@+id/home_loss"
|
app:layout_constraintTop_toBottomOf="@+id/home_redCard">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_replacement" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="补卡"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_admin"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="8dp"
|
android:layout_marginBottom="16dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/home_loss"
|
app:layout_constraintVertical_bias="0.0">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_system" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="管理系统"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<TextView
|
android:id="@+id/home_parameter"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="参数设置"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size"
|
android:visibility="gone"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/home_my"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="8dp"
|
android:clickable="true"
|
android:focusable="true"
|
android:foreground="?android:attr/selectableItemBackground"
|
android:visibility="gone"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/home_admin">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<ImageView
|
android:layout_width="70dp"
|
android:layout_height="70dp"
|
android:src="@drawable/home_my" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="8dp"
|
android:gravity="center"
|
android:text="个人中心"
|
android:textColor="@color/text_selecter_color"
|
android:textSize="@dimen/home_text_size" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</ScrollView>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|