Today We Did
- Continued working on Temperature Converter
- Swapped unit labels to match temperature conversion type (C –> F)
Homework
Continue working on TemperatureConverter:
- Change the unit labels according to the other conversion options:
- Celsius –> Kelvin
- Fahrenheit –> Celsius (this is needed in case the user switches back)
- When switching between conversion types, we want to clear the values for the previous conversion:
- After changing the labels, create 2 TextView objects to represent
toTextField
and fromTextField
(use findViewById()
) - Use the
setText()
method to set the text of the fromTextField
and toTextField
to an empty string
If you have any questions, please email me at williamsmith@ayclogic.com.