![]() Add a box to the layout of the "full" version of your app.Create "demo" and "full" source sets corresponding to the product flavors.Create "demo" and "full" product flavors of your app.You create additional project files and add code to: When the user clicks ROLL, the die is rolled and the picture changes depending on the roll outcome. The DiceRoller app has a picture of a die and a ROLL button below it. In this codelab, you start with the DiceRoller app that you built in the learning pathways of Unit 1: Kotlin Basics. How to give your app variants unique application IDs.How to build different versions of your app using build variants and source sets.To familiarize yourself with its main components, review the build overview. A general understanding of the Android build system.To do the prerequisite codelabs, see the Unit 1: Kotlin Basics pathways. ![]() Completed Android Basics learning pathways 1-4.In this codelab, you modify the Dice Roller app you built in Unit 1: Kotlin Basics, so that you have two versions: "demo" and "full." The "full" version has an additional text box that displays the result of the die roll in words, so the user doesn't have to rely on just the die image for the roll result. You can also build different versions of your app that target different devices, based on API level or other device variations. For example, you might want to build one version of your app that's free, with a limited set of content, and another paid version that includes more. Build variants are useful for creating different versions of your app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |