Page 1 of 1

Kotlin language please

Posted: Fri May 20, 2022 5:15 pm
by answerhappygod
Kotlin language please
Kotlin Language Please 1
Kotlin Language Please 1 (421.9 KiB) Viewed 34 times
. Create a model as a list of PiratePlace objects, each of which holds the name of the place and a String with a list of people that visited. You also need to keep track of your position in this list. Modify the existing activity to display this model. For the current Pirate Place (so, keep an index!) it should show the name and the list of people that visited with you. There should also be Next and Previous buttons that let you move between items in the model. You should show a Toast if someone taps Next when you are at the end of the list, or taps Previous when you are at the beginning Also modify the existing activity to save the state in case the device is rotated. You should save the current index in case your process is ejected from memory, while the View Model will ensure your current index survives rotation. No other state needs to be saved. Create a new activity to check in to an existing PiratePlace. At this point this will display the name and a check in status. It will also have a check in button that, when clicked, will alter the check in status. When you go back to the first activity, if you checked in, a Toast should be displayed stating this fact. .