microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 277 forks source link

middle Not Recognized As Valid stickTo Option #75

Closed commonsguy closed 8 years ago

commonsguy commented 9 years ago

The stickTo attribute is documented as supporting middle. However, that is not accepted:

Error:(15, 27) String types not allowed (at 'stickTo' with value 'middle').

Values of right and bottom are. middle does not seem to be in your stickTo attr enum.

The documentation also mentions an auto value, which does not appear in the enum either.

JlUgia commented 9 years ago

Hello @commonsguy! Thanks for looking into this. The values middle and auto got discarded as they added almost no value and a lot of noise to the rest of the functionality. As you correctly point these are not valid anymore. The following PR addresses that.

/cc @aconsuegra @CesarValiente