dynamically change ConstraintLayout constraints according to model class value
so i've been confused on how to change the constraint of the component based on the value of my model class. The expected result will be like this: "if there are no user bio, the constraint of the component below will be connected to the parent"
class DetailFragment : Fragment() {
private lateinit var viewModel: DetailViewModel
lateinit var binding: DetailFragmentBinding
lateinit var viewModelFactory: DetailViewModelFactory
lateinit var constraintLayout: ConstraintLayout...