<How to call findViewById(android.R.id.content) fr...
# stackoverflow
u
How to call findViewById(android.R.id.content) from dialogFragment? I am trying to call snack bar in dialog fragment. But it shows on top of system buttons. To avoid this I need to call findViewById(android.R.id.content) in snack bar call. But not sure how to make it correct way. In parent fragment I am calling this way Snackbar.make(requireActivity().findViewById(android.R.id.content), "fdfdfdf", Snackbar.LENGTH_LONG).show(); and it works perfectly but the problem is that dialogfragment is on top of the snack bar so its not visible. So I need to...