You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.1 KiB
XML
70 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="title"
|
|
type="String" />
|
|
|
|
<variable
|
|
name="adapter"
|
|
type="com.example.jinyu_rfid.adapter.ResultAdapter" />
|
|
|
|
|
|
|
|
<import type="android.view.View" />
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context=".ReadActivity">
|
|
|
|
<include
|
|
layout="@layout/toolbar"
|
|
app:title="@{title}" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="45dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="8dp">
|
|
|
|
<TextView
|
|
style="@style/text_name"
|
|
android:layout_width="120dp"
|
|
android:layout_height="match_parent"
|
|
android:text="@string/scanning_area" />
|
|
|
|
<TextView
|
|
android:id="@+id/read_text"
|
|
style="@style/text_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/san_text" />
|
|
</LinearLayout>
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:adapter="@{adapter}"
|
|
android:padding="8dp"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
|
|
|
|
<Button
|
|
android:layout_width="match_parent"
|
|
android:layout_height="55dp"
|
|
android:layout_margin="10dp"
|
|
android:onClick="readInfo"
|
|
android:text="@string/go_read"
|
|
android:textSize="18sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
</layout> |