loopeer / shadow

Deprecated because of the performance not fine. Android custom shadow view, can replace your CardView
1.37k stars 141 forks source link

The edges of the image in the rounded areas of the shadow are not smooth #17

Open BuchinYury opened 6 years ago

BuchinYury commented 6 years ago

Example link - https://image.ibb.co/c6oYCS/2018_04_13_10_45_08.png

AnilYd14 commented 6 years ago

We can use layer-list with multiple item in that list with different colors.

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- solids that simulate shadow !-->
    <item>
        <shape>
            <corners android:radius="@dimen/radius_corner"></corners>
            <solid android:color="#10CCCCCC" />
            <padding android:top="2dp" android:right="2dp"
                android:bottom="2dp" android:left="2dp" />
        </shape>
    </item>

    <item>
        <shape>
           ...
        </shape>
....
    </item>
</layer-list>