半圆的背景效果
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#80FFEBEE"/>
<corners
android:bottomLeftRadius="0dp"
android:bottomRightRadius="4000dp"
android:topLeftRadius="0dp"
android:topRightRadius="4000dp"/>
</shape>

本文介绍了一种使用XML定义的半圆背景效果实现方法。通过设置不同边角的曲率半径来创建一个顶部和底部为直线而两侧为弧形的图形。这种图形可以应用于移动应用或网页的设计中。
1万+

被折叠的 条评论
为什么被折叠?



