Android LinearLayout设置白色背景、灰色边框、倒圆角
来源:互联网 发布:淘宝美国直邮有假货吗 编辑:程序博客网 时间:2024/05/16 11:22
做项目的时候总会遇到一些问题,比如布局中某个布局的背景设置成圆角,下面来看看:drawable-hdpi下面建一个xml,例如linearlayout.xml
<span style="font-size:18px;"><?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> </span>
<span style="font-size:18px;"><LinearLayout android:orientation="vertical" android:layout_width="0dp" android:layout_height="90dip" android:layout_weight="10" android:background="@drawable/linearlayout" ></span>
0 0
- LinearLayout设置白色背景、灰色边框、倒圆角
- LinearLayout设置白色背景、灰色边框、倒圆角
- LinearLayout设置白色背景、灰色边框、倒圆角
- Android LinearLayout设置白色背景、灰色边框、倒圆角
- Android 对话框Activity去除白色边框背景
- Android 对话框Activity去除白色边框背景
- Android 设置背景边框
- LinearLayout设置灰色边框,只保留底部边框,去掉三个框的技巧。
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- android开发给linearlayout设置边框
- Android---给Linearlayout设置边框+弧度角
- Android Glide加载圆形图片,设置白色边框
- 如何消除EDIT控件设置为只读情况下的灰色背景,能改为白色或其他背景?[
- 对android中ActionBar中setDisplayHomeAsUpEnabled和setHomeButtonEnabled和setDisplayShowHomeEnabled方法的理解
- 再议libcurl编程
- 表白神器
- java实现md5加密示例
- Android Studio 出现AAPT err(Facade for): libpng error: Not a PNG file 错误解决方案
- Android LinearLayout设置白色背景、灰色边框、倒圆角
- curl的使用
- iOS Swift 基础
- java设计模式-单例模式
- hdu 1251 统计难题 字典树入门
- 为什么链表操作的函数的参数是双指针型变量
- C++中protected的访问权限
- POJ1330 TarjanLCA
- 银行家算法