Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BuchinYury opened this issue Apr 13, 2018 · 1 comment

Comments

@BuchinYury
Copy link

BuchinYury commented Apr 13, 2018

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

@AnilYd14
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants