当前位置: 移动技术网 > 移动技术>移动开发>Android > Android 开发 shape绘制圆形的代码实例

Android 开发 shape绘制圆形的代码实例

2018年12月09日  | 移动技术网移动技术  | 我要评论

android 开发 shape绘制圆形的代码实例

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

<shape xmlns:android="https://schemas.android.com/apk/res/android"
    android:shape = "rectangle"
    >
    <size android:height="40dp"
        android:width="80dp"/>
    <solid android:color = "#f74b4b" />
    <corners
        android:bottomleftradius = "0dp"
        android:bottomrightradius = "0dp"
        android:topleftradius = "60dp"
        android:toprightradius = "60dp"/>
</shape>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网