<?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=".EditeActivity">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/header"
|
android:layout_width="0dp"
|
android:layout_height="44dp"
|
android:background="#6750a4"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent">
|
|
<!-- Logo on the left -->
|
<ImageView
|
android:id="@+id/logo"
|
android:layout_width="95dp"
|
android:layout_height="32dp"
|
android:layout_marginStart="10dp"
|
android:layout_marginTop="10dp"
|
android:layout_marginBottom="10dp"
|
android:adjustViewBounds="true"
|
android:maxWidth="32dp"
|
android:maxHeight="32dp"
|
android:src="@drawable/logo"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent" />
|
|
<!-- Title centered in the parent -->
|
<TextView
|
android:id="@+id/headerText"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="管理AGV"
|
android:textColor="#dddddd"
|
android:textSize="20sp"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/edite_recyclerView"
|
android:layout_width="0dp"
|
android:layout_height="0dp"
|
app:layout_constraintBottom_toTopOf="@+id/addButton"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintHorizontal_bias="1.0"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/header"
|
app:layout_constraintVertical_bias="1.0" />
|
|
<ImageButton
|
android:id="@+id/addButton"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:src="@android:drawable/ic_input_add"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
android:padding="10dp"
|
tools:ignore="MissingConstraints" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|