When you are not using view binding, you should set layoutId to the corresponding view resource id of this Fragment.