android中使用图文并茂的按钮
2024-08-24 19:17:26
上代码:
<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="XX人员"
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="XXX人员"
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>
最新文章
- 个人学习记录1:二维数组保存到cookie后再读取
- Go语言test之类方法测试
- Java Day 04
- java新手笔记27 监听器类
- UNIX环境高级编程第二版代码笔记
- 安装loadrunner11 ,出现如下错误如何解决?
- JSON基础学习
- CSS3的radial-gradient(径向渐变)
- AnimationSet的使用
- sqlDataAdapter的FillSchema用法
- And【sql语句之为何用and一个字段两个值得不到表中的数据】
- 边框0.5px的实现方法
- lpad函数
- Maven 学习总结 (五) 之 持续集成、构建web应用
- Node.js基础学习三之登录功能
- c++中vector类的用法
- PowerBI新功能: 自定义数据连接器(Data Connector)
- ES6-课程介绍
- Spring MVC静态资源处理(转)
- Log4net(一)-——配置文件
热门文章
- xcode6-添加真机设备
- asp.net listview 实现分页浏览效果
- 使用spring框架时,使用xml还是注解
- HDU3829 Cat VS Dog —— 最大独立集
- idea新建springmvc+spring+mybaties项目1
- easy_install uncompyle6 egg
- Resolve the error: an error occurred during local report processing
- 并不对劲的loj2134:uoj132:p2304:[NOI2015]小园丁与老司机
- CentOS6.0忘记root密码解决办法
- 【转】python中获得当前目录和上级目录