效果:



corner.xml

[html]view plaincopy

  1. <?xmlversion="1.0"encoding="utf-8"?>

  2. <shapexmlns:android="http://schemas.android.com/apk/res/android">

  3. <solidandroid:color="#ffffff"/>

  4. <corners

  5. android:bottomLeftRadius="20dp"

  6. android:bottomRightRadius="20dp"

  7. android:topLeftRadius="20dp"

  8. android:topRightRadius="20dp"/>

  9. </shape>


android:background="@drawable/corner"


更多相关文章

  1. Button去掉自带的阴影效果
  2. Android沉浸式状态栏下,如何代码实现android:fitsSystemWindows="
  3. Android支付密码输入框
  4. Android(安卓)卡片翻转效果
  5. Android实现振动效果
  6. android githubf地址
  7. android仿UC墨迹天气左右拖动效果
  8. Android(安卓)2D绘图总结
  9. android获取手机已经安装的app信息

随机推荐

  1. Android Canvas和Paint
  2. 控件布局_TableLayout
  3. Android UI 优化
  4. android 资源文件
  5. Android 系统联系人相关URI
  6. Android(安卓)kotlin和java反编译后的sma
  7. Android(安卓)AppWidget一个简单教程
  8. Inflate()---Android之Inflate()方法用途
  9. Android动态加载相关文章记录
  10. Android Bitmap转换