<?xml version="1.0" encoding="utf-8"?>
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<!-- Colored rectangle-->
|
<item>
|
<shape android:shape="rectangle">
|
<size
|
android:width="280dp"
|
android:height="122dp" />
|
<solid android:color="#2B3140" />
|
<corners android:radius="7dp"/>
|
</shape>
|
</item>
|
<!-- This rectangle for the left side -->
|
<!-- Its color should be the same as layout's background -->
|
<item
|
android:right="280dp"
|
android:left="-280dp"
|
android:top="-280dp"
|
android:bottom="-280dp">
|
<rotate
|
android:fromDegrees="35">
|
<shape android:shape="rectangle">
|
<solid android:color="#181B2A" />
|
</shape>
|
</rotate>
|
</item>
|
<!-- This rectangle for the right side -->
|
<!-- Their color should be the same as layout's background -->
|
<item
|
android:right="-280dp"
|
android:left="280dp"
|
android:top="-280dp"
|
android:bottom="-280dp">
|
<rotate
|
android:fromDegrees="35">
|
<shape android:shape="rectangle">
|
<solid android:color="#181B2A" />
|
</shape>
|
</rotate>
|
</item>
|
</layer-list>
|