f440b109ac
The full-screen viewer becomes a pager instead of a single image with no way to reach its neighbours. - ArtifactGallery now owns the one viewer instance over pagedArtifacts(groups) -- the grid's image artifacts in the order the grid draws them -- and each tile opens the position it holds in that list via viewerIndexByUrl, so the grid and the viewer derive their index from one source (previously a second, untested per-tile counter and a per-tile viewer that had no neighbours). - A horizontal drag or flick in ArtifactViewerBody moves to the previous/next artifact: pagedIndex moves by one and clamps at both ends without wrapping, a single-item gallery is inert, and canPageAtScale pages only at fit so a zoomed image pans via the existing zoomAbout/clampImageOffset as before. Previous/next IconButtons (disabled at each end) keep both neighbours reachable without a swipe, and the header shows "N of M · type" while the open artifact's own content, type icon, name and actions reload per artifact. - Pure helpers pagedArtifacts, viewerIndexByUrl, pagedIndex, canPageAtScale and artifactViewerPositionLabel are added to ArtifactViewer.kt; ArtifactViewerTest covers next/previous, clamping at both ends, a single-item and an empty list, a zoomed viewer that does not page, the paged order versus the grid's draw order, and the per-artifact position label. Placement check: the Android topic doc android/README.md is updated in this commit with a section describing the pager, its gesture rule and the recorded build/test checks. No packaged template and no packaged authoring skill reference (internal/author/skill/references/*, internal/author/install.go's inventory) documents the app's full-screen artifact viewer, so none needed updating. Only the four files this run changed are staged. The unrelated uncommitted covered-pane statistics and list-load-phase edits (SlidingPaneStack.kt, States.kt, Dimens.kt, LoadPhaseTest.kt) and the untracked scratch files in the worktree belong to other changes and are deliberately left uncommitted.