sulewicz / springlayout

RelativeLayout on steroids.
MIT License
79 stars 15 forks source link

Add alignmentGravity parameter #4

Closed sulewicz closed 10 years ago

sulewicz commented 10 years ago

Add support for following parameters: layout_alignLeftGravity layout_alignRightGravity layout_alignTopGravity layout_alignBottomGravity

These params should allow aligning any edge with specific gravity setting, for example: layout_alignLeft="@id/B" layout_alignLeftGravity="center"

Should align left edge of current view with the horizontal center of view B.

sulewicz commented 10 years ago

Gosh, this won't work as expected with Springs :(