Android一个优雅实用的Submit按钮动效

ZelG08 8年前
   <h2>预览</h2>    <p><img src="https://simg.open-open.com/show/883a0140adb2284af276b7381dedfd59.gif"></p>    <h2>使用</h2>    <pre>  <com.spark.submitbutton.SubmitButton          android:layout_width="match_parent"          android:layout_height="match_parent"          android:text="Submit"          android:textColor="@color/gray"          app:sub_btn_background="@color/white"          app:sub_btn_duration="3000"          app:sub_btn_line_color="@color/green"          app:sub_btn_ripple_color="@color/green"          app:sub_btn_tick_color="@color/white" /></pre>    <h2>下载</h2>    <p>Step 1. Configure your module-level build.gradle to include the follow repository:</p>    <pre>  repositories {      maven {          url 'https://dl.bintray.com/spark/maven'      }  }</pre>    <p>Step 2. Add the dependency:</p>    <pre>  dependencies {    compile 'me.spark:submitbutton:1.0.0'  }  </pre>    <p> </p>