从RadioButton,android中删除涟漪效应?

从RadioButton,android中删除涟漪效应?,第1张

概述我已经定制了一个RadioButton样式,用于在右侧添加radiobutton图像 <RadioButton android:layout_margin="20dp" android:drawableRight="@drawable/custom_btn_radio" android:button=" 我已经定制了一个Radiobutton样式,用于在右侧添加radiobutton图像
<Radiobutton                androID:layout_margin="20dp"                androID:drawableRight="@drawable/custom_btn_radio"                androID:button="@null"                androID:layout_wIDth="match_parent"                androID:layout_height="wrap_content"                androID:text="Invite Only"/>

custom_btn_radio.xml

<?xml version="1.0" enCoding="utf-8"?><selector xmlns:androID="http://schemas.androID.com/apk/res/androID">    <item androID:drawable="@drawable/check_Box" androID:state_checked="false"/>    <item androID:drawable="@drawable/close_btn" androID:state_checked="true"/></selector>

但是,radiobutton的涟漪效应也增大了.如何从Radiobutton中消除涟漪效应?还有如何自定义涟漪效果?

先感谢您.

解决方法 使Radiobutton背景变得透明
androID:background="#ffffffff"

要么

androID:background="@androID:color/transparent"
总结

以上是内存溢出为你收集整理的从RadioButton,android中删除涟漪效应?全部内容,希望文章能够帮你解决从RadioButton,android中删除涟漪效应?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1138228.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存