Skip to content
Coding Fanatic
  • Android Development
  • News and Reviews
  • Road2Pro
  • Tutorials
  • Services
  • About

My First App!

  • March 24, 2018
  • by Richard Clarke

It started as a goofy exercise. Then I had to learn stuff…

I had an idea for a sample layout that might appear with an image and a like button. This interface features a background image from Mega Man Star Force and a “Like” button at the bottom of the Activity.

I had the idea for this layout after completing the first lesson of Google’s Android Basics course on Udacity. I already covered the basics of building interfaces via an XML file. I used a RelativeLayout ViewGroup since it has attributes that enable positioning Button Views in an Activity.

For the background, I selected an image from my personal Mega Man wallpaper gallery. I cropped the portion of the image containing Mega Man. The new tall, vertical image would fit nicely on the screen of an Android phone in Portrait mode.

Despite my original concept, I added a brief description of my work in a TextView View at the top of the Activity. I felt it would be interesting to add a sentence or two about why I started this project.

The button wasn’t meant to be anything too flasy. I felt it would take away from the overall art of the background. I wanted the width to wrap to the size of the screen. A height tall enough that users could reach it with the thumb of the hand holding the phone, or use their other index finger if they so choose.

The background colors were chosen based on the overall color scheme of Mega Man in this image. I chose colors from compatible color swatches I found in the Color section of Google’s Material Design website 

There are a lot of colors displayed in the background, but the focus is on him. Choosing colors close to Mega Man further emphasizes the focus and remains visually appealing. Interestingly enough, my idea for the TextView View did not come to me until after adding the button. Once I added it in and saw it with default colors, I had to adjust the colors.

After setting the same light blue/green text and blue background as I used in the Like button, I found the TextView View now blocked parts of Mega Man’s helmet and hair. I did some research and found it’s possible to adjust the opacity of a color by adding a value from 0 to 100 to the start of its hexadecimal value. After doing some experimenting, 75 seemed the ideal value to provide enough visibility for both the background and my description.

Though the idea seemed simple, the research and development that went into this app took me a few hours. It was worth it 100%. I learned a few tricks of the trade through my mistakes and got some new skills under my belt. I’m looking forward to all the challenges on my road to Android Development!

The link to my app on Github is here

Related

It’s a great time to be alive
Codewars Kata: Looking for a benefactor 1 of 2
Richard Clarke
Richard is currently a developer using Java and Android Studio to build custom applications for Android. Richard tutored in mathematics at Montgomery College, and worked in Information Technology before entering the Software Development industry as a Quality Engineer.
Android development Programming user interface XML

Related articles

Your New Favorite Stopwatch App!…
Two for Two BABY! 7…
…But the App is for…
Play Store Blues – 5…
Top 4 Tips for Android…
No Dice – 3 of…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • GitHub
  • YouTube
  • X
  • Instagram
  • LinkedIn
My Tweets

Join the mailing list!

This field is required.

Check your inbox or spam folder to confirm your subscription.

Follow me on social media!

  • X
  • GitHub
  • LinkedIn
  • YouTube

Archives

Theme by Colorlib Powered by WordPress