Android中实现图文并茂的按钮实例代码
作者:十行道人 时间:2022-10-18 22:58:49
效果图如下所示:
代码:
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
android:gravity="center"
android:background="#8fff" >
<Button android:text="从业人员"
android:textSize="12sp"
android:textColor="#333"
android:gravity="center_vertical|center_horizontal"
android:id="@+id/unit_btn_cyry"
android:layout_width="100dp"
android:layout_height="40dp"
android:padding="10dp"
android:drawableLeft="@drawable/icon_cyry"
android:background="@drawable/shape_both_corner_white"></Button>
<Button android:text="相关人员"
android:textSize="12sp"
android:textColor="#333"
android:gravity="center_vertical|center_horizontal"
android:id="@+id/unit_btn_xgry"
android:layout_width="100dp"
android:layout_height="40dp"
android:padding="10dp"
android:layout_marginLeft="20dp"
android:drawableLeft="@drawable/icon_xgry"
android:background="@drawable/shape_both_corner_white"></Button>
</LinearLayout>
以上所述是小编给大家介绍的Android中实现图文并茂的按钮实例代码网站的支持!
来源:http://www.cnblogs.com/shurun/archive/2017/04/13/6702808.html
标签:android,图文按钮
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Android 7.0 Nougat不得不知的11项新功能
2021-06-12 22:50:07
java仿QQ微信聊天室功能的实现
2022-05-14 17:44:28
![](https://img.aspxhome.com/file/2023/5/67005_0s.png)
完美解决gson将Integer默认转换成Double的问题
2022-06-06 00:53:36
C#缓存之SqlCacheDependency用法实例总结
2023-04-14 10:31:37
mybatis根据表逆向自动化生成代码的实现
2023-03-12 15:39:02
![](https://img.aspxhome.com/file/2023/9/61079_0s.png)
Android编程实现实时监听EditText文本输入的方法
2023-04-23 02:58:16
![](https://img.aspxhome.com/file/2023/4/137324_0s.jpg)
Unity 修改FBX模型动画的操作
2023-03-17 17:59:39
![](https://img.aspxhome.com/file/2023/3/80053_0s.jpg)
Java获取环境变量(System.getenv)的方法
2021-10-06 03:23:47
![](https://img.aspxhome.com/file/2023/4/104194_0s.png)
Java桥梁设计模式优雅地将抽象与实现分离
2023-12-11 14:56:36
![](https://img.aspxhome.com/file/2023/9/97929_0s.png)
Java实现按权重随机数
2023-11-28 23:15:32
解决线程池中ThreadGroup的坑
2023-08-24 00:13:47
解决Kotlin 类在实现多个接口,覆写多个接口中相同方法冲突的问题
2023-01-31 23:07:59
Spring Boot项目如何同时支持HTTP和HTTPS协议的实现
2023-11-19 19:57:05
![](https://img.aspxhome.com/file/2023/1/59321_0s.jpg)
全面解析Android应用开发中Activity类的用法
2022-03-11 00:48:53
![](https://img.aspxhome.com/file/2023/3/137863_0s.png)
Java 8 中的 10 个特性总结及详解
2023-07-21 00:06:51
![](https://img.aspxhome.com/file/2023/0/65200_0s.png)
Java经典设计模式之模板方法模式定义与用法示例
2021-07-09 14:07:49
Android中使用itemdecoration实现时间线效果
2021-10-08 12:15:49
![](https://img.aspxhome.com/file/2023/5/100615_0s.png)
学习Java的Date、Calendar日期操作
2023-09-04 22:26:38
SpringBoot打Jar包在命令行运行流程详解
2023-11-24 16:53:59
![](https://img.aspxhome.com/file/2023/8/59548_0s.png)
Restful传递数组参数及注解大全
2021-07-25 05:39:35