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