<<<<<<小图标 白色的看不见 点击可以下载

//androidx项目    XUi框架implementation 'com.github.xuexiangjys:XUI:1.1.5'implementation 'androidx.appcompat:appcompat:1.1.0'implementation 'androidx.recyclerview:recyclerview:1.1.0'implementation 'com.google.android.material:material:1.1.0'implementation 'com.github.bumptech.glide:glide:4.11.0'
 <RelativeLayoutandroid:id="@+id/rl_list"android:layout_width="match_parent"android:layout_height="match_parent"android:layout_below="@+id/pull_layout"android:background="@color/white"><com.xuexiang.xui.widget.button.ButtonViewandroid:id="@+id/bt_set_zs"style="@style/ButtonView.Green"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_marginLeft="@dimen/dp_52"android:layout_marginTop="@dimen/dp_20"android:layout_marginRight="@dimen/dp_52"android:paddingTop="@dimen/dp_12"android:paddingBottom="@dimen/dp_12"android:text="@string/tv_set_zs"app:textDrawable="@mipmap/ic_tachometer_bai"app:textRadius="@dimen/dp_24" /><com.xuexiang.xui.widget.button.ButtonViewandroid:id="@+id/bt_set_ryz"style="@style/ButtonView.Green"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/bt_set_zs"android:layout_marginLeft="@dimen/dp_52"android:layout_marginTop="@dimen/dp_34"android:layout_marginRight="@dimen/dp_52"android:paddingTop="@dimen/dp_12"android:paddingBottom="@dimen/dp_12"android:text="@string/set_ryz"app:textDrawable="@mipmap/ic_oxygen_bai"app:textRadius="@dimen/dp_24" /><com.xuexiang.xui.widget.button.ButtonViewandroid:id="@+id/bt_set_bysj"style="@style/ButtonView.Green"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/bt_set_ryz"android:layout_marginLeft="@dimen/dp_52"android:layout_marginTop="@dimen/dp_34"android:layout_marginRight="@dimen/dp_52"android:paddingTop="@dimen/dp_12"android:paddingBottom="@dimen/dp_12"android:text="@string/set_bysj"app:textDrawable="@mipmap/ic_oxygen_bai"app:textRadius="@dimen/dp_24" /><com.xuexiang.xui.widget.button.ButtonViewandroid:id="@+id/bt_set_off"style="@style/ButtonView.Orange"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@+id/bt_set_bysj"android:layout_marginTop="@dimen/dp_40"android:paddingTop="@dimen/dp_15"android:paddingBottom="@dimen/dp_15"android:text="@string/gbsb"app:textDrawable="@mipmap/ic_off_bai"/></RelativeLayout></RelativeLayout>

styles.xml

  <!--button加图标自定义样式--><style name="ButtonView.Green"><item name="textSolidColor">#19C45F</item><item name="textSelectedSolidColor">#82DFA8</item><item name="textNormalTextColor">#FFFFFF</item><item name="textSelectedTextColor">#FFFFFF</item></style><style name="ButtonView.Orange"><item name="textSolidColor">#FF7373</item><item name="textSelectedSolidColor">#FF2323</item><item name="textNormalTextColor">#FFFFFF</item><item name="textSelectedTextColor">#FFFFFF</item></style>

XUI框架圆角带图片 ButtonView相关推荐

  1. Glide加载常用类型图片(带白色边框的圆形图、圆角矩形图片、圆形图片)

    一:依赖包: Glide_github implementation 'com.github.bumptech.glide:glide:4.8.0' annotationProcessor 'com. ...

  2. Android ImageView到底怎么设置圆角图片?背景圆角?控件圆角?图片圆角?占位图圆角?

    前言 在我们实际开发应用的过程中,我想大家或多或少都遇到过需要加载圆角图片的场景,还有一些图片是四周圆角不对称,异性圆角等等情况. 我们可能会去网上或Github上搜索一些RoundImageView ...

  3. 将HTML文件转换为PDF文件(Thymeleaf模板转换,简单解决中文问题, 解决HTML带图片转换PDF文件问题)

    将HTML文件转换为PDF文件 一.导入依赖 <!-- itext生成Pdf --> <dependency><groupId>com.itextpdf</g ...

  4. Fulutter 设置圆角背景图片Container 设置边框、圆角、阴影

    Fulutter 设置圆角背景图片&Container 设置边框.圆角.阴影 在 Flutter 中,如何实现背景图片呢?又如何实现带圆角的背景图片呢? Fulutter 设置圆角背景图片 使 ...

  5. 用JAVA awt实现Image Asset Studio生成圆形或圆角矩形图片功能

    背景 随着Android 7.1推出Round Icon Resources功能(不了解的,可以看Android开发者官网这篇文章Android 7.1 for Developers),圆形Icon应 ...

  6. XUI框架实现比原生框架更好看并且功能更齐全的EditText框?,以及如何获取EditText的值

    XUI之EditText文本输入框 第一步:配置XUI环境 第二步:编写EditText的xml页面. 第三步:如何获取EditText里面的值呢? 1.不要忘记初始化XUI 2.获取文本框的值 还是 ...

  7. android github轮播图,Android使用开源框架ANDROID-IMAGE-INDICATOR实现图片轮播部署

    之前的博文中有介绍关于图片轮播的实现方式,分别为(含超链接): 今天通过使用GitHub中的开源项目android-image-indicator来简单实现APP自带图片的轮播以及加载网络图片进行轮播 ...

  8. iOS 开发 二维码生成大全(黑白/彩色二维码和带图片的二维码)详解

    前言 扫描二维码使用的是coreImage框架,属于UIKit框架中的体系,多以使用时不用导入coreImage框架 开始之前,让我们谈谈Core Image框架中最重要的几个类: CIContext ...

  9. axure中怎么把图片变圆_orcad中怎么创建带图片的Title Block?

    一般来说,Title Block都是调用系统本身自带的,或者是修改自带的文件,所以这里我们直接复制一个系统自带的Title Block,修改后保存在路径下,进行关联即可. 第一步,从系统自带的模板Ca ...

  10. xhtmlrenderer 将html转换成pdf,完美css,带图片,手动分页,解决内容断开的问题

    xhtmlrenderer 将html转换成pdf,完美css,带图片,手动分页,解决内容断开的问题 参考文章: (1)xhtmlrenderer 将html转换成pdf,完美css,带图片,手动分页 ...

最新文章

  1. 程序员看过来!高通漏洞赏金最高1.5万美金
  2. bugku ctf 杂项 啊哒 writeup || foremost的安装
  3. sass 在线转换器
  4. root域名服务器 gtld服务器_购买阿里云域名和空间服务器实操
  5. Yii的查询后缀限定
  6. onDraw什么时候被调用?
  7. 虚拟机安装windows ghost版本系统记录完整过程
  8. tcp wireshark 过滤syn_使用 WireShark 分析 TCP/IP 三次握手 和 四次挥手
  9. 走进新华三解决方案 360°业务能力中心,读懂新华三如何助力企业数字化转型
  10. ASP.NET 页生命周期
  11. Keras requires TensorFlow 2.2 or higher怎么办?
  12. 应用程序架构指导袖珍版
  13. php中%3c w() %3e,DedeCMS V5.7 SP2后台存在代码执行漏洞
  14. 【机器学习中的数学】多项式分布及其共轭分布
  15. Anatomy of a Program in Memory
  16. matlab判断同构数,c语言:编写函数判断x是否同构数
  17. Mac使用手册:如何检查 Mac 或 iOS 设备仍在保修范围内
  18. 谨防打黑工丨被“偷走”的实习期
  19. 大数据还能火多久?通俗说大数据、人工智能、机器学习之关系
  20. 真正的程序员到底应该是什么样子的?

热门文章

  1. vscode通过扩展插件实现流程图绘制
  2. oracle ssd加速,使用Oracle的SSD
  3. 视频教程-思科CCNP专题系列⑤:路由策略路由-思科认证
  4. 写一个程序,将接收的华氏温度转换为对应的摄氏温度。
  5. Android6.0源码下载
  6. 安装使用TortoiseSVN + google code
  7. smartPrinter安装报错
  8. python图像文字识别 - PyTesser
  9. 用计算机指令 自动化测试 信号源,一种应用于铁路微机监测采集板的自动检测工装系统的制作方法...
  10. 计算机一级二级三级四级相当的水平,计算机等级考试通过必看:一至四级通关策略...