Integrate Fragments in Activities | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/7503473-your-second-kotlin-android-app/lessons/33

This has been a great course so far. Hit a snag with the Fragment section. It appears that Google has deprecated classic Fragments as discussed here, I believe.

In Android Studio 4.1.x, the way that the Fragment code looks is different enough that I think that this tutorial may need to be updated. Especially for the beginner Android developer.

Yes, it appears that Google has deprecated the classic fragments discussed in the course. In my case, I’m stuck with an error in this part:

override fun listItemClicked(list: TaskList) {
        listener?.onTodoListClicked(list)
    }

Thanks for the heads up - we’re in the process of updating these courses.

Thank you! Anyway I’m stuck in this part of the course, is there any way around it?