florent37 / DiagonalLayout

With Diagonal Layout explore new styles and approaches on material design
Apache License 2.0
2.56k stars 321 forks source link

Bug: shadow looks weird #2

Closed AndroidDeveloperLB closed 8 years ago

AndroidDeveloperLB commented 8 years ago

I took a screenshot and zoomed in because I didn't know if it's just my eyes : Original: device-2016-10-23-222945

After zooming in: maxthonsnap20161023223522

AndroidDeveloperLB commented 8 years ago

Also, btw, is this the entire sample? Where are those that are on the main page?

florent37 commented 8 years ago

the shadow came from android:elevation. this elevation only works with shapes, so I added a view with a rect shape behind the lauout, and totated it. I think it's cropped because of a clipping

florent37 commented 8 years ago

try to change the layout from the setContentView(R.layout) to have the others samples

AndroidDeveloperLB commented 8 years ago

Is it possible to avoid the clipping? Also, can you update the sample to show the other demos? From what I see, "activity_main" looks the nicest :)

florent37 commented 8 years ago

it should be fixed in the 1.0.3 👍

AndroidDeveloperLB commented 8 years ago

Thank you !