Commit 2f6afae7 by 霍志良

feat:验证码UI微调

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