jfeinstein10 / SlidingMenu

An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
Apache License 2.0
11.08k stars 5.05k forks source link

The shadow becomes not gradient #318

Open IPL opened 11 years ago

IPL commented 11 years ago

Please see below snapshot. The shadow is not gradient, so it looks quite strange. There are just three kind of code difference between my test project and the sample: 1 change SherlockActivity instead of Activity, 2 change shadow_width from 15dp to 60 dp so that the problem is easier to be seen, 3 add android:background="@color/black" in menu_frame.xml

The repro steps are quite tricky: 1 Run the sample app, click Home, 2 Open several apps so that the process of sample app disappers, 3 Long click Home, bring sample app back, 4 Click Home, 5 repeat 3, then show sliding menu.

Generally speaking, you will find the problem after step 5. If it does not appear, then repeat from step 3.

shadow_not_gradient

Is this a known issue or not? Thanks.

lucalooz commented 11 years ago

Sometimes happens to me too

marcelhoffs commented 11 years ago

I have the same kind of issue. Changed the shadow to red to illustrate the issue. This is when using a gradient in a shape drawable (xml). Currently I use a 9-patch png drawable and it seems not to produce this issue (... for now it seems). slidemenu_shadow_issue

wdziemia commented 11 years ago

happens to me too. Had to get rid of shadow. Good to know that the 9Patch images are working though

IPL commented 11 years ago

good to know that too, although I have not verify 9patch works in my project or not.

wdziemia commented 11 years ago

I've been using 9Patch and i havent had this issue come up