Commit 2588856f by 霍志良

feat:验证码部分UI

parent acc63fce
......@@ -64,7 +64,7 @@ import kotlinx.android.synthetic.main.user_activity_register_and_login.*
* @Company 壹点灵
* @date 2018/11/28
*/
@Route(path = "/user/login1")
@Route(path = "/user/login")
class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginContract.Presenter>(),
ILoginContract.View {
......
......@@ -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
......
package com.yidianling.user.widget.PinField
/**
* @author huozhiliang
* @描述:
......
......@@ -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>
......
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