设置控件边框
2018-03-20 10:02
155 查看
LinerLayout设置边框
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<size android:width="1dp" android:height="1dp"/>
<solid android:color="@color/linearLayout_divider2"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1px"
android:color="#fff" />
<solid android:color="#0058CE" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<size android:width="1dp" android:height="1dp"/>
<solid android:color="@color/linearLayout_divider2"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke
android:width="1px"
android:color="#fff" />
<solid android:color="#0058CE" />
</shape>
相关文章推荐
- iOS xib下设置UILabel等控件的边框
- 设置NumericStepper控件获得焦点时的边框粗细.
- iOS 中使用xib创建的控件边框和颜色等设置
- /**切控件圆角 设置边框*/
- 控件设置背景色 以及 QPushButton 隐藏边框
- 设置控件边框的样式
- 安卓开发设置控件边框
- 如何用控件的CALayer 的特性创建 圆角界面,边框,和设置背景
- android中设置控件边框以及如何保留上或下边框
- 代码设置TextView、Button等控件圆角边框背景颜色
- 为控件设置某几个边的边框
- android设置控件样式(边框颜色,圆角)和图片样式(圆角)
- Flex中如何通过borderThickness样式设置NumericStepper控件边框厚度的例子
- 设置NumericStepper控件获得焦点时的边框透明度.
- Flex中通过borderColor样式设置NumericStepper控件边框颜色的例子
- Android给TextView和EditText等控件设置透明背景、圆角边框
- iOS 设置控件的边框、圆角
- Swift-UIStoryboard & Xib 实时设置控件圆角、边框、阴影
- QSS控件的边框阴影效果和四个角的圆角设置
- IOS设置UIView、UIButton等控件的边框设置为圆角