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
da541843
Commit
da541843
authored
Feb 18, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : 隐藏身份证输入优化
parent
4d9257fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
34 deletions
+34
-34
config.gradle
config.gradle
+2
-2
MedicalAddNewArchivesActivity.kt
m-im/src/main/java/com/yidianling/medical/archives/MedicalAddNewArchivesActivity.kt
+32
-32
No files found.
config.gradle
View file @
da541843
...
...
@@ -11,7 +11,7 @@ ext {
"m-user"
:
"0.0.61.90"
,
"m-user-medical"
:
"0.0.61.99"
,
"m-home"
:
"0.0.22.70"
,
"m-im-medical"
:
"0.0.20.8
5
"
,
"m-im-medical"
:
"0.0.20.8
6
"
,
"m-im"
:
"0.0.20.76"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -97,7 +97,7 @@ ext {
"m-user"
:
"0.0.61.90"
,
"m-user-medical"
:
"0.0.61.99"
,
"m-home"
:
"0.0.22.70"
,
"m-im-medical"
:
"0.0.20.8
5
"
,
"m-im-medical"
:
"0.0.20.8
6
"
,
"m-im"
:
"0.0.20.76"
,
"m-dynamic"
:
"0.0.7.28"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/medical/archives/MedicalAddNewArchivesActivity.kt
View file @
da541843
...
...
@@ -143,38 +143,38 @@ class MedicalAddNewArchivesActivity : BaseActivity() {
checkInfo
()
}
EditTextUtils
.
disableCopyAndPaste
(
et_name
)
et_idcard
.
addTextChangedListener
(
object
:
TextWatcher
{
override
fun
beforeTextChanged
(
s
:
CharSequence
?,
start
:
Int
,
count
:
Int
,
after
:
Int
)
{
}
override
fun
onTextChanged
(
s
:
CharSequence
?,
start
:
Int
,
before
:
Int
,
count
:
Int
)
{
}
override
fun
afterTextChanged
(
s
:
Editable
?)
{
var
sLength
=
s
.
toString
().
length
;
if
(
sLength
>
oldLength
){
val
msp
=
SpannableString
(
s
.
toString
())
msp
.
setSpan
(
AbsoluteSizeSpan
(
22
,
true
),
Math
.
max
(
s
.
toString
().
length
-
1
,
0
),
s
.
toString
().
length
,
Spanned
.
SPAN_EXCLUSIVE_EXCLUSIVE
)
oldLength
=
sLength
;
et_idcard
.
setText
(
msp
)
et_idcard
.
setSelection
(
sLength
)
var
message
=
Message
()
message
.
what
=
AUTOSIZE
;
mHandler
.
sendMessageDelayed
(
message
,
3000
)
}
else
{
oldLength
=
sLength
}
}
})
//徐总的需求暂时不上了,哇徐总优秀
//
et_idcard.addTextChangedListener(object :TextWatcher{
//
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
//
//
//
}
//
//
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
//
}
//
//
override fun afterTextChanged(s: Editable?) {
//
var sLength = s.toString().length;
//
if(sLength > oldLength){
//
val msp = SpannableString(s.toString())
//
msp.setSpan(
//
AbsoluteSizeSpan(22, true),
//
Math.max(s.toString().length - 1,0),
//
s.toString().length,
//
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
//
)
//
oldLength = sLength;
//
et_idcard.setText(msp)
//
et_idcard.setSelection(sLength)
//
var message = Message()
//
message.what = AUTOSIZE;
//
mHandler.sendMessageDelayed(message,3000)
//
}else{
//
oldLength = sLength
//
}
//
}
//
//
})
iv_back
.
setOnClickListener
{
finish
()
}
...
...
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