I want to design background layout for the login screen. I want to design something just like this:
[
I tried to design it however i am not able to use rounded corners.
The output looks like this: (Updated Output)
[
Below is the code for the drawable resource file.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/rectangle">
<shape
android:shape="rectangle">
<solid android:color="#0D758D"/>
<corners
android:radius="50dp"/>
</shape>
</item>
<item android:top="300dp"
android:bottom="300dp"
android:left="-100dp"
android:right="-300dp">
<rotate
android:fromDegrees="25"
android:pivotX="20%"
android:pivotY="65%">
<shape
android:shape="rectangle">
<solid android:color="#FFFFFF"/>
<corners
android:radius="8dp"/>
</shape>
</rotate>
</item>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…