Continue working on TemperatureConverter:
MainActivity.java
called selectedConversion
and initialize it to NULL
setConversion()
inside MainActivity.java
that has one String parameter called selectedConversion
setConversion()
, get the 2 labels representing the two temperature units (hint: use findViewById){label}.setText({text})
based on the conversionTypeConversionTypeListener.java
, call the setConversion()
method with selected conversion type inside the onItemSelected()
method.If you have any questions, please email me at williamsmith@ayclogic.com.