基本构造NFC数据接口与写入功能。NFC数据写入验证未测试。
This commit is contained in:
34
autonfc/src/main/res/layout/activity_nfc_interface.xml
Normal file
34
autonfc/src/main/res/layout/activity_nfc_interface.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nfc_status"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:text="状态:未启动"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_write_nfc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="写入测试数据"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nfc_data"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#f0f0f0"
|
||||
android:padding="10dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="数据"/>
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user