点击按钮背景慢慢扩大com.balysv.materialripple.MaterialRippleLayout

直接用,简单粗暴,先从AndroidStudio里面添加依赖(不用到类库也不用jar包),com.balysv:material-menu:1.1.0,记得加命名空间,

xmlns:app="http://schemas.android.com/apk/res-auto"
<p>
</p><p> <com.balysv.materialripple.MaterialRippleLayout</p>            android:layout_width="0dip"

            android:layout_height="match_parent"
            android:layout_weight="1"
            app:mrl_rippleAlpha="0.3"
            app:mrl_rippleColor="@color/maincolor"
            app:mrl_rippleDuration="300"
            app:mrl_rippleHover="true"
            app:mrl_rippleOverlay="true">

           
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentBottom="true"
                    android:layout_centerHorizontal="true"
                    android:layout_marginBottom="6dp"
                    android:text="揽件"
                    android:textColor="#484444"
                    android:textSize="12dp" />
            </RelativeLayout>
        </com.balysv.materialripple.MaterialRippleLayout>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值