nekocode / create-android-kotlin-app

Create kotlin android project with one line of command.
Apache License 2.0
1.6k stars 209 forks source link

BasePresenter 中 parentFragment 需要 api >= 17 #10

Closed berial closed 8 years ago

berial commented 8 years ago

当全部使用 android.app.Fragment 时,它的 getParentFragment() 方法需要的 api 版本要大于等于 17。

nekocode commented 8 years ago

@Berial 是的,Kotlin 1.0.2 添加了 Android Lint Check 后才发现以前用了些高版本的 API,目前打算抽空改。

berial commented 8 years ago

而且如果用了 v4 的 Fragment,arguments(就是说的 bundle ) 关于 put 和 get 的 api 要求是 21,更加蛋疼。

nekocode commented 8 years ago

@Berial 不考虑 v4 了,之前尝试过,坑更多,。。