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

menu has no shadow {Solved} #48

Open
GilianMarques opened this issue Mar 6, 2017 · 0 comments
Open

menu has no shadow {Solved} #48

GilianMarques opened this issue Mar 6, 2017 · 0 comments

Comments

@GilianMarques
Copy link

GilianMarques commented Mar 6, 2017

it happens of you change popup's background on @Styles like that:

<style name="DroppyTheme" parent="Droppy.DroppyPopup"> <item name="android:background">@color/someColor</item> </style>

to solve this i created a shape and seted it as background using the theme above like :

<item name="android:background">@drawable/popup_background</item>

Here is the code :
hope it can be helpfull.

popup_background.xml

`

<item>
    <shape>
        <padding android:top="1dp" android:right="1dp" android:bottom="2dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="8dp" />
    </shape>
</item>

<item>
    <shape>
        <padding android:top="1dp" android:right="1dp" android:bottom="2dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="8dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="1dp" android:right="1dp" android:bottom="2dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="8dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1.5dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="8dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1.5dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="8dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1.5dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="7dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="6dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="5dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="4dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="3dp" />
    </shape>
</item>
<item>
    <shape>
        <padding android:top="0.4dp" android:right="1dp" android:bottom="1dp" android:left="1dp" />
        <solid android:color="#05000000" />
        <corners android:radius="3dp" />
    </shape>
</item>

<!-- Background -->
<item>
    <shape>
        <solid android:color="@color/colorAccent" />
        <corners android:radius="3dp" />
    </shape>
</item>

`

@GilianMarques GilianMarques changed the title menu has no shadow menu has no shadow {Solved} Mar 10, 2017
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

1 participant