动态闪烁按钮ShineButton的用法

来源:互联网 发布:python抓取vip视频 编辑:程序博客网 时间:2024/05/16 15:15


1.首先要依赖这个包:

compile 'com.sackcentury:shinebutton:0.1.6'

2.在xml布局里面加载 view 是这样的:


 <com.sackcentury.shinebuttonlib.ShineButton
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:layout_centerInParent="true"
                android:id="@+id/po_image0"
                app:btn_color="@android:color/darker_gray"
                app:btn_fill_color="#999933"
                android:background="@drawable/actionsheet_bottom_selector"
                />


在最外层的布局中加入:xmlns:app="http://schemas.android.com/apk/res-auto"

0 0