Does anyone know if it is possible to show Android...
# android
m
Does anyone know if it is possible to show Android's
PopupWindow
above
DialogFragment
? I would like to show
BottomSheetDialogFragment
with a context menu and at the same time be able to show a clickable
PopupWindow
above the bottom sheet. Whatever I tried the popup was always shown behind the BottomSheet's outsideTouchArea making the popup unable to intercept touches. When looking at layout inspector the
PopupDecorView
was always placed below Dialog's
DecorView
.
Seems I figured it out, using Dialog window decorView rather then activity window seems to do the trick.
t
Relative positioning on the Z axis is generally controlled by the elevation view property. You can try to increase elevation of the popup window so that it is higher than the modal bottom sheet