Search code examples
androidandroid-imageviewshapes

how create an image with half curved shape?


I want to create an image like this

enter image description here

how can I achieve it?


Solution

  • 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"
           />
    

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