- This event has passed.
4 PM – Intro To Java – William
March 23 @ 4:00 pm - 5:00 pm
Today We Did
- Fixed Android Studio issues
- Reviewed last week’s homework
Homework
Continue working on TemperatureConverter:
- Finish last week’s homework if you haven’t already: https://www.ayclogic.com/event/4-pm-intro-to-java-william-16/
- Add additional temperature conversion options to the Spinner
- Navigate to app > res > values > strings.xml
- Beneath the
app_name
string, create an array in the format:<array name="conversionTypeOptions"> <item>...</item> ... <item>...</item> </array>
- Add the following options as items:
- Fahrenheit to Celcius
- Celcius to Fahrenheit
- Celcius to Kelvin
- To add these options to the spinner, navigate to the
entries
attribute under Common Attributes - Set
entries
as@array/conversionTypeOptions
If you have any questions, please email me at williamsmith@ayclogic.com.