jjzjj

parseList

全部标签

android - 为什么 Kotlin for Android Developers(该书)需要再次添加扩展 parseList?

我知道Anko提供了parseSingle、parseOpt和parseList函数,我不明白为什么AndroidDevelopers(书)的代码需要重新设计扩展parseList。你能告诉我吗?谢谢!https://github.com/antoniolg/Kotlin-for-Android-Developers/blob/master/app/src/main/java/com/antonioleiva/weatherapp/data/db/ForecastDb.ktoverridefunrequestForecastByZipCode(zipCode:Long,date:Lon

android - 为什么我在 Kotlin 中使用原始的 parseList 函数时得不到正确的结果?

我正在为Android开发人员学习Kotlin中关于Anko的示例代码(书籍)https://github.com/antoniolg/Kotlin-for-Android-Developers方法一来自样例代码,重写了parseList,但是比较难理解。所以我尝试使用方法2而不是方法1,方法2使用原始的parseList函数,但是当我使用方法2时我得到的是空白记录,我在方法2中犯了什么错误classDayForecast(varmap:MutableMap){var_id:Longbymapvardate:Longbymapvardescription:Stringbymapvarh