you can use getActivity().getWindow()
this getActivity() will Return the Activity this fragment is currently associated with.
you can use getActivity().getWindow()
this getActivity() will Return the Activity this fragment is currently associated with.