r426 / currencyexchangestep2viewmodel Goto Github PK
View Code? Open in Web Editor NEWA tiny step towards Android Architecture Components: adding the ViewModel. You just cut-&-paste the variables and not-related-to-UI functions to the ViewModel class. Now you can rotate the phone and the information stays on the screen.