增加 写入长度判断
parent
c38cbed454
commit
a5d15780e8
Binary file not shown.
@ -0,0 +1,14 @@
|
||||
package com.example.jinyu_rfid;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class AppLoginActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_app_login);
|
||||
}
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
<?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="user"
|
||||
type="com.example.jinyu_rfid.been.LoginVm" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".AppLoginActivity">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginTop="50dp"
|
||||
android:src="@mipmap/logo"/>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="20dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="left|center"
|
||||
android:paddingLeft="14dp"
|
||||
android:text="@string/work_model_select"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/main_work"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/language" />
|
||||
|
||||
</LinearLayout> <LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginRight="20dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="left|center"
|
||||
android:paddingLeft="14dp"
|
||||
android:text="@string/language_select"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/main_language"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@array/language" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:checked="@={user.remember}"
|
||||
android:text="@string/remember_me" />
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:letterSpacing="0.2"
|
||||
android:onClick="login_click"
|
||||
android:text="@string/login_button_name"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
</layout>
|
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">RFID của Jinwoo</string>
|
||||
<string name="user_name">Tên người dùng</string>
|
||||
<string name="pass_word">Mật khẩu</string>
|
||||
<string name="login_button_name">Đăng nhập</string>
|
||||
<string name="remember_me">Ghi nhớ tôi</string>
|
||||
<string name="language_select">Ngôn ngữ:</string>
|
||||
<string name="activity_name_configuration">Cấu hình</string>
|
||||
<string name="configuration_save">Lưu</string>
|
||||
<string name="tire_number">Số lốp</string>
|
||||
<string name="read_epc">Đọc EPC</string>
|
||||
<string name="write_in">Ghi thông tin</string>
|
||||
<string name="go_read">Đọc thông tin</string>
|
||||
<string name="go_configuration">Cấu hình</string>
|
||||
<string name="epc_code">Mã hóa EPC</string>
|
||||
<string name="configuration_add">Thêm mục</string>
|
||||
<string name="write_index">Chỉ mục</string>
|
||||
<string name="write_state">Ghi hay không</string>
|
||||
<string name="write_project">Viết dự án</string>
|
||||
<string name="project_list_brand">Thương hiệu</string>
|
||||
<string name="project_list_specifications">Thông số</string>
|
||||
<string name="project_list_pattern">Hoa văn</string>
|
||||
<string name="project_list_hierarchy">Phân cấp</string>
|
||||
<string name="project_list_name">Tên lốp</string>
|
||||
<string name="project_list_speed">Tốc độ</string>
|
||||
<string name="project_list_load">Chỉ số tải</string>
|
||||
<string name="project_list_rim">Đường kính vành</string>
|
||||
<string name="project_list_flat">Tỷ lệ phẳng</string>
|
||||
<string name="project_list_area">Khu vực bán hàng</string>
|
||||
<string name="write_failed">Lỗi ghi</string>
|
||||
<string name="write_success">Viết thành công</string>
|
||||
<string name="binding_success">Kết nối MES thành công</string>
|
||||
<string name="work_model_select">Chế độ làm việc</string>
|
||||
</resources>
|
Loading…
Reference in New Issue