Skip to content

Files

Latest commit

 

History

History
21 lines (16 loc) · 1.14 KB

Exercise_4_1_Apply_the_settings.md

File metadata and controls

21 lines (16 loc) · 1.14 KB

Objectives:

  • Learn how to use shared preferences to store key/value data.
  • Learn how to use SwitchCompat

Requirements:

  • Apply some more settings to your game at Exercise 3.2
  • SettingsActivity can be accessed by pressing the top-right menu button.
  • The UI should look like this:

settings_layout_por.png

  • There are two options for this game:

    • Time limit: range from 5 sec to 60 sec. The value set here will affect the time of game afterwards. Default value is 10 sec.
    • Change the value of the seekbar should update the small textview below Time Limit label.
    • Record highscore: if it's enabled then after the one game is finished, the score is automatically recorded else it will be discarded. Default value is enabled.
  • Every previous settings should be shown when user comes to this activity.

References: