ToggleGroup在不勾选allowSwitchOff时,toggle.check()无效(逻辑事件发生了,视图没切过去)。必须allowSwitchOff=true时,toggle.check()才会切换到对应的toggle.
谢谢,仔细看了下源码;
不能只调用toggleList[1].check();
不能先toggleList[0].uncheck();
是我想当然了么?必须这样:
toggleList[0].isChecked = false;
toggleList[1].check();
