Compare commits

..

4 Commits

Author SHA1 Message Date
mxy6664
8e237bd24a 修改按钮高度不生效原因 2026-07-28 10:45:27 +08:00
mxy6664
9f31f12463 修改按钮圆角值,和颜色差 2026-07-28 10:35:44 +08:00
mxy6664
55cf7196a6 app所有名称改为:驭鲲智防系统 2026-07-28 09:49:15 +08:00
mxy6664
fb99e7ecf4 1、app所有名称改为:驭鲲智防系统
2、“打击”字样全部改为“驱离”
3、logo的整体只保留文字部分
4.修改吐司中英文显示
2026-07-27 18:01:53 +08:00
18 changed files with 89 additions and 70 deletions

View File

@@ -57,10 +57,10 @@ class ForgetPasswordActivity : AppCompatActivity() {
if (isPhoneNumberValid(phoneNumber)) { if (isPhoneNumberValid(phoneNumber)) {
sendVerificationCode(phoneNumber) sendVerificationCode(phoneNumber)
} else { } else {
Toast.makeText(this, "请输入有效的11位手机号", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.phone_tip), Toast.LENGTH_SHORT).show()
} }
} else { } else {
Toast.makeText(this, "请稍后再试", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.please_try_later), Toast.LENGTH_SHORT).show()
} }
} }
@@ -86,7 +86,7 @@ class ForgetPasswordActivity : AppCompatActivity() {
val response = RetrofitNetwork.getNetworkService().getCode(phoneNumber) val response = RetrofitNetwork.getNetworkService().getCode(phoneNumber)
withContext(Dispatchers.Main) { withContext(Dispatchers.Main) {
if (response.code == 200) { if (response.code == 200) {
Toast.makeText(this@ForgetPasswordActivity, "验证码已发送", Toast.LENGTH_SHORT).show() Toast.makeText(this@ForgetPasswordActivity, getString(R.string.code_sent_to), Toast.LENGTH_SHORT).show()
startCountDown() startCountDown()
} else { } else {
Toast.makeText(this@ForgetPasswordActivity, response.msg, Toast.LENGTH_SHORT).show() Toast.makeText(this@ForgetPasswordActivity, response.msg, Toast.LENGTH_SHORT).show()
@@ -140,29 +140,30 @@ class ForgetPasswordActivity : AppCompatActivity() {
val confirmPassword = binding.etInviteCode.text.toString().trim() val confirmPassword = binding.etInviteCode.text.toString().trim()
if (!isPhoneNumberValid(phoneNumber)) { if (!isPhoneNumberValid(phoneNumber)) {
Toast.makeText(this, "手机号格式不正确", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.invalid_phone), Toast.LENGTH_SHORT).show()
return return
} }
if (TextUtils.isEmpty(smsCode)) { if (TextUtils.isEmpty(smsCode)) {
Toast.makeText(this, "请输入验证码", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.hint_code_zh), Toast.LENGTH_SHORT).show()
return return
} }
if (TextUtils.isEmpty(newPassword) || TextUtils.isEmpty(confirmPassword)) { if (TextUtils.isEmpty(newPassword) || TextUtils.isEmpty(confirmPassword)) {
Toast.makeText(this, "密码不能为空", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.password_cannot_empty), Toast.LENGTH_SHORT).show()
return return
} }
if (newPassword.length < MIN_PASSWORD_LENGTH || newPassword.length > MAX_PASSWORD_LENGTH) { if (newPassword.length < MIN_PASSWORD_LENGTH || newPassword.length > MAX_PASSWORD_LENGTH) {
Toast.makeText(this, "密码长度需为${MIN_PASSWORD_LENGTH}-${MAX_PASSWORD_LENGTH}", Toast.LENGTH_SHORT).show() val tip = getString(R.string.pwd_length_tip, MIN_PASSWORD_LENGTH, MAX_PASSWORD_LENGTH)
Toast.makeText(this, tip, Toast.LENGTH_SHORT).show()
return return
} }
if (!newPassword.matches(Regex(".*[A-Za-z].*")) || !newPassword.matches(Regex(".*[0-9].*"))) { if (!newPassword.matches(Regex(".*[A-Za-z].*")) || !newPassword.matches(Regex(".*[0-9].*"))) {
Toast.makeText(this, "密码需同时包含字母和数字", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.password_letter_digit), Toast.LENGTH_SHORT).show()
return return
} }
if (newPassword != confirmPassword) { if (newPassword != confirmPassword) {
Toast.makeText(this, "两次输入的密码不一致", Toast.LENGTH_SHORT).show() Toast.makeText(this, getString(R.string.password_mismatch), Toast.LENGTH_SHORT).show()
return return
} }

View File

@@ -77,7 +77,7 @@ class LoginActivity : AppCompatActivity() {
binding.registerText.visibility = View.VISIBLE binding.registerText.visibility = View.VISIBLE
binding.forgetText.visibility = View.GONE binding.forgetText.visibility = View.GONE
updateRegisterTextConstraints(center = false) updateRegisterTextConstraints(center = true)
//需要正确的方法名和参数 //需要正确的方法名和参数
updateLoginButtonTopConstraint(R.id.smsRowLayout) updateLoginButtonTopConstraint(R.id.smsRowLayout)
@@ -102,7 +102,6 @@ class LoginActivity : AppCompatActivity() {
private fun updateLoginButtonTopConstraint(topTargetId: Int) { private fun updateLoginButtonTopConstraint(topTargetId: Int) {
val params = binding.loginBtn.layoutParams as ConstraintLayout.LayoutParams val params = binding.loginBtn.layoutParams as ConstraintLayout.LayoutParams
params.topToBottom = topTargetId params.topToBottom = topTargetId
params.topMargin = 32
binding.loginBtn.layoutParams = params binding.loginBtn.layoutParams = params
} }
@@ -119,7 +118,6 @@ class LoginActivity : AppCompatActivity() {
params.endToEnd = ConstraintSet.UNSET params.endToEnd = ConstraintSet.UNSET
} }
params.topToBottom = binding.loginBtn.id params.topToBottom = binding.loginBtn.id
params.topMargin = 20
binding.registerText.layoutParams = params binding.registerText.layoutParams = params
} }
@@ -263,6 +261,7 @@ class LoginActivity : AppCompatActivity() {
UserinfoUtil.saveUserInfo(response.data) UserinfoUtil.saveUserInfo(response.data)
Toast.makeText(this@LoginActivity, R.string.password_login_success_title, Toast.LENGTH_SHORT).show() Toast.makeText(this@LoginActivity, R.string.password_login_success_title, Toast.LENGTH_SHORT).show()
val intent = Intent(this@LoginActivity, HomeActivity::class.java) val intent = Intent(this@LoginActivity, HomeActivity::class.java)
//清除任务栈
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent) startActivity(intent)
finish() finish()

View File

@@ -181,7 +181,8 @@ class RegisterActivity : AppCompatActivity() {
if (response.code == 200) { if (response.code == 200) {
Toast.makeText(this@RegisterActivity, R.string.register_success, Toast.LENGTH_SHORT).show() Toast.makeText(this@RegisterActivity, R.string.register_success, Toast.LENGTH_SHORT).show()
val intent = Intent(this@RegisterActivity, LoginActivity::class.java) val intent = Intent(this@RegisterActivity, RegisterSuccessActivity::class.java)
//清除任务栈
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
startActivity(intent) startActivity(intent)
finish() finish()

View File

@@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/green"/> <solid android:color="@color/green"/>
<corners android:radius="16dp"/> <corners android:radius="4dp"/>
</shape> </shape>

View File

@@ -3,13 +3,13 @@
<item android:state_enabled="false"> <item android:state_enabled="false">
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/gray"/> <solid android:color="@color/gray"/>
<corners android:radius="16dp"/> <corners android:radius="99dp"/>
</shape> </shape>
</item> </item>
<item> <item>
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/green"/> <solid android:color="@color/green"/>
<corners android:radius="16dp"/> <corners android:radius="99dp"/>
</shape> </shape>
</item> </item>
</selector> </selector>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#E8E8E8" />
<corners android:radius="8dp" />
</shape>

View File

@@ -2,5 +2,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<solid android:color="@color/white"/> <solid android:color="@color/white"/>
<corners android:radius="10dp"/> <corners android:radius="99dp"/>
</shape> </shape>

View File

@@ -25,7 +25,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/login_title" android:text="@string/login_title"
android:textSize="26dp" android:textSize="22dp"
android:textStyle="bold" android:textStyle="bold"
android:textColor="@color/black" android:textColor="@color/black"
app:layout_constraintTop_toBottomOf="@id/logoFrame" app:layout_constraintTop_toBottomOf="@id/logoFrame"
@@ -77,7 +77,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/phoneRowLayout" android:id="@+id/phoneRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
app:layout_constraintTop_toBottomOf="@+id/tvSmsLogin" app:layout_constraintTop_toBottomOf="@+id/tvSmsLogin"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@@ -99,6 +99,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:hint="@string/phone_hint" android:hint="@string/phone_hint"
android:textSize="14dp"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:background="@null" android:background="@null"
@@ -116,7 +117,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/smsRowLayout" android:id="@+id/smsRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -146,6 +147,7 @@
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:background="@null" android:background="@null"
android:textSize="14dp"
android:inputType="number" android:inputType="number"
android:paddingVertical="16dp" android:paddingVertical="16dp"
app:layout_constraintStart_toEndOf="@+id/ivSmsIcon" app:layout_constraintStart_toEndOf="@+id/ivSmsIcon"
@@ -161,7 +163,7 @@
android:minWidth="0dp" android:minWidth="0dp"
android:minHeight="0dp" android:minHeight="0dp"
android:text="@string/send_sms_code" android:text="@string/send_sms_code"
android:textSize="14sp" android:textSize="14dp"
android:textColor="@color/send_code_text_color" android:textColor="@color/send_code_text_color"
android:background="@drawable/send_code_btn_selector" android:background="@drawable/send_code_btn_selector"
android:elevation="0dp" android:elevation="0dp"
@@ -178,7 +180,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/passwordRowLayout" android:id="@+id/passwordRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -202,11 +204,12 @@
<EditText <EditText
android:id="@+id/etPassword" android:id="@+id/etPassword"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:hint="@string/password_hint" android:hint="@string/password_hint"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="14dp"
android:background="@null" android:background="@null"
android:inputType="textPassword" android:inputType="textPassword"
android:paddingVertical="16dp" android:paddingVertical="16dp"
@@ -214,7 +217,6 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" /> app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
@@ -222,15 +224,15 @@
<android.widget.Button <android.widget.Button
android:id="@+id/loginBtn" android:id="@+id/loginBtn"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="40dp"
android:layout_marginTop="40dp"
android:text="@string/login" android:text="@string/login"
android:textSize="18sp" android:textSize="14dp"
android:elevation="0dp" android:elevation="0dp"
android:stateListAnimator="@null" android:stateListAnimator="@null"
android:background="@drawable/rounded_blue_bg" android:background="@drawable/rounded_blue_bg"
android:textColor="@color/white" android:textColor="@color/white"
app:layout_constraintTop_toBottomOf="@+id/smsRowLayout" app:layout_constraintTop_toBottomOf="@+id/smsRowLayout"
android:layout_marginTop="40dp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" /> app:layout_constraintEnd_toEndOf="parent" />
@@ -240,7 +242,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/register" android:text="@string/register"
android:textSize="14sp" android:textSize="14dp"
android:textColor="@color/green" android:textColor="@color/green"
android:padding="8dp" android:padding="8dp"
app:layout_constraintTop_toBottomOf="@+id/loginBtn" app:layout_constraintTop_toBottomOf="@+id/loginBtn"

View File

@@ -58,7 +58,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/phoneRowLayout" android:id="@+id/phoneRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -88,7 +88,7 @@
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textSize="16sp" android:textSize="14dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon" app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon"
@@ -100,7 +100,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/smsRowLayout" android:id="@+id/smsRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -131,6 +131,7 @@
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:background="@null" android:background="@null"
android:inputType="number" android:inputType="number"
android:textSize="14dp"
android:paddingVertical="16dp" android:paddingVertical="16dp"
app:layout_constraintStart_toEndOf="@+id/ivSmsIcon" app:layout_constraintStart_toEndOf="@+id/ivSmsIcon"
app:layout_constraintEnd_toStartOf="@+id/sendCodeBtn" app:layout_constraintEnd_toStartOf="@+id/sendCodeBtn"
@@ -145,7 +146,7 @@
android:minWidth="0dp" android:minWidth="0dp"
android:minHeight="0dp" android:minHeight="0dp"
android:text="@string/send_sms_code" android:text="@string/send_sms_code"
android:textSize="14sp" android:textSize="14dp"
android:textColor="@color/white" android:textColor="@color/white"
android:background="@drawable/send_code_btn_selector" android:background="@drawable/send_code_btn_selector"
android:elevation="0dp" android:elevation="0dp"
@@ -162,7 +163,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/passwordRowLayout" android:id="@+id/passwordRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -176,6 +177,7 @@
android:id="@+id/ivPasswordIcon" android:id="@+id/ivPasswordIcon"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="@mipmap/ma"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" /> app:layout_constraintBottom_toBottomOf="parent" />
@@ -191,6 +193,7 @@
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:background="@null" android:background="@null"
android:inputType="text" android:inputType="text"
android:textSize="14dp"
android:paddingVertical="16dp" android:paddingVertical="16dp"
app:layout_constraintStart_toEndOf="@+id/ivPasswordIcon" app:layout_constraintStart_toEndOf="@+id/ivPasswordIcon"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
@@ -204,7 +207,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/inviteRowLayout" android:id="@+id/inviteRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -217,6 +220,7 @@
android:id="@+id/ivInviteIcon" android:id="@+id/ivInviteIcon"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:src="@mipmap/ma"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
@@ -233,7 +237,7 @@
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textSize="16sp" android:textSize="14dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ivInviteIcon" app:layout_constraintStart_toEndOf="@+id/ivInviteIcon"
@@ -245,11 +249,11 @@
<android.widget.Button <android.widget.Button
android:id="@+id/btnNext" android:id="@+id/btnNext"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="56dp" android:layout_height="40dp"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:text="@string/determine" android:text="@string/determine"
android:textAllCaps="false" android:textAllCaps="false"
android:textSize="16sp" android:textSize="16dp"
app:cornerRadius="12dp" app:cornerRadius="12dp"
android:textColor="@color/white" android:textColor="@color/white"
android:elevation="0dp" android:elevation="0dp"

View File

@@ -59,7 +59,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/phoneRowLayout" android:id="@+id/phoneRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -89,7 +89,7 @@
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textSize="16sp" android:textSize="14dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon" app:layout_constraintStart_toEndOf="@+id/ivPhoneIcon"
@@ -100,7 +100,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/smsRowLayout" android:id="@+id/smsRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -129,6 +129,7 @@
android:hint="@string/sms_code_hint" android:hint="@string/sms_code_hint"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textSize="14dp"
android:background="@null" android:background="@null"
android:inputType="number" android:inputType="number"
android:paddingVertical="16dp" android:paddingVertical="16dp"
@@ -145,7 +146,7 @@
android:minWidth="0dp" android:minWidth="0dp"
android:minHeight="0dp" android:minHeight="0dp"
android:text="@string/send_sms_code" android:text="@string/send_sms_code"
android:textSize="14sp" android:textSize="14dp"
android:textColor="@color/white" android:textColor="@color/white"
android:background="@drawable/send_code_btn_selector" android:background="@drawable/send_code_btn_selector"
android:elevation="0dp" android:elevation="0dp"
@@ -162,7 +163,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/idRowLayout" android:id="@+id/idRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -192,7 +193,7 @@
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textSize="16sp" android:textSize="14dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ivIdIcon" app:layout_constraintStart_toEndOf="@+id/ivIdIcon"
@@ -204,7 +205,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/passwordRowLayout" android:id="@+id/passwordRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -235,6 +236,7 @@
android:background="@null" android:background="@null"
android:inputType="text" android:inputType="text"
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textSize="14dp"
app:layout_constraintStart_toEndOf="@+id/ivPasswordIcon" app:layout_constraintStart_toEndOf="@+id/ivPasswordIcon"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
@@ -247,7 +249,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/inviteRowLayout" android:id="@+id/inviteRowLayout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="50dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:background="@drawable/textinput_white_bg" android:background="@drawable/textinput_white_bg"
android:paddingStart="16dp" android:paddingStart="16dp"
@@ -277,7 +279,7 @@
android:paddingVertical="16dp" android:paddingVertical="16dp"
android:textColor="@android:color/black" android:textColor="@android:color/black"
android:textColorHint="@color/gray" android:textColorHint="@color/gray"
android:textSize="16sp" android:textSize="14dp"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/ivInviteIcon" app:layout_constraintStart_toEndOf="@+id/ivInviteIcon"
@@ -289,11 +291,11 @@
<android.widget.Button <android.widget.Button
android:id="@+id/btnNext" android:id="@+id/btnNext"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="56dp" android:layout_height="40dp"
android:layout_marginTop="32dp" android:layout_marginTop="32dp"
android:text="@string/next_step" android:text="@string/next_step"
android:textAllCaps="false" android:textAllCaps="false"
android:textSize="16sp" android:textSize="16dp"
app:cornerRadius="12dp" app:cornerRadius="12dp"
android:textColor="@color/white" android:textColor="@color/white"
android:elevation="0dp" android:elevation="0dp"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -2,7 +2,7 @@
<resources> <resources>
<!-- App Name --> <!-- App Name -->
<string name="app_name">防御机</string> <string name="app_name">驭鲲智防系统</string>
<!-- Common --> <!-- Common -->
<string name="confirm">确定</string> <string name="confirm">确定</string>
@@ -17,7 +17,7 @@
<string name="submit">提交</string> <string name="submit">提交</string>
<!-- Login Activity --> <!-- Login Activity -->
<string name="login_title">智能防御机</string> <string name="login_title">驭鲲智防系统</string>
<string name="sms_login">验证码登录</string> <string name="sms_login">验证码登录</string>
<string name="password_login">密码登录</string> <string name="password_login">密码登录</string>
<string name="phone_hint">请输入手机号</string> <string name="phone_hint">请输入手机号</string>
@@ -204,11 +204,11 @@
<string name="warning_voice_playback">警告语音播放</string> <string name="warning_voice_playback">警告语音播放</string>
<string name="warning_voice_content">警告语音内容</string> <string name="warning_voice_content">警告语音内容</string>
<string name="enter_warning_voice_content_system_will_generate_voice_automatically">请输入警告语音内容,系统将自动生成语音</string> <string name="enter_warning_voice_content_system_will_generate_voice_automatically">请输入警告语音内容,系统将自动生成语音</string>
<string name="strike_interval">打击间隔</string> <string name="strike_interval">驱离间隔</string>
<string name="switch_container">切换容器</string> <string name="switch_container">切换容器</string>
<string name="strike_position">打击位置</string> <string name="strike_position">驱离位置</string>
<string name="click_model_select_strike_pos">请点击下方人体模型,选择大致打击位置</string> <string name="click_model_select_strike_pos">请点击下方人体模型,选择大致驱离位置</string>
<string name="confirm_modify_strike_pos">确定修改为该打击位置?</string> <string name="confirm_modify_strike_pos">确定修改为该驱离位置?</string>
<string name="submit_success">提交成功</string> <string name="submit_success">提交成功</string>
<string name="submit_failed">提交失败</string> <string name="submit_failed">提交失败</string>
<string name="container_1">容器1</string> <string name="container_1">容器1</string>
@@ -382,6 +382,7 @@
<string name="verification_code_error">验证码错误</string> <string name="verification_code_error">验证码错误</string>
<string name="password_cannot_empty">密码不能为空</string> <string name="password_cannot_empty">密码不能为空</string>
<string name="password_letter_digit">密码需同时包含字母和数字</string> <string name="password_letter_digit">密码需同时包含字母和数字</string>
<string name="pwd_length_tip">密码长度需为%1$d-%2$d位</string>
<string name="password_mismatch">两次输入的密码不一致</string> <string name="password_mismatch">两次输入的密码不一致</string>
<string name="redirect_face_page">跳转到人脸页面</string> <string name="redirect_face_page">跳转到人脸页面</string>
<string name="redirect_register_page">跳转到注册页面</string> <string name="redirect_register_page">跳转到注册页面</string>
@@ -395,8 +396,8 @@
<string name="go_check">去看一下</string> <string name="go_check">去看一下</string>
<string name="notice">温馨提示</string> <string name="notice">温馨提示</string>
<string name="got_it">知道了</string> <string name="got_it">知道了</string>
<string name="strike_distance">打击距离</string> <string name="strike_distance">驱离距离</string>
<string name="enter_strike_distance">请输入打击距离</string> <string name="enter_strike_distance">请输入驱离距离</string>
<string name="face_detection_failed">人脸检测失败</string> <string name="face_detection_failed">人脸检测失败</string>
<string name="nickname_default">这里是我的昵称</string> <string name="nickname_default">这里是我的昵称</string>
<string name="device_running_days">设备已经运行\n%d天请及时维护</string> <string name="device_running_days">设备已经运行\n%d天请及时维护</string>
@@ -421,6 +422,7 @@
<string name="confirm_reset_password">确定重设密码</string> <string name="confirm_reset_password">确定重设密码</string>
<string name="get_verification_code">获取验证码</string> <string name="get_verification_code">获取验证码</string>
<string name="hint_phone_zh">请输入手机号</string> <string name="hint_phone_zh">请输入手机号</string>
<string name="phone_tip">请输入有效的11位手机号</string>
<string name="hint_code_zh">请输入验证码</string> <string name="hint_code_zh">请输入验证码</string>
<string name="hint_new_password_zh">请输入新密码</string> <string name="hint_new_password_zh">请输入新密码</string>
<string name="hint_confirm_password_zh">请再次输入新密码</string> <string name="hint_confirm_password_zh">请再次输入新密码</string>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<!-- App Name --> <!-- App Name -->
<string name="app_name">Defense Device</string> <string name="app_name">Yukun Intelligent Defense System</string>
<!-- Common --> <!-- Common -->
<string name="save">Save</string> <string name="save">Save</string>
@@ -14,7 +14,7 @@
<string name="submit">Submit</string> <string name="submit">Submit</string>
<!-- Login Activity --> <!-- Login Activity -->
<string name="login_title">Smart Defense Device</string> <string name="login_title">Yukun Intelligent Defense System</string>
<string name="sms_login">SMS Login</string> <string name="sms_login">SMS Login</string>
<string name="password_login">Password Login</string> <string name="password_login">Password Login</string>
<string name="phone_hint">Enter phone number</string> <string name="phone_hint">Enter phone number</string>
@@ -33,6 +33,7 @@
<string name="agreement_prefix">I have read and agree to the</string> <string name="agreement_prefix">I have read and agree to the</string>
<string name="and">and</string> <string name="and">and</string>
<string name="register_success">Registration Successful</string> <string name="register_success">Registration Successful</string>
<string name="phone_tip">Please enter a valid 11-digit mobile number</string>
<string name="registering">Registering...</string> <string name="registering">Registering...</string>
<string name="register_success_message">Your account has been created successfully</string> <string name="register_success_message">Your account has been created successfully</string>
<string name="go_to_login">Go to Login</string> <string name="go_to_login">Go to Login</string>
@@ -378,6 +379,7 @@
<string name="verification_code_error">Verification code error</string> <string name="verification_code_error">Verification code error</string>
<string name="password_cannot_empty">Password cannot be empty</string> <string name="password_cannot_empty">Password cannot be empty</string>
<string name="password_letter_digit">Password must contain both letters and digits</string> <string name="password_letter_digit">Password must contain both letters and digits</string>
<string name="pwd_length_tip">Password must be %1$d-%2$d characters long</string>
<string name="password_mismatch">Passwords do not match</string> <string name="password_mismatch">Passwords do not match</string>
<string name="redirect_face_page">Redirecting to face page</string> <string name="redirect_face_page">Redirecting to face page</string>
<string name="redirect_register_page">Redirecting to register page</string> <string name="redirect_register_page">Redirecting to register page</string>
@@ -392,13 +394,13 @@
<string name="go_check">Go check</string> <string name="go_check">Go check</string>
<string name="notice">Notice</string> <string name="notice">Notice</string>
<string name="got_it">Got it</string> <string name="got_it">Got it</string>
<string name="strike_distance">Strike Distance</string> <string name="strike_distance">Expel Distance</string>
<string name="enter_strike_distance">Enter strike distance</string> <string name="enter_strike_distance">Enter expel distance</string>
<string name="strike_interval">Strike Interval</string> <string name="strike_interval">Expel Interval</string>
<string name="switch_container">Switch Container</string> <string name="switch_container">Switch Container</string>
<string name="strike_position">Strike Position</string> <string name="strike_position">Expel Position</string>
<string name="click_model_select_strike_pos">Please click the human model below to select the approximate strike position</string> <string name="click_model_select_strike_pos">Please click the human model below to select the approximate expel position</string>
<string name="confirm_modify_strike_pos">Confirm to modify to this strike position?</string> <string name="confirm_modify_strike_pos">Confirm to modify to this expel position?</string>
<string name="submit_success">Submitted successfully</string> <string name="submit_success">Submitted successfully</string>
<string name="submit_failed">Submission failed</string> <string name="submit_failed">Submission failed</string>
<string name="container_1">Container 1</string> <string name="container_1">Container 1</string>