GithubHelp home page GithubHelp logo

android_rainbow's Introduction

Rainbow

This project will give you a chance to practice the skills you learned in the first lesson of the Android 101 course. Follow the instructions below:

Survey

After completing this project, please fill out the survey found here

Create an Android Studio Project

  1. Create a new Android Studio project
  2. Name the project "Rainbow"
  3. Make sure that the target API level is below that of your testing environment.

Add Buttons to the App

  1. Open the app's activity_main.xml file.
  2. Change the parent viewgroup to a linear layout
  3. Add six buttons to the main screen
  4. Each button's text attribute should be the name of a different color

Create Listeners for Each Button

  1. Create a listener and event handler for each button in MainActivity.java
  2. In each event handler, change the view's background color to the color that corresponds to the button's title

TIP: use .setBackgroundColor(getResources().getColor(android.R.color.holo_orange_dark)); to set the background color of your component.
TIP: Remember to use android.R.color.color_name to get access to the colors provided by android. You can see which colors are available in the documentation.

Build, Run, and Test Your App

  1. Build and run your app using the your preferred test environment.
  2. Test each button to make sure that it changes the background color appropriately.
  3. Remember to use logs and the debugger when you run into issues.

If everything works, congratulations! You've just built your first Android app on your own from scratch!

Submit

Send your completed app to your Project Manager.

Challenge

Experiment with different properties of Button and Linear Layout. To improve the look of your app.

android_rainbow's People

Contributors

chancepayne avatar

Watchers

 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.