首页 > 解决方案 > 如何创建半弯曲形状的图像?

问题描述

我想创建这样的图像

在此处输入图像描述

我怎样才能实现它?

标签: androidandroid-imageviewshapes

解决方案


Try this one
    <developer.shivam.crescento.CrescentoImageView
        android:id="@+id/crescentoImageView"
        android:layout_width="match_parent"
        android:layout_marginLeft="100dp"
        android:layout_height="300dp"
        android:layout_alignParentTop="true"
        android:elevation="5dp"
        android:scaleType="centerCrop"
        app:srcCompat="@drawable/bike_wallpaper"
        app:crescentoTintMode="manual"
        app:curvature="50dp"
        android:rotation="90"
        app:curvatureDirection="outward"
       />

检查此 URL https://github.com/developer-shivam/crescento?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=4684


推荐阅读