Я пытаюсь адаптировать фон моего экрана входа в систему в соответствии с дизайном первого изображения. Но у меня возникают трудности с адаптацией белого цвета. Кажется, это очень большой круг, больше, чем пространство, доступное на фрагменте android.
Я пытался настроить вид прямоугольной формы angular с радиусом или овальным типом, но не смог приблизьтесь к кривой, которую белый цвет создает на фоне. Может ли кто-нибудь дать мне какие-либо предложения по настройке, чтобы я мог адаптировать свой макет?


view_curved_login. xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white"/>
<corners android:topRightRadius="60dp" android:topLeftRadius="60dp" />
</shape>
фрагмент_логин. xml
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/login_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".presentation.ui.logged_out.login.LoginFragment">
<ImageView
android:id="@+id/imageView"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@mipmap/background_login"
android:paddingStart="120dp"
android:paddingTop="60dp"
android:paddingEnd="120dp"
android:paddingBottom="260dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent="0.7"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/curved_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="@drawable/view_curved_login"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent="0.4"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0" />
<androidx.cardview.widget.CardView
android:id="@+id/cv_login"
android:layout_width="0dp"
android:layout_height="200dp"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
app:layout_constraintBottom_toTopOf="@+id/curved_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/curved_view">
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>