saulmm / CoordinatorBehaviorExample

2.71k stars 590 forks source link

Layout Not Support For Tablet #9

Closed nishantBabaria closed 8 years ago

nishantBabaria commented 9 years ago

CoordinatorLayout Not Supported for Tablet Layout

screenshot_2015-09-08-12-12-54

saulmm commented 9 years ago

Thanks @nishantBabaria I'll implement tablet support soon!

LeoSnek commented 9 years ago

I have the same layout issue on a tablet, I'd love a fix for this!

davcpas1234 commented 8 years ago

I fixed this through changing AvatarImageBehaviour.java line 87:

- mStartYPosition = (int) (child.getY() + (child.getHeight() / 2));
+ mStartYPosition = (int) (dependency.getY());`

Therefore the starting position of the Image is relative to the Toolbar instead of being dependant on the window.