大神帮忙:Android ImageView怎么设置圆角啊

a-white-lie 2011-11-08 03:28:12
大神帮忙:Android ImageView怎么设置圆角啊
...全文
653 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
b87936260 2011-11-08
  • 打赏
  • 举报
回复

<?xml version="1.0" encoding="UTF-8"?>

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:id="@android:id/background">
<shape>
<corners android:radius="50dip" />
<gradient
android:startColor="#aa6699CC"
android:centerColor="#aa3399CC"
android:centerY="0.75"
android:endColor="#aa7476ff"
android:angle="270"

/>
</shape>
</item>

</layer-list>

类是这样定义style应该也行吧
b87936260 2011-11-08
  • 打赏
  • 举报
回复
设置个圆的背景图片不久是圆的吗?

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧