【发布时间】:2021-10-26 01:21:31
【问题描述】:
我使用 Android Studio Hint 来显示变量的类型。
在代码A中,a的Hint显示为MutableState<Sections>,可以看到图片A。
而currentSection的Hint显示为Sections,可以看图B,我觉得应该是MutableState<Sections>吧?
代码 A
val a = rememberSaveable { mutableStateOf(tabContent.first().section)}
val (currentSection, updateSection) = rememberSaveable {
mutableStateOf(tabContent.first().section)
}
【问题讨论】:
标签: android kotlin android-jetpack-compose