Reputation: 447
I am working on cinema tickets application and now I need to create a curved view with blur shadow like this :
Is there a way of achieving this?
I have tried rotating image in x axis (-45%) but it is not what i need
Upvotes: 0
Views: 39
Reputation: 3699
as per @naggab's comment you should include image for this
but also I try to achieve this using below code
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="oval">
<solid android:color="@color/white" />
<size
android:width="450dp"
android:height="110dp" />
</shape>
</item>
<item android:top="50dp">
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimary" />
</shape>
</item>
<item android:top="20dp">
<shape android:shape="oval">
<solid android:color="@color/colorPrimary" />
<size
android:width="450dp"
android:height="110dp" />
</shape>
</item>
<item android:top="50dp">
<rotate
android:fromDegrees="4"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimary" />
</shape>
</rotate>
</item>
<item android:top="50dp">
<rotate
android:fromDegrees="-4"
android:toDegrees="45">
<shape android:shape="rectangle">
<solid android:color="@color/colorPrimary" />
</shape>
</rotate>
</item>
</layer-list>
Upvotes: 2