pgreze / android-reactions

Facebook like reaction picker for Android
Apache License 2.0
158 stars 46 forks source link

popup always centered horizontally #5

Closed ChaosWizard99 closed 5 years ago

ChaosWizard99 commented 5 years ago

Is there any way to change the X position of the popup? or the gravity of it?

something like this(it is photoshop btw):

wasd

pgreze commented 5 years ago

Hi, happy you found this library useful for your project.

With a FAB on right of the screen, fallback position is always centered: https://github.com/pgreze/android-reactions/blob/5ee4b04fcb2cdbb41615a6db1fa98144f86c16e9/library/src/main/java/com/github/pgreze/reactions/ReactionViewGroup.kt#L127

Let me try to add an optional gravity parameter during setup to avoid this fallback.

ChaosWizard99 commented 5 years ago

will you realease a new version with that?

pgreze commented 5 years ago

Try this new version and let me know if it's fitting your need: https://bintray.com/pgreze/maven/android-reactions/1.1

ChaosWizard99 commented 5 years ago

Yes, thats pretty nice, and it also has more options, Thank you!