LinearLayout设置白色背景、灰色边框、倒圆角
来源:互联网 发布:淘宝店的食品生产编号 编辑:程序博客网 时间:2024/05/19 13:27
drawable-hdpi下面建一个xml,例如linearlayout.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#ffffff" />
<stroke
android:width="0.01dp"
android:color="#bfbfbf" />
<corners android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"/>
</shape>
在布局文件中写:
<LinearLayout
android:orientation="vertical"
android:layout_width="0dp"
android:layout_height="90dip"
android:layout_weight="10"
android:background="@drawable/linearlayout"
>
- LinearLayout设置白色背景、灰色边框、倒圆角
- LinearLayout设置白色背景、灰色边框、倒圆角
- LinearLayout设置白色背景、灰色边框、倒圆角
- Android LinearLayout设置白色背景、灰色边框、倒圆角
- LinearLayout设置灰色边框,只保留底部边框,去掉三个框的技巧。
- 如何消除EDIT控件设置为只读情况下的灰色背景,能改为白色或其他背景?[
- Android 对话框Activity去除白色边框背景
- Android 对话框Activity去除白色边框背景
- 水晶报表 CrystalReportViewer 去除白色和灰色边框
- 白色边框透明背景的自定义图片背景
- UISearchBar 背景 边框设置
- Android 设置背景边框
- <img>设置background有白色边框
- 设置只读Edit控件背景白色
- 柱状图典型事例及设置白色背景
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- 不同人生阶段不同的个人理财方式
- Android MediaPlayer的生命周期
- PonyDebugger - 远程网络数据调试工具
- Windows Socket五种I/O模型
- MySQL ('root'@'%') does not exist的问题
- LinearLayout设置白色背景、灰色边框、倒圆角
- pig运行方法:本地与云上
- 爆:中国互联网的那些黑色产业链
- DHCP的报文解析
- sendRedirect 和 forward 的区别
- 我的编程规则
- 学习FPGA的网站推荐
- ARP欺骗
- 潜水员