这个很有趣的指标通过AnimCheckBox实现,下载地址:https://github.com/lguipeng/AnimCheckBox代码:activity_main. 1 <RelativeLayout ="http://schemas.android.c ...
这个很有趣的指标通过AnimCheckBox实现,下载地址:https://github.com/lguipeng/AnimCheckBox
代码:
activity_main.
1 <RelativeLayout ="http://schemas.android.com/apk/res/android" 2 ="http://schemas.android.com/tools" 3 ="http://schemas.android.com/apk/res-auto" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" > 6 7 <!-- app:circle_color 点击后的背景颜色设置 --> 8 <!-- app:stroke_color 线条颜色和点击后的勾勾颜色设置 --> 9 <!-- app:stroke_width 线条宽度设置 -->10 11 <com.github.lguipeng.library.animcheckbox.AnimCheckBox12 android:id="@+id/checkBox"13 android:layout_width="80dp"14 android:layout_height="80dp"15 android:layout_centerInParent="true"16 app:circle_color="#1976D2"17 app:stroke_width="4dp" />18 19 <Button20 android:id="@+id/button"21 android:layout_width="wrap_content"22 android:layout_height="wrap_content"23 android:layout_below="@id/checkBox"24 android:layout_centerHorizontal="true"25 android:paddingTop="20dp"26 android:text="button" />27 28 </RelativeLayout>
原标题:有趣的checkbox动画切换状态(支付宝转账成功显示)
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。