Unit 2 Pathway 2: Add a button to an app¶ Intro to Dice Roller app Create an interactive Dice Roller app Before you begin Prerequisites What you’ll learn What you’ll build What you’ll need Establish a baseline Create the layout infrastructure Preview the project Restructure the sample code Add a modifier Create a vertical layout Add a button Add an image Download the dice images Add the dice images to your app Add an Image composable Build the dice roll logic Solution code Conclusion Use the debugger in Android Studio Before you begin Prerequisites What you’ll learn What you’ll need Eye Power Starter code Run the debugger Attach the debugger to an app process Run the app with the debugger Use the debugger The Debug pane Use common debugger features Set a breakpoint Use the Resume Program button Use the Step Into button Use the Step Over button Use the Step Out button Inspect variables Conclusion Practice: Click behavior Before you begin Prerequisites What you’ll need App overview Get started Create a project Add images Add string resources Steps of making lemonade Add visual polish Plan out how to build the app Implement the app Build the UI layout Add click behavior Look at the Dice Roller app Apply what you learned to the Lemonade app Add remaining steps Add squeeze logic Finalize the app Solution code