Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShenghuoquanBusiness
Project
Project
Details
Activity
Releases
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
bp
ShenghuoquanBusiness
Commits
0d98123c
Commit
0d98123c
authored
May 29, 2021
by
yinjiacheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 修改资源名称
parent
6dbf406b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
21 deletions
+22
-21
LifeAccountAuthBusinessInfoEditView.kt
...newscontent/widget/LifeAccountAuthBusinessInfoEditView.kt
+2
-2
LifeAccountAuthIdentityInfoEditView.kt
...newscontent/widget/LifeAccountAuthIdentityInfoEditView.kt
+5
-4
fragment_life_account_business_license_auth.xml
...es/layout/fragment_life_account_business_license_auth.xml
+4
-4
fragment_life_account_id_card_auth.xml
...rc/main/res/layout/fragment_life_account_id_card_auth.xml
+6
-6
attrs.xml
Components/newscontent/src/main/res/values/attrs.xml
+5
-5
No files found.
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountAuthBusinessInfoEditView.kt
View file @
0d98123c
...
...
@@ -34,9 +34,9 @@ class LifeAccountAuthBusinessInfoEditView @JvmOverloads constructor(
val
typedArray
=
context
.
obtainStyledAttributes
(
attrs
,
R
.
styleable
.
LifeAccountAuthBusinessInfoEditView
)
viewBinding
.
tvContent
.
text
=
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuthBusinessInfoEditView_content_text
)
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuthBusinessInfoEditView_
LifeAccountAuthBusinessInfoEditView_
content_text
)
viewBinding
.
etContent
.
hint
=
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuthBusinessInfoEditView_hint_text
)
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuthBusinessInfoEditView_
LifeAccountAuthBusinessInfoEditView_
hint_text
)
typedArray
.
recycle
()
viewBinding
.
ivClear
.
setOnClickListener
(
this
)
viewBinding
.
etContent
.
addTextChangedListener
(
this
)
...
...
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountAuthEditView.kt
→
Components/newscontent/src/main/java/com/yidian/shenghuoquan/newscontent/widget/LifeAccountAuth
IdentityInfo
EditView.kt
View file @
0d98123c
...
...
@@ -15,7 +15,7 @@ import com.yidian.shenghuoquan.newscontent.databinding.ViewLifeAccountAuthEditBi
* date: 5/27/21 2:12 PM
* description: 生活号认证 身份证信息录入
*/
class
LifeAccountAuthEditView
@JvmOverloads
constructor
(
class
LifeAccountAuth
IdentityInfo
EditView
@JvmOverloads
constructor
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyle
:
Int
=
0
...
...
@@ -30,11 +30,12 @@ class LifeAccountAuthEditView @JvmOverloads constructor(
)
init
{
val
typedArray
=
context
.
obtainStyledAttributes
(
attrs
,
R
.
styleable
.
LifeAccountAuthEditView
)
val
typedArray
=
context
.
obtainStyledAttributes
(
attrs
,
R
.
styleable
.
LifeAccountAuthIdentityInfoEditView
)
viewBinding
.
tvContent
.
text
=
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuth
EditView_LifeAccountAuth
EditView_content_text
)
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuth
IdentityInfoEditView_LifeAccountAuthIdentityInfo
EditView_content_text
)
viewBinding
.
etContent
.
hint
=
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuth
EditView_LifeAccountAuth
EditView_hint_text
)
typedArray
.
getText
(
R
.
styleable
.
LifeAccountAuth
IdentityInfoEditView_LifeAccountAuthIdentityInfo
EditView_hint_text
)
typedArray
.
recycle
()
viewBinding
.
ivClear
.
setOnClickListener
(
this
)
viewBinding
.
etContent
.
addTextChangedListener
(
this
)
...
...
Components/newscontent/src/main/res/layout/fragment_life_account_business_license_auth.xml
View file @
0d98123c
...
...
@@ -96,8 +96,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
app:content_text=
"@string/business_license_registration_name"
app:hint_text=
"@string/please_input"
app:
LifeAccountAuthBusinessInfoEditView_
content_text=
"@string/business_license_registration_name"
app:
LifeAccountAuthBusinessInfoEditView_
hint_text=
"@string/please_input"
app:layout_constraintTop_toBottomOf=
"@id/tv_upload_error_tips"
/>
<com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuthBusinessInfoEditView
...
...
@@ -105,8 +105,8 @@
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"6dp"
app:content_text=
"@string/business_license_registration_code"
app:hint_text=
"@string/please_input"
app:
LifeAccountAuthBusinessInfoEditView_
content_text=
"@string/business_license_registration_code"
app:
LifeAccountAuthBusinessInfoEditView_
hint_text=
"@string/please_input"
app:layout_constraintTop_toBottomOf=
"@id/ev_registration_name"
/>
<com.yidian.nightmode.widget.YdTextView
...
...
Components/newscontent/src/main/res/layout/fragment_life_account_id_card_auth.xml
View file @
0d98123c
...
...
@@ -62,21 +62,21 @@
app:layout_constraintStart_toStartOf=
"@id/iv_id_card_national_emblem_face"
app:layout_constraintTop_toBottomOf=
"@id/iv_id_card_national_emblem_face"
/>
<com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuthEditView
<com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuth
IdentityInfo
EditView
android:id=
"@+id/ev_real_name"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"19dp"
app:LifeAccountAuthEditView_content_text=
"@string/real_name"
app:LifeAccountAuthEditView_hint_text=
"@string/input_real_name"
app:LifeAccountAuth
IdentityInfo
EditView_content_text=
"@string/real_name"
app:LifeAccountAuth
IdentityInfo
EditView_hint_text=
"@string/input_real_name"
app:layout_constraintTop_toBottomOf=
"@id/tv_upload_portrait_face_guide"
/>
<com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuthEditView
<com.yidian.shenghuoquan.newscontent.widget.LifeAccountAuth
IdentityInfo
EditView
android:id=
"@+id/ev_id_card_number"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:LifeAccountAuthEditView_content_text=
"@string/id_card_number"
app:LifeAccountAuthEditView_hint_text=
"@string/input_id_card_number"
app:LifeAccountAuth
IdentityInfo
EditView_content_text=
"@string/id_card_number"
app:LifeAccountAuth
IdentityInfo
EditView_hint_text=
"@string/input_id_card_number"
app:layout_constraintTop_toBottomOf=
"@id/ev_real_name"
/>
<com.yidian.nightmode.widget.YdConstraintLayout
...
...
Components/newscontent/src/main/res/values/attrs.xml
View file @
0d98123c
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable
name=
"LifeAccountAuthEditView"
>
<attr
name=
"LifeAccountAuthEditView_content_text"
format=
"string"
/>
<attr
name=
"LifeAccountAuthEditView_hint_text"
format=
"string"
/>
<declare-styleable
name=
"LifeAccountAuth
IdentityInfo
EditView"
>
<attr
name=
"LifeAccountAuth
IdentityInfo
EditView_content_text"
format=
"string"
/>
<attr
name=
"LifeAccountAuth
IdentityInfo
EditView_hint_text"
format=
"string"
/>
</declare-styleable>
<declare-styleable
name=
"LifeAccountAuthSelectView"
>
...
...
@@ -12,8 +12,8 @@
</declare-styleable>
<declare-styleable
name=
"LifeAccountAuthBusinessInfoEditView"
>
<attr
name=
"content_text"
format=
"string"
/>
<attr
name=
"hint_text"
format=
"string"
/>
<attr
name=
"
LifeAccountAuthBusinessInfoEditView_
content_text"
format=
"string"
/>
<attr
name=
"
LifeAccountAuthBusinessInfoEditView_
hint_text"
format=
"string"
/>
</declare-styleable>
</resources>
\ No newline at end of file
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