android如何设置Button为圆角

 时间:2024-10-15 12:33:58

1、在您的android工程的res目录下的drawable建立xml配置文件button_shape.xml

android如何设置Button为圆角

2、在button_shape.xml按照您自己的需求写入如图所示的属性

android如何设置Button为圆角

3、在button按钮的属性中,设置android:background="@drawable/button_shape",这样就使用了刚刚我们自定义的button_shape.xml资源

android如何设置Button为圆角
  • VC6.0如何设置缩进大小?
  • vwmare 怎么建立分组
  • PHP怎么定义变量输出
  • php怎样创建一个长度为10的数组,存放奇数
  • div+css浮动布局怎么用
  • 热门搜索
    四川泡菜怎么做 高原反应怎么缓解 pdf文件怎么打开 huracan怎么读 怎么看k线图 小麦胚芽怎么吃 质量分数怎么算 ps索引怎么解锁 逆回购怎么操作 潍坊科技学院怎么样