Below link work well for me thank you https://github.com/material-components/material-components-android/issues/911#issuecomment-2003834024