给BUtton加圆角

来源:互联网 发布:大数据存储公司 编辑:程序博客网 时间:2024/06/10 23:24
  1. //round_corner_bg.xml  
  2.   
  3. <?xml version="1.0" encoding="UTF-8"?>  
  4. <shape xmlns:android="http://schemas.android.com/apk/res/android"  
  5.     android:shape="rectangle" >  
  6.     <!-- 填充的颜色 -->  
  7.     <solid android:color="#ff000000" />  
  8.     <!-- 设置矩形的四个角为弧形 -->  
  9.     <!-- android:radius 弧形的半径 -->  
  10.     <corners android:radius="7dip" />  
  11. </shape>  
0 0
原创粉丝点击