Giter VIP home page Giter VIP logo

driuft / redbutton-debugging-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 9.0 389 KB

Congratulations! ๐ŸŽ‰ You have been selected by your dream company to participate in a debugging challenge that was designed to find the best talents in Android Development. The winners of this challenge will be granted a full-time offer in the company's Mobile Software Engineering department - this is a once in a lifetime opportunity!

License: MIT License

Kotlin 100.00%

redbutton-debugging-challenge's Introduction

Lab #4: Red Button

Overview

Congratulations! ๐ŸŽ‰ You have been selected by your dream company to participate in a debugging challenge that was designed to find the best talents in Android Development. The winners of this challenge will be granted a full-time offer in the company's Mobile Software Engineering department - this is a once in a lifetime opportunity!

๐ŸŽฏ Goals

By the end of this lab you will be able to...

  • Debug an app using Android Studio
  • Understand Views and view hierarchies
  • Understand interaction through click listeners
  • Understand View type casting

Resources

Lab Instructions

Lab Setup

Before diving into the challenge, we need to clone the starter version of the app:

https://github.com/driuft/redbutton-debugging-challenge.git

Challenges

Step 0: App Crashes

In this step, the app crashes automatically when launching.

  • Check Logcat for crash-related errors - are there any blue hyperlinks pointing to specific lines of code?
  • Make necessary changes in the code to allow the app to run

Step 1: Something Is Preventing Clicks

The app should now launch successfully, but there is something preventing interaction with the Blue button. Usually there is a Ripple Animation that occurs when the button is clicked, but nothing seems to be happening.

  • Open activity_main.xml
  • Find any View that might be obstructing our Button from being clicked and modify/delete it
  • Re-run the app

Step 2: A Wild Blue Button Appeared!

The blue button decided to celebrate Halloween early this year with a costume of the red button. It is telling us to check our layout file. Let's try to change the visibility of the blue button.

  • Open activity_main.xml
  • Change the visibility of the Button with id blue_button to gone
  • Re-run the app

Step 3: That Is One Tiny Yellow Button

There is now a tiny yellow button shown. It's a bit small to be interacted with, so let's try to increase its size.

๐Ÿ’ก PRO TIP: Press and hold the tiny button if you are feeling lucky today

  • Open activity_main.xml
  • Find the Button with id tiny_yellow_button
  • Change its size to allow easier interactivity
  • Re-run the app
  • Press and hold the Button to trigger its longClickListener()

Step 4: The Red Button

Is this the real red button? Has our journey finally come to an end? Only one way to find out.

  • Tap the red button

๐ŸŽ‰ Congratulations, you've successfully completed the challenge! ๐ŸŽ‰ You have shown that you are more than capable as an Engineer, and the company will be extending an offer. Now go change the world! ๐Ÿš€

redbutton-debugging-challenge's People

Contributors

driuft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.