Unity-Native-Sharing icon indicating copy to clipboard operation
Unity-Native-Sharing copied to clipboard

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

Open madalina-x2 opened this issue 5 years ago • 2 comments

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

madalina-x2 avatar Jun 22 '20 12:06 madalina-x2

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

NicholasSheehan avatar Jun 24 '20 20:06 NicholasSheehan

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)

madalina-x2 avatar Jun 25 '20 11:06 madalina-x2