Commit c4288b9d authored by 赵鹏翔's avatar 赵鹏翔

v规范化命名

parent 415783ae
......@@ -174,9 +174,6 @@ class LoginActivity : AppCompatActivity() {
// }
}
/**
* Extension function to simplify setting an afterTextChanged action to EditText components.
*/
private fun EditText.afterTextChanged(afterTextChanged: (String) -> Unit) {
this.addTextChangedListener(object : TextWatcher {
......
......@@ -2,7 +2,7 @@
<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/container"
android:id="@+id/cl_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.LoginActivity">
......@@ -60,7 +60,7 @@
app:layout_constraintVertical_bias="0.2" />
<ImageView
android:id="@+id/ivLogo"
android:id="@+id/iv_logo"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginStart="39dp"
......@@ -78,11 +78,11 @@
android:text="您好,欢迎登录!"
android:textColor="@color/black"
android:textSize="48sp"
app:layout_constraintStart_toEndOf="@+id/ivLogo"
app:layout_constraintTop_toTopOf="@+id/ivLogo" />
app:layout_constraintStart_toEndOf="@+id/iv_logo"
app:layout_constraintTop_toTopOf="@+id/iv_logo" />
<TextView
android:id="@+id/tvSlog"
android:id="@+id/tv_slog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="23dp"
......@@ -90,8 +90,8 @@
android:text="欢迎使用匡威商米收银"
android:textColor="#666666"
android:textSize="28sp"
app:layout_constraintBottom_toBottomOf="@+id/ivLogo"
app:layout_constraintStart_toEndOf="@+id/ivLogo" />
app:layout_constraintBottom_toBottomOf="@+id/iv_logo"
app:layout_constraintStart_toEndOf="@+id/iv_logo" />
<TextView
android:id="@+id/tv_error_info"
......@@ -101,7 +101,7 @@
android:textColor="#FF5A59"
android:textSize="24sp"
android:visibility="gone"
app:layout_constraintStart_toEndOf="@+id/ivLogo"
app:layout_constraintStart_toEndOf="@+id/iv_logo"
app:layout_constraintStart_toStartOf="@+id/et_username"
app:layout_constraintTop_toBottomOf="@+id/et_password" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment