fix: 控件库化

This commit is contained in:
guangli.lgl
2017-03-02 11:02:45 +08:00
parent c696071f3c
commit 9b2341be6c
29 changed files with 41 additions and 111 deletions

View File

@@ -26,4 +26,6 @@ dependencies {
})
compile 'com.android.support:appcompat-v7:24.2.1'
testCompile 'junit:junit:4.12'
// compile 'com.github.liuguangli:VerificationCodeInput:master-SNAPSHOT'
compile project(':corelibrary');
}

View File

@@ -1,17 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main"
xmlns:ver="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.dalimao.verificationcodeinput.MainActivity">
<TextView
<com.dalimao.corelibrary.VerificationCodeInput
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
ver:box="4"
ver:box_bg="@drawable/verification_edit_bg_selector"
ver:child_h_padding="5dp"
android:layout_centerInParent="true"
android:id="@+id/verificationCodeInput"
>
</com.dalimao.corelibrary.VerificationCodeInput>
</RelativeLayout>