version:1.3.9
fix: update:优化退出界面
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<size
|
||||
android:width="6dp"
|
||||
android:height="6dp" />
|
||||
<solid android:color="#00000000" />
|
||||
</shape>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#F2F2F2" />
|
||||
<!-- 大小 -->
|
||||
<size
|
||||
android:width="25dp"
|
||||
android:height="25dp" /><!-- 宽度和高度 -->
|
||||
<corners android:radius="2dp" />
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#A6D8EB" />
|
||||
</shape>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="#F2F2F2" />
|
||||
<!-- 大小 -->
|
||||
<size
|
||||
android:width="25dp"
|
||||
android:height="25dp" /><!-- 宽度和高度 -->
|
||||
<corners android:radius="2dp" />
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#C7C7CD" />
|
||||
</shape>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/container_et"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerInParent="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle">
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<com.tuo.customview.PwdEditText
|
||||
android:id="@+id/et"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@android:color/transparent"
|
||||
android:inputType="number" />
|
||||
|
||||
</RelativeLayout>
|
||||
24
verification-view/src/main/res/values/attrs.xml
Normal file
24
verification-view/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- 自定义验证码输入框-->
|
||||
<declare-styleable name="VerificationCodeView">
|
||||
<!--输入框的数量-->
|
||||
<attr name="icv_et_number" format="integer" />
|
||||
<!--输入框的宽度-->
|
||||
<attr name="icv_et_width" format="dimension|reference" />
|
||||
<!--输入框之间的分割线-->
|
||||
<attr name="icv_et_divider_drawable" format="reference" />
|
||||
<!--输入框文字颜色-->
|
||||
<attr name="icv_et_text_color" format="color|reference" />
|
||||
<!--输入框文字大小-->
|
||||
<attr name="icv_et_text_size" format="dimension|reference" />
|
||||
<!--输入框获取焦点时边框-->
|
||||
<attr name="icv_et_bg_focus" format="reference" />
|
||||
<!--输入框没有焦点时边框-->
|
||||
<attr name="icv_et_bg_normal" format="reference" />
|
||||
<!--是否是密码模式-->
|
||||
<attr name="icv_et_pwd" format="boolean" />
|
||||
<!--密码模式时,圆的半径-->
|
||||
<attr name="icv_et_pwd_radius" format="dimension|reference" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
6
verification-view/src/main/res/values/colors.xml
Normal file
6
verification-view/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="circle_bg">#2a2c36</color>
|
||||
|
||||
</resources>
|
||||
3
verification-view/src/main/res/values/strings.xml
Normal file
3
verification-view/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">VerificationView</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user