Skip to content

replaced top and bottom shadow by background shadow 9patch#26

Open
meesec wants to merge 2 commits into
justasm:masterfrom
meesec:full_shadow
Open

replaced top and bottom shadow by background shadow 9patch#26
meesec wants to merge 2 commits into
justasm:masterfrom
meesec:full_shadow

Conversation

@meesec

@meesec meesec commented May 21, 2016

Copy link
Copy Markdown

suggested fix for recent discussion around drag shadow.

@justasm

justasm commented May 22, 2016

Copy link
Copy Markdown
Owner

Nice! Thanks a lot, I like this solution. Would be interested to hear from @escobar5 if this solves #25.

Minor nitpicks:

  • The 9-patch shadow is a bit too dark imo, I think it may look nicer if the opacity was lower.
  • We should include a 9-patch for each of the common densities.

*/
private final Drawable dragBottomShadowDrawable;
private final Drawable dragShadowDrawable;
private final int dragShadowHeight;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename this to dragShadowMargin or similar.

@meesec

meesec commented May 22, 2016

Copy link
Copy Markdown
Author

updated.

i checked on an ldpi emulator, seems to work fine with the xxhdpi 9patch.

set alpha to 75 on the shadow. feel free to pick a different alpha.

@justasm

justasm commented May 22, 2016

Copy link
Copy Markdown
Owner

What did you use to generate the 9-patch?

@meesec

meesec commented May 22, 2016

Copy link
Copy Markdown
Author

A designer in my project build it a while ago. I assume sketch.

@escobar5

Copy link
Copy Markdown

thanks, I will check it as soon as I can

@daktarin

Copy link
Copy Markdown

How can I remove shadow when moving?

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

Successfully merging this pull request may close these issues.

4 participants