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
0bffdca5
Commit
0bffdca5
authored
Jan 14, 2020
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输入密码页面请求输入焦点
parent
aeafabb8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
InputPassWordActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
+2
-1
RegisterAndLoginActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
+9
-0
user_phone_code.xml
m-user/src/main/res/layout/user_phone_code.xml
+1
-1
No files found.
m-user/src/main/java/com/yidianling/user/ui/login/InputPassWordActivity.kt
View file @
0bffdca5
...
...
@@ -193,7 +193,8 @@ class InputPassWordActivity : BaseMvpActivity<IInputPassWordContract.View,IInput
private
fun
showSoftKeyBord
()
{
RxKeyboardTool
.
showKeyboard
(
this
,
true
)
RxKeyboardTool
.
toggleSoftInput
(
this
,
et_input_password
)
}
/**
...
...
m-user/src/main/java/com/yidianling/user/ui/login/RegisterAndLoginActivity.kt
View file @
0bffdca5
...
...
@@ -291,6 +291,7 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
setHint
()
requestFocus
()
if
(
isUmengLoginState
)
{
tv_skip
.
visibility
=
View
.
VISIBLE
...
...
@@ -332,6 +333,14 @@ class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginCont
}
}
private
fun
requestFocus
(){
et_phone_number
.
post
{
et_phone_number
.
requestFocus
()
et_phone_number
.
isFocusable
=
true
et_phone_number
.
isFocusableInTouchMode
=
true
}
}
private
fun
setHint
()
{
val
hintStr
=
SpannableString
(
resources
.
getString
(
R
.
string
.
user_edittext_hint
))
// 定义hint的值
val
ass
=
AbsoluteSizeSpan
(
16
,
true
)
// 设置字体大小 true表示单位是SP
...
...
m-user/src/main/res/layout/user_phone_code.xml
View file @
0bffdca5
...
...
@@ -31,7 +31,7 @@
android:layout_height=
"2dp"
android:layout_marginLeft=
"4dp"
android:layout_marginRight=
"4dp"
android:background=
"
@color/user_main_theme_light
"
/>
android:background=
"
#2EB0FF
"
/>
</LinearLayout>
<LinearLayout
...
...
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