Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control the position of the pop-up to be above the Share button #60

Open
madalina-x2 opened this issue Jun 22, 2020 · 2 comments
Open

Comments

@madalina-x2
Copy link

madalina-x2 commented Jun 22, 2020

Hi! I am using your library for a game I am developing in Unity which is supposed to run on smartphones & tablets on both Android and iOS. I was wondering whether there is any way to position the pop-up sharing window on tablets and iPads to be right above the Share button.

Screenshot 2020-06-24 at 11 03 52

@NicholasSheehan
Copy link
Owner

Hi, there is but it requires editing of the Obj-C code at the moment, this is something that I've looked into but not acted on due to their not being an option on Android to move the share dialog (as far as i know), and also the possibility it only being able to be changed just for iPad, again i need to dig into this further to see if this is possible at all

@madalina-x2
Copy link
Author

Hi! Thanks for getting back to me so quickly!

To my knowledge, there is a way to position the pop-up window on Android as such:

val popup = PopupWindow(layout, layout.measuredWidth, layout.measuredHeight, true)
popup.showAsDropDown(anchor, dx, dY, Gravity.NO_GRAVITY)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants