shadow icon indicating copy to clipboard operation
shadow copied to clipboard

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

Open BuchinYury opened this issue 6 years ago • 1 comments

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

BuchinYury avatar Apr 13 '18 07:04 BuchinYury

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>

AnilYd14 avatar Jun 18 '18 06:06 AnilYd14