Irene Serrano
07/07/2021, 7:48 PMif (hiddenView.getVisibility() == View.VISIBLE) {
TransitionManager.beginDelayedTransition(cardView, new AutoTransition());
hiddenView.setVisibility(View.GONE);
}
My code:
if (hiddenView.isVisible) {
TransitionManager.beginDelayedTransition(cardView, AutoTransition())
hiddenView.visibility = it.GONE
}
Alejandro Rios
07/07/2021, 7:49 PMView.GONE
instead of it.GONE
Irene Serrano
07/07/2021, 7:51 PMLuke
07/07/2021, 8:12 PMhiddenView.isVisible = false
or hiddenView.isGone = true