Action:alter
Description:修改VercodeEditText控件,修复下划线异常、height无法适配、宽度左右缩进问题; TODO:修复无法输入bug
This commit is contained in:
@@ -1,13 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.jkb.vercodeedittext.MainActivity">
|
||||
android:background="@android:color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
<com.jkb.vcedittext.VerificationCodeEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Hello World!" />
|
||||
android:layout_margin="20dp"
|
||||
android:inputType="number"
|
||||
android:text="123"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="40sp"
|
||||
app:bottomLineHeight="2dp"
|
||||
app:bottomLineNormalColor="@color/gravy_light"
|
||||
app:bottomLineSelectedColor="@color/colorAccent"
|
||||
app:figures="4"
|
||||
app:selectedBackgroundColor="@color/colorPrimary_alpha33"
|
||||
app:verCodeMargin="10dp" />
|
||||
|
||||
<com.jkb.vcedittext.VerificationCodeEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="20dp"
|
||||
android:inputType="number"
|
||||
android:text="1234"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="40sp"
|
||||
app:bottomLineHeight="2dp"
|
||||
app:bottomLineNormalColor="@color/gravy_light"
|
||||
app:bottomLineSelectedColor="@color/colorAccent"
|
||||
app:figures="5"
|
||||
app:selectedBackgroundColor="@color/colorPrimary_alpha33"
|
||||
app:verCodeMargin="10dp" />
|
||||
|
||||
<com.jkb.vcedittext.VerificationCodeEditText
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_margin="20dp"
|
||||
android:inputType="number"
|
||||
android:text="12"
|
||||
android:textColor="@color/colorPrimary"
|
||||
android:textSize="40sp"
|
||||
app:bottomLineHeight="2dp"
|
||||
app:bottomLineNormalColor="@color/gravy_light"
|
||||
app:bottomLineSelectedColor="@color/colorAccent"
|
||||
app:figures="6"
|
||||
app:selectedBackgroundColor="@color/colorPrimary_alpha33"
|
||||
app:verCodeMargin="10dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="colorPrimary">#bd3e27</color>
|
||||
<color name="colorPrimaryDark">#702314</color>
|
||||
<color name="colorAccent">#bd3e27</color>
|
||||
<color name="colorPrimary_alpha33">#64e42604</color>
|
||||
<color name="gravy_light">#999999</color>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user