Android Studio Demo: Reconstructing a Compose Project from the Kotlin Code

Published: 04 September 2023
on channel: Thomas Blum
71
0

In this video we show how to reconstruct a new Compose project in Android studio from the MainActivity.kt (Kotlin code). It is mainly a matter of careful copy and paste. The name of the new project appears in four places in the MainActivity.kt file, and these are the places where we should not overwrite the new code with the old. The four places are: 1) in the package name at the top, 2) in the imports (at he bottom in this example) where the project-named theme is imported, 3) in the MainActivity class, under onCreate, after setContent where the theme is invoked, and 4) in the composable preview (at the bottom in this example) where once again the theme is invoked.


Watch video Android Studio Demo: Reconstructing a Compose Project from the Kotlin Code online without registration, duration hours minute second in high quality. This video was added by user Thomas Blum 04 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 71 once and liked it 0 people.