Question: SettingsActivity When SettingsActivity is created: The user will be able to see the counter button information displayed. The user can switch to edit mode by
SettingsActivity\ When SettingsActivity is created:\ The user will be able to see the counter button information displayed.\ The user can switch to edit mode by pressing an action from the action bar.\ The user can edit the fields of the activity when in edit mode\ The user can save the information that were input by the user. \ The SettingsActivity will have two modes:\ Display mode: The SettingsActivity is by default in display mode; the EditTexts displaying the information will not be editable. Meaning the user cannot write any text but can only view the text. The information is displayed on the activity layout as they were saved in the SharedPreference file. If the information does not exist, the text of every field of information will be empty (hints are ok, but not text in the field) and the SettingsActivity will automatically switch from the default display mode to the edit mode.\ Edit mode: in the action bar, when the edit action is pressed, the activity switches to edit mode. The EditTexts fields become editable, and the user can enter information. A Button will show up at the bottom of the activity labeled Save. When this button is pressed (if no wrong values were entered) the data will be saved to SharedPreferences, the Save button will disappear, and the SettingsActivity will switch to display mode. If any value entered is wrong the user will get a Toast message, nothing will be saved, and the activity will stay in edit mode. \ The Settings Activity has the following 4 fields with the corresponding valid information:\ Button 1 name: alphabetical characters and spaces. 20 char max length\ Button 2 name: alphabetical characters and spaces. 20 char max length\ Button 3 name: alphabetical characters and spaces. 20 char max length\ Maximum number of events: number from 5 to 200\ The SettingsActivity has an up navigation that goes to the MainActivity when pressed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
