Get fragment’s container view id September 18, 2023 by Tarik You can access the container’s id by calling ((ViewGroup)getView().getParent()).getId();