Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
2588856f
Commit
2588856f
authored
Dec 23, 2020
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:验证码部分UI
parent
acc63fce
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+1
-1
PinField.kt
m-user/src/main/java/com/yidianling/user/widget/PinField/PinField.kt
+4
-1
SquarePinField.kt
m-user/src/main/java/com/yidianling/user/widget/PinField/SquarePinField.kt
+0
-1
user_activity_verfication_code_new.xml
m-user/src/main/res/layout/user_activity_verfication_code_new.xml
+4
-3
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
2588856f
...
...
@@ -64,7 +64,7 @@ import kotlinx.android.synthetic.main.user_activity_register_and_login.*
* @Company 壹点灵
* @date 2018/11/28
*/
@Route
(
path
=
"/user/login
1
"
)
@Route
(
path
=
"/user/login"
)
class
RegisterAndLoginActivity
:
BaseMvpActivity
<
ILoginContract
.
View
,
ILoginContract
.
Presenter
>(),
ILoginContract
.
View
{
...
...
m-user/src/main/java/com/yidianling/user/widget/PinField/PinField.kt
View file @
2588856f
...
...
@@ -188,7 +188,10 @@ open class PinField : AppCompatEditText {
)
HighlightType
.
CURRENT_FIELD
else
HighlightType
.
ALL_FIELDS
highlightSingleFieldType
=
HighlightType
.
getEnum
(
a
.
getInt
(
R
.
styleable
.
User_PinField_User_highlightType
,
highlightSingleFieldType
.
code
)
a
.
getInt
(
R
.
styleable
.
User_PinField_User_highlightType
,
highlightSingleFieldType
.
code
)
)
fieldBgColor
=
a
.
getColor
(
R
.
styleable
.
User_PinField_User_fieldBgColor
,
fieldBgColor
)
textPaint
.
typeface
=
typeface
...
...
m-user/src/main/java/com/yidianling/user/widget/PinField/SquarePinField.kt
View file @
2588856f
package
com.yidianling.user.widget.PinField
/**
* @author huozhiliang
* @描述:
...
...
m-user/src/main/res/layout/user_activity_verfication_code_new.xml
View file @
2588856f
...
...
@@ -49,7 +49,8 @@
<com.yidianling.user.widget.PinField.SquarePinField
android:id=
"@+id/verify_code"
android:cursorVisible=
"true"
app:highlightType=
"currentField"
app:User_highlightType=
"currentField"
app:User_isCursorEnabled=
"true"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
app:layout_constraintTop_toBottomOf=
"@id/tv_phone"
...
...
@@ -58,8 +59,8 @@
android:layout_marginStart=
"@dimen/platform_dp_40"
android:layout_marginEnd=
"@dimen/platform_dp_40"
android:layout_marginTop=
"67dp"
app:cornerRadius=
"8dp"
app:noOfFields=
"4"
app:
user_
cornerRadius=
"8dp"
app:
User_
noOfFields=
"4"
android:inputType=
"number"
>
</com.yidianling.user.widget.PinField.SquarePinField>
...
...
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