Android 101, Class 4

Instead of focusing on styling in yesterday’s class, we focused on the Java code to make the calculator work. We’ve moved the styling lab and material to today’s class. If you were having trouble with the calculator portion of the class – do not dispair! Download the latest code from the classroom example so you can follow along with the styling lab today.

If you haven’t finished last week’s homework, don’t be discouraged! Join us at project night! Also, I will be posting my finished application so you can see how I implemented the project.

Course Material

Homework Exercises

Tonight will engage your artistic side and make your calculator feel like a real application.

  • Create a style for operator keys. Add dimensions and colors to support the style.
  • Create a drawable for the operator key states.
  • Create a style for the equals key. Add dimensions and colors to support the style.
  • Create a drawable for the equal key states.
  • Create a style for the clear key. Add dimensions and colors to support the style.
  • Create a drawable for the clear key states.

If you get stuck, check out the completed calculator.

What’s Next?

We’ve only scratched the surface of the wonderful world of Android. My goal was to get you excited about this platform and wanting to learn more. Luckily, there are a lot of great resources that can help you on your way, including local meet ups.