Commit 2588856f by 霍志良

feat:验证码部分UI

parent acc63fce
...@@ -64,7 +64,7 @@ import kotlinx.android.synthetic.main.user_activity_register_and_login.* ...@@ -64,7 +64,7 @@ import kotlinx.android.synthetic.main.user_activity_register_and_login.*
* @Company 壹点灵 * @Company 壹点灵
* @date 2018/11/28 * @date 2018/11/28
*/ */
@Route(path = "/user/login1") @Route(path = "/user/login")
class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginContract.Presenter>(), class RegisterAndLoginActivity : BaseMvpActivity<ILoginContract.View, ILoginContract.Presenter>(),
ILoginContract.View { ILoginContract.View {
......
...@@ -188,7 +188,10 @@ open class PinField : AppCompatEditText { ...@@ -188,7 +188,10 @@ open class PinField : AppCompatEditText {
) HighlightType.CURRENT_FIELD else HighlightType.ALL_FIELDS ) HighlightType.CURRENT_FIELD else HighlightType.ALL_FIELDS
highlightSingleFieldType = highlightSingleFieldType =
HighlightType.getEnum( 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) fieldBgColor = a.getColor(R.styleable.User_PinField_User_fieldBgColor, fieldBgColor)
textPaint.typeface = typeface textPaint.typeface = typeface
......
package com.yidianling.user.widget.PinField package com.yidianling.user.widget.PinField
/** /**
* @author huozhiliang * @author huozhiliang
* @描述: * @描述:
......
...@@ -49,7 +49,8 @@ ...@@ -49,7 +49,8 @@
<com.yidianling.user.widget.PinField.SquarePinField <com.yidianling.user.widget.PinField.SquarePinField
android:id="@+id/verify_code" android:id="@+id/verify_code"
android:cursorVisible="true" android:cursorVisible="true"
app:highlightType="currentField" app:User_highlightType="currentField"
app:User_isCursorEnabled="true"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintTop_toBottomOf="@id/tv_phone" app:layout_constraintTop_toBottomOf="@id/tv_phone"
...@@ -58,8 +59,8 @@ ...@@ -58,8 +59,8 @@
android:layout_marginStart="@dimen/platform_dp_40" android:layout_marginStart="@dimen/platform_dp_40"
android:layout_marginEnd="@dimen/platform_dp_40" android:layout_marginEnd="@dimen/platform_dp_40"
android:layout_marginTop="67dp" android:layout_marginTop="67dp"
app:cornerRadius="8dp" app:user_cornerRadius="8dp"
app:noOfFields="4" app:User_noOfFields="4"
android:inputType="number" android:inputType="number"
> >
</com.yidianling.user.widget.PinField.SquarePinField> </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