Open Tarcisiofl opened 5 years ago
Hi
I solved a similar situation through setAdapter(adapter, step).
// in adapter
val stepList = mutableListOf(step1, step2)
val conditionList = listOf(step3, step4)
var isCondition : Boolean = false
// set codition
fun setCondition(isCondition: Boolean) {
this.isCondition = isCondition
if (isCondition) {
stepList.addAll(conditionList)
} else {
stepList.removeAll(conditionList
}
}
Make sure these boxes are checked before submitting your issue - thank you!
I have a step wizard with 8 steps, and the last step is a summary of everything where the user can click on each information and go direct to this step. Therefore, when the user select some specific services on the 4 step. I need to show or hide 3 further steps.
However, I cannot find a good way to implement this behavior.
I need to hide the case 5, 6 and 7.