-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nicer looking, more consistent form/instance lists (#2825)
* Rename form lists for consistency * Format form lists consistently for better future diffs View this diff with '-w' flag or 'w=1' URL param. * Rename form list items for consistency * Format form list items consistently for better future diffs View this diff with '-w' flag or 'w=1' URL param. * Give form lists Material Design 8dp vertical padding * Remove form 'visibility' icon; disable row and show toast * Set 38% opacity for disabled form items The text color itself may also be changing in an upcoming commit per Material guidelines. * Tweak theme colors to conform to Material specs * Use Material text and padding for form_chooser_list_item * Factor out form_chooser_list_item_text into separate file * Remove redundant text alignment properties So list item text doesn't overlap the image * Display form_state_blank icon by default Other states will be handled soon. * Use form_chooser_list_item_text for multiple choice items as well * Factor out form_chooser_list_item_icon into separate file * Also display form_state_blank icon on multiple_choice item By default; new states coming soon. * Use Material text and padding for multiple choice list items * Use form_chooser_list_item_multiple_choice for google drive too * Add convenience links to Material spec for future maintainers * Also set opacity on disabled image view * Set item icon based on form status for View Sent * Use InstanceListCursorAdapter for both 'sent' and 'saved' * Add inset list_item_divider to every form list * Factor out form_chooser_list_item_checkbox into separate file * Use form_chooser_list_item_text for Send Finalized * Remove Send Finalized CardView wrapper * Remove Send Finalized dimen abstractions for clarity They'll be changing in upcoming commits, easier to see them here. * Use form_chooser_list_item_icon for Send Finalized * Use Material Design layout for Send Finalized `instance_uploader_list_item` now mirrors `form_chooser_list_item_multiple_choice`, just with a few extra components. * Simplify form lists using LinearLayout * Use generic form_chooser_list_item_multiple_choice for Send Finalized * Use the new icons for Send Finalized * Use the new icons for Delete Saved Instances * Make TwoItemMultipleChoiceView a LinearLayout Gets rid of one extra layer of nesting * Use Material Design 'cancel' icon for sending SMS * Use srcCompat for lower API compatibility * Use light/dark themed list item divider colors * Shrink the 'cancel' icon down to a proper size * Remove now-unnecessary list_item_checkbox layout * Make 'finalized' icon indigo to differentiate it * Rename form_state_{,submission_}failed for clarity * Factor out setEnabled/Disabled methods * Make views 'final' to appease checkstyle * Remove useless gravity specifications for text It was only on some of them anyway. * Swap text2, text3 so they're in the right order Only 2 screens use text3, and both use VersionHidingCursorAdapter. They're the only ones that use VHCA. The only additional change needed is to make sure text3 is made visible in VHCA because text2 always used to be visible and now they're swapped. * Rename text1 => form_title * Rename text2 => form_subtitle * Remove redundant text4 view * Rename text3 => form_subtitle2 * Rename update_info => form_update_alert * Disable clipToPadding for all lists So the MD 8dp padding doesn't cover the actual list items. * Add MD palette to colors.xml * Overlay scrollbar for all lists So MD padding top/bottom doesn't push the scrollbar down. * Clean up GoogleDriveActivity setChecked logic Checkbox is already checked by FileArrayAdapter. * Remove unused divider dimens Tap target not used on ListViews, just Dialogs. * Rename divider => dividerCompat for clarity * Default to dividerCompat and upgrade on newer devices Fixes crash in API < 21.
- Loading branch information
1 parent
1ee4a1f
commit b41b817
Showing
58 changed files
with
917 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.