Commit 2f6afae7 by 霍志良

feat:验证码UI微调

parent 751a3eb5
...@@ -12,6 +12,7 @@ import android.text.method.TransformationMethod ...@@ -12,6 +12,7 @@ import android.text.method.TransformationMethod
import android.util.AttributeSet import android.util.AttributeSet
import android.view.inputmethod.EditorInfo import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager import android.view.inputmethod.InputMethodManager
import com.yidianling.common.tools.LogUtil
import com.yidianling.user.R import com.yidianling.user.R
...@@ -43,7 +44,6 @@ open class PinField : AppCompatEditText { ...@@ -43,7 +44,6 @@ open class PinField : AppCompatEditText {
} }
protected var singleFieldWidth = 0 protected var singleFieldWidth = 0
var lineThickness = dp2px(1.0f) var lineThickness = dp2px(1.0f)
set(value) { set(value) {
field = value field = value
...@@ -82,7 +82,7 @@ open class PinField : AppCompatEditText { ...@@ -82,7 +82,7 @@ open class PinField : AppCompatEditText {
protected var yPadding = dp2px(10f) protected var yPadding = dp2px(10f)
public var highlightSingleFieldType = var highlightSingleFieldType =
HighlightType.ALL_FIELDS HighlightType.ALL_FIELDS
private var lastCursorChangeState: Long = -1 private var lastCursorChangeState: Long = -1
...@@ -141,7 +141,6 @@ open class PinField : AppCompatEditText { ...@@ -141,7 +141,6 @@ open class PinField : AppCompatEditText {
highlightPaint = Paint(fieldPaint) highlightPaint = Paint(fieldPaint)
highlightPaint.color = highlightPaintColor highlightPaint.color = highlightPaintColor
highlightPaint.strokeWidth = highLightThickness.toFloat() highlightPaint.strokeWidth = highLightThickness.toFloat()
fieldBgColor = Color.TRANSPARENT fieldBgColor = Color.TRANSPARENT
fieldBgPaint.style = Paint.Style.FILL fieldBgPaint.style = Paint.Style.FILL
} }
......
...@@ -91,5 +91,6 @@ ...@@ -91,5 +91,6 @@
app:layout_constraintRight_toRightOf="@id/verify_code" app:layout_constraintRight_toRightOf="@id/verify_code"
app:layout_constraintTop_toTopOf="@id/login_password" app:layout_constraintTop_toTopOf="@id/login_password"
app:layout_constraintBottom_toBottomOf="@id/login_password" app:layout_constraintBottom_toBottomOf="@id/login_password"
app:layout_goneMarginTop="@dimen/platform_dp_15"
/> />
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>
\ 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