Commit 0d98123c authored by yinjiacheng's avatar yinjiacheng

update 修改资源名称

parent 6dbf406b
......@@ -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)
......
......@@ -15,7 +15,7 @@ import com.yidian.shenghuoquan.newscontent.databinding.ViewLifeAccountAuthEditBi
* date: 5/27/21 2:12 PM
* description: 生活号认证 身份证信息录入
*/
class LifeAccountAuthEditView @JvmOverloads constructor(
class LifeAccountAuthIdentityInfoEditView @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.LifeAccountAuthEditView_LifeAccountAuthEditView_content_text)
typedArray.getText(R.styleable.LifeAccountAuthIdentityInfoEditView_LifeAccountAuthIdentityInfoEditView_content_text)
viewBinding.etContent.hint =
typedArray.getText(R.styleable.LifeAccountAuthEditView_LifeAccountAuthEditView_hint_text)
typedArray.getText(R.styleable.LifeAccountAuthIdentityInfoEditView_LifeAccountAuthIdentityInfoEditView_hint_text)
typedArray.recycle()
viewBinding.ivClear.setOnClickListener(this)
viewBinding.etContent.addTextChangedListener(this)
......
......@@ -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
......
......@@ -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.LifeAccountAuthIdentityInfoEditView
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:LifeAccountAuthIdentityInfoEditView_content_text="@string/real_name"
app:LifeAccountAuthIdentityInfoEditView_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.LifeAccountAuthIdentityInfoEditView
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:LifeAccountAuthIdentityInfoEditView_content_text="@string/id_card_number"
app:LifeAccountAuthIdentityInfoEditView_hint_text="@string/input_id_card_number"
app:layout_constraintTop_toBottomOf="@id/ev_real_name" />
<com.yidian.nightmode.widget.YdConstraintLayout
......
<?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="LifeAccountAuthIdentityInfoEditView">
<attr name="LifeAccountAuthIdentityInfoEditView_content_text" format="string" />
<attr name="LifeAccountAuthIdentityInfoEditView_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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment