Redesign the Check Expiration Date UI
Suggested re-design of the activity_item_info.xml UI to use fragments and streamline the workflow:
- fragment_start: scan button or enter UPC button (look at the activity_get_upc.xml as a sample)
- fragment_scan: enables the camera to scan the item's bar code and displays it
- fragment_enter_upc: textbox where the user will type in the UPC and click a look up button (look at activity_enter_upc.xml as a sample)
- fragment_confirm_item: confirmation screen with the bar code, the item's category and item with a button to confirm it is correct
- fragment_select_item: category & item options (look at activity_item_info.xml as a sample)
- fragment_select_printed_expiration_date: select expiration date using a date picker (look at activity_item_info.xml as a sample)
- fragment_display_true_expiration: shows the true expiration date for the item (and a synopsis of the item including the UPC, category, item, expiration date) - this UI will be developed as part of issue #91 (closed)
Fragment Navigation:
- fragment_start: scan button goes to: fragment_scan, enter UPC button goes to fragment_enter_upc
- fragment_scan: goes to either fragment_confirm_item or fragment_select_item
- fragment_enter_upc: goes to either fragment_confirm_item or fragment_select_item
- fragment_confirm_item: goes to fragment_select_printed_expiration_date
- fragment_select_item: goes to fragment_select_printed_expiration_date
- fragment_select_printed_expiration_date: goes to fragment_display_true_expiration
NOTE: when using code from other layouts be sure to cite it in your commit message - for example,
git commit -m "Copied the scanner layout from activity_scanner.xml to fragment_scan.xml"
Edited by Lori Postner