Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to display the Corner View when there are Column headers but no rows or cells #327

Merged
merged 5 commits into from
Jan 17, 2021

Conversation

Zardozz
Copy link

@Zardozz Zardozz commented Jun 30, 2020

This should resolve the issue #308

It adds the flag to tableview tableView.setShowCornerView(true); to change the behaviour of setAllItems in the adaptor.

It also adds automated test instrumented test infrastructure to the tableview to test the behaviour change.
The test infrastructure is based on ideas of how androidx recyclerview and it's layout managers are tested and how flexbox layout manager is tested.
Code Coverage for these tests is also enabled (created by running the "createDebugCoverageReport" gradle task in the "tableview" module)

The non "ShowCorner" set of test were developed before "ShowCorner" feature was developed and all passed.
Code Coverage report before feature for setAllItems
image

Note some branches not covered as the tests only target the "Is not empty" not the "is not null" condition checks.

Test results after the "ShowCorner" feature
image

Code Coverage report after feature changes for setAllItems
image

These tests passed on emulators API 22 and API 29 (Note Instrumented tests are note available before API 21 so cannot be used to cover down to the minimum specified API of 14)

Manual test of the sample app showed no change as this does not exhibit the conditions where the feature changes the behaviour (the sample app also does not enable the feature)

Andrew Beck added 5 commits June 29, 2020 12:59
…laying the corner view.

Added optional method to display corner view if there are some column headers but not row headers or cells
Optimised the condition logic for displaying/hiding corner view
Enable Jacoco Code Coverage on tableview Instrumented Tests by running "createDebugCoverageReport" gradle tasks
Add tests for when setShowCornerView = true
@evrencoskun evrencoskun merged commit 8df60cb into evrencoskun:master Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants