Creating Multi-select input
License and Copyright Notice
By submitting this issue or commenting on this issue, or contributing any content to this issue, you certify under the Developer Certificate of Origin that the content you post may be licensed under GPLv3 (for code) or CC-BY-SA 4.0 International (for non-code content).
Branch Name
issue_285_multiselect_inputs
Related Issues
Closes #285 (closed)
Description
This will create the logic / layout necessary to implement a 'multi-select' field. This will basically be a spinner field that works like check boxes.
Steps to Test
- View the MultiSelectSpinner.java class under GuestDataBaseRegistration -> UIClasses. You can view the getters and setters and get a feel for how the class works.
- Open the AVD and navigate to the Guest Registration Form
- Fill out the first 2 fragments.
- On fragment 3, click on any of the fields that say "select all that apply"
- You should see a popup with a list of choices. Select a non-zero amount of selections.
- Tap outside of the popup to close (or press back button). You should see your selections in a comma separated list in the field.
- Open the same field again and change your selections. Close and confirm they changed in the text box.
- Repeat this and confirm that you can select and deselect items continuously.
As an extra, you can call the 'getSelectedStrings()' method in the MultiSelectSpinner class to verify that the data is being stored in the instance of the class. However, a version of this is already running in order to display the selections in the text box.
Relevant Screenshots
Multiselect Popup No Selections:
Multiselect Popup With Selections:
Fragment View with Selections Entered:
Relevant Logs
(Paste any relevant logs here.)
Developer Notes
(List any notes you have about what you did here using bullets, for ex:)
- Note 1
- Note 2
- Note 3