fix: padding 自定适配

This commit is contained in:
刘光利
2019-04-23 16:47:56 +08:00
parent 75486de7fd
commit 722592aebf
3 changed files with 7 additions and 5 deletions

View File

@@ -11,7 +11,7 @@
tools:context="com.dalimao.verificationcodeinput.MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_width="600px"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
@@ -39,10 +39,10 @@
android:padding="12dp"
/>
<com.dalimao.corelibrary.VerificationCodeInput
android:layout_width="800px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/colorAccent"
ver:box="4"
ver:box="3"
ver:box_bg_normal="@drawable/verification_edit_bg_normal"
ver:box_bg_focus="@drawable/verification_edit_bg_focus"
ver:child_h_padding="5dp"

View File

@@ -1,5 +1,5 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_horizontal_margin">400dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>