Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
c4288b9d
Commit
c4288b9d
authored
Oct 25, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v规范化命名
parent
415783ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
LoginActivity.kt
app/src/main/java/com/miya/fastcashier/ui/LoginActivity.kt
+0
-3
activity_login.xml
app/src/main/res/layout/activity_login.xml
+8
-8
No files found.
app/src/main/java/com/miya/fastcashier/ui/LoginActivity.kt
View file @
c4288b9d
...
...
@@ -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
{
...
...
app/src/main/res/layout/activity_login.xml
View file @
c4288b9d
...
...
@@ -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/c
l_c
ontainer"
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/iv
L
ogo"
android:id=
"@+id/iv
_l
ogo"
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/iv
L
ogo"
app:layout_constraintTop_toTopOf=
"@+id/iv
L
ogo"
/>
app:layout_constraintStart_toEndOf=
"@+id/iv
_l
ogo"
app:layout_constraintTop_toTopOf=
"@+id/iv
_l
ogo"
/>
<TextView
android:id=
"@+id/tv
S
log"
android:id=
"@+id/tv
_s
log"
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/iv
L
ogo"
app:layout_constraintStart_toEndOf=
"@+id/iv
L
ogo"
/>
app:layout_constraintBottom_toBottomOf=
"@+id/iv
_l
ogo"
app:layout_constraintStart_toEndOf=
"@+id/iv
_l
ogo"
/>
<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/iv
L
ogo"
app:layout_constraintStart_toEndOf=
"@+id/iv
_l
ogo"
app:layout_constraintStart_toStartOf=
"@+id/et_username"
app:layout_constraintTop_toBottomOf=
"@+id/et_password"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment