- This event has passed.
7 PM – Intro To Java – Darin
July 24 @ 7:00 pm - 8:00 pm
What We Did Today:
- Learnt the basics of android studio, how to add elements to our app using the xml file, and do things related to the display using main_activity.java
- Reviewed the final exam practice.
Homework:
Continue on your TemperatureConverter project and create your display through the xml file to look like this:
This next step is important!!
For Fahrenheit, make the id: originalTempHeader, text: Fahrenheit
For Celsius, make the id: convertedTempHeader, text: Celsius
Below the Fahrenheit header, use Palette -> Text -> Number (Decimal), set the id: OriginalTempInput
Below the Celsius header, use the textview as you did with the headers and put the words placeholder.
—————————————————————————————————
Constraints are an important concept in mobile app development as they enable you to put elements of the app to be fixed at specific areas of the screen.
When you put a constraint for an element, the constraint can be relative to the screen itself or another object, which means that you have to define what the constraints are.
For example, the constraints here are against the screen
While the vertical constraint here is against the Fahrenheit object while the horizontal constraint is against the screen.
Your job is to make sure the constraints are set in a way so that when you “run” the app, the elements are fixed at good positions.
Notes:
If you have any questions, you may reach out to me at ddjapri@ayclogic.com.