![]() ![]() A computer with Android Studio installed.An Unscramble game app where the user can guess the scrambled words. ![]() How to use MaterialAlertDialog from the Material Design Components library.How to retain UI data through device-configuration changes using a ViewModel.How to use the ViewModel class in your app.Introduction to the basics of Android app architecture.How to add logging information to an app and read logs using Logcat in Android Studio.Basics of activity and fragment lifecycle.Knowledge about Material text field and common UI widgets such as TextView and Button.How to create and run a basic Android app in Kotlin, using activities and fragments.How to download source code from GitHub and open it in Android Studio.The stored data is not lost if the framework destroys and re-creates the activities and fragments during a configuration change or other events. In this codelab, you learn how to use ViewModel, one of the Architecture components to store your app data. A good app architecture can make your code robust, flexible, scalable and maintainable for years to come. Much like the blueprint of a house, your architecture provides the structure for your app. Architecture Components provide guidance on app architecture, and it is the recommended best practice.Īpp architecture is a set of design rules. These libraries help you follow best practices, free you from writing boilerplate code, and simplify complex tasks, so you can focus on the code you care about, like the app logic.Īndroid Architecture Components are part of Android Jetpack libraries, to help you design apps with good architecture. In this codelab you learn about a robust way to design your app and preserve app data during configuration changes, by taking advantage of Android Jetpack libraries.Īndroid Jetpack libraries are a collection of libraries to make it easier for you to develop great Android apps. To save the app data, saving the instance state is one option, but it comes with its own limitations. You have learned in the previous codelabs the lifecycle of activities and fragments and the related lifecycle issues with configuration changes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |