如何使布局圆角..? [英] How to make layout with rounded corners..?
本文介绍了如何使布局圆角..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请任何人能帮助我。如何使与布局圆角
..
我想圆角应用到我的的LinearLayout
。
Please anyone can help me . How to make layout with rounded corners
..
i want to apply rounded corners to my LinearLayout
.
推荐答案
1:定义的 layout_bg.xml 在可绘制:
1: Define layout_bg.xml in drawables:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF"/>
<stroke android:width="3dip" android:color="#B1BCBE" />
<corners android:radius="10dip"/>
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
</shape>
2:添加 layout_bg.xml
为背景,以您的布局
2: Add layout_bg.xml
as background to your layout
android:background="@drawable/layout_bg"
这篇关于如何使布局圆角..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文