I am trying to set Popup window similar to the old Facebook comment section.
Rounded corner dialog box but I am facing a problem with size of dialog box
and showatlocation
of the Dialog box.
When I try this code on different mobile:
val display = windowManager.defaultDisplay
val size = Point()
display.getSize(size)
val popupWindow = PopupWindow(customView, size.x-30, size.y-300, true)
popupWindow.showAtLocation(linearLayout1, Gravity.CENTER, -3, 100)
popupWindow.setAnimationStyle(R.style.PopupAnimation)
//Animation from Source
In one plus my animation also disable when I change .showAtLocation to other numbers
Output on Lenovo K8 Note:
In K8 note Location of Popup change if I change to another value.
Thank you in Advance.
from Having issue with Popup window
No comments:
Post a Comment