Add android bindings to margin:auto

Summary: [This commit](1146013e9e) (or diff D4501142) adds an `auto` option for margins.  This diff allows you to leverage that in android via attribute `yoga:margin_all="auto"` (and as expected for the other edges).

Reviewed By: emilsjolander

Differential Revision: D4634684

fbshipit-source-id: 158f70ec975b5bb3a666e590b76eb52daeb38f49
This commit is contained in:
Robert Spencer
2017-03-01 05:51:52 -08:00
committed by Facebook Github Bot
parent 3ef2970032
commit b940fadb7e
3 changed files with 69 additions and 27 deletions

View File

@@ -91,15 +91,15 @@
<enum name="space_around" value="4"/>
</attr>
<attr name="margin_left" format="dimension"/>
<attr name="margin_top" format="dimension"/>
<attr name="margin_right" format="dimension"/>
<attr name="margin_bottom" format="dimension"/>
<attr name="margin_start" format="dimension"/>
<attr name="margin_end" format="dimension"/>
<attr name="margin_horizontal" format="dimension"/>
<attr name="margin_vertical" format="dimension"/>
<attr name="margin_all" format="dimension"/>
<attr name="margin_left" format="dimension|string"/>
<attr name="margin_top" format="dimension|string"/>
<attr name="margin_right" format="dimension|string"/>
<attr name="margin_bottom" format="dimension|string"/>
<attr name="margin_start" format="dimension|string"/>
<attr name="margin_end" format="dimension|string"/>
<attr name="margin_horizontal" format="dimension|string"/>
<attr name="margin_vertical" format="dimension|string"/>
<attr name="margin_all" format="dimension|string"/>
<attr name="margin_percent_left" format="dimension"/>
<attr name="margin_percent_top" format="dimension"/>