Commit Graph

9 Commits

Author SHA1 Message Date
Joshua Pinter
9c76f21fcf Animate elevation when card is picked up.
Had to adjust a tonne of the styling to make this work and look good.

Essentially, on iOS the shadows are just cast across any boundaries of the element, but with Android, you need to provide padding (or margin) for those shadows and scaling to come through.

So, instead of having a horizontal margin on the entire SortableList, I set the horizontal margin on the rows themselves. This gives plenty of room to conduct those animations and shadows.

I also added a similar scaling transform for Android, except a little smaller so we can get more of the shadow from elevation in.

I tested out different elevation ranges and this looks to be about right.
2017-03-06 19:48:34 +03:00
Joshua Pinter
f568a26ca5 Use bounce Easing for animation.
It’s a little more playful. I like that.

Also lengthed the animation to 300 so it feels more natural.

Tested out elastic (no worky on Android), ease, inout, quad.

I like this one the best.
2017-03-06 19:48:34 +03:00
Joshua Pinter
e263f49782 Set color of text.
Was coming up as grey on Android.
2017-03-06 19:48:34 +03:00
Joshua Pinter
35dcafb5a9 Add title. 2017-03-06 19:48:34 +03:00
Joshua Pinter
d44f3a0aa2 Corrected padding to allow for Android’s elevation dropshadows to not get cut off. 2017-03-06 19:48:34 +03:00
Joshua Pinter
00f03749e7 Turn kitties into cards on Android. 2017-03-06 19:48:34 +03:00
Joshua Pinter
bdf3ebae96 Replace first kitten photo with a working one. (#16)
The first kitty in the example app didn’t have a picture because the URL for the image wasn’t working. Updated it to a random working one and now we can see 1 more kitty in the lineup. :)
2017-03-06 12:12:44 +03:00
Timur Gibadullin
11b715f2da Fix android example 2017-02-07 01:05:56 +03:00
Timur Gibadullin
f4d7475be1 Add android example 2017-01-28 23:30:48 +03:00