- This event has passed.
6:30 PM – Intro To Java – Darin
September 7 @ 6:30 pm - 7:30 pm
What We Did Today:
- Learnt how to grab an element by its id using findViewById().
- Utilized ID’s to change the text of other elements on our screen
- Implemented the math to convert the input value for Fahrenheit to an output value of Celsius and displayed them accordingly on the screen using the ID’s.
- Added a spinner class that’s left for us to implement next week!
Homework:
- Continue on your TemperatureConverter Project.
- Create two new elements ( a button (that says “changeText”) and a textview (that says “changeMe”) ) and place them WITH constraints to the edges of the screen below the convertButton in activity_main.xml.
- In MainActivity.java, create a new function called button2OnClick, and make it so that the new textview element changes to your name when the changeText button is clicked.
Notes:
You can email me at ddjapri@ayclogic.com if you have any questions!