ImageViewer: add optional navigation arrows and thumbnail strip with theming and tests#4571
Merged
shai-almog merged 6 commits intomasterfrom Feb 26, 2026
Conversation
|
Developer Guide build artifacts are available for download from this workflow run:
Developer Guide quality checks: |
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
Author
|
Compared 32 screenshots: 32 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
|
Collaborator
Author
|
Compared 32 screenshots: 32 matched. Benchmark Results
Detailed Performance Metrics
|
Signed-off-by: Shai Almog <67850168+shai-almog@users.noreply.github.com>
Signed-off-by: Shai Almog <67850168+shai-almog@users.noreply.github.com>
Signed-off-by: Shai Almog <67850168+shai-almog@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
ImageViewerto improve UX when using image lists, including side arrows and a bottom thumbnail strip.ImageViewerUIID.Description
ImageViewerto support navigation arrows and a thumbnail bar:navigationArrowsVisible,thumbnailsVisible,thumbnailBarHeightMM, plus getters/setters andgetPointerActionAt,getThumbnailIndexAt,navigateTo/navigateToLeft/navigateToRighthelpers.drawNavigationChrome,drawArrow, anddrawThumbnails, and integrated this into the mainpaintflow.initThemeConstantsto readimageviewerNavigationArrowsBool,imageviewerThumbnailsBool, andimageviewerThumbnailBarHeightMM, with robust parsing helper.getPropertyNames,getPropertyTypes,getPropertyTypeNames,getPropertyValue, andsetPropertyValue.Advanced-Theming.asciidocandThe-Components-Of-Codename-One.asciidocdescribing the new theme constants and usage.ImageViewerTestto assert new properties and thumbnail behavior, and added a screenshot/demo testImageViewerNavigationScreenshotTestand registered it in the device test runner.Testing
ImageViewerunit tests viamvn -Dtest=com.codename1.components.ImageViewerTest test, which includes the updatedpropertyAccessorsExposeConfigurationand the newthumbnailTapNavigatesToSpecificImagetest, and they passed.ImageViewerNavigationScreenshotTestadded and the test is included in the CN1SS device runner smoke suite; the screenshot test compiles within the test harness.Codex Task