Skip to content

Scroll dash profile title off-screen with the app grid#77

Merged
RobinJ1995 merged 2 commits into
masterfrom
claude/profile-title-scroll-ftco05
Jun 16, 2026
Merged

Scroll dash profile title off-screen with the app grid#77
RobinJ1995 merged 2 commits into
masterfrom
claude/profile-title-scroll-ftco05

Conversation

@RobinJ1995

Copy link
Copy Markdown
Owner

The per-profile dash title (Applications / profile name) sat in a row
above the app grid and stayed pinned there even as the grid scrolled,
permanently occupying screen space.

Overlay the title on the grid's top padding instead (clipToPadding=false
so the padding scrolls away with the apps) and translate the title in
step with the grid's scroll, so it slides off-screen together with the
first row of apps.

The per-profile dash title (Applications / profile name) sat in a row
above the app grid and stayed pinned there even as the grid scrolled,
permanently occupying screen space.

Overlay the title on the grid's top padding instead (clipToPadding=false
so the padding scrolls away with the apps) and translate the title in
step with the grid's scroll, so it slides off-screen together with the
first row of apps.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Problem 1: ViewPager2 crashes mid-scroll (e.g. on rotation) when a page's
child ViewGroup has a LayoutTransition that animates the parent hierarchy.
Add setAnimateParentHierarchy(false) to the grid's LayoutTransition.

Problem 2: the title rested already scrolled off-screen on swiped-to
pages. The collapse offset was derived from the first row's rest top, but
that was inconsistent: AbsListView does not re-anchor already-filled rows
when paddingTop changes at runtime, so applying the reserve-padding after
the fill (via the title's layout listener) left the first row at top=0 and
the title computed as fully scrolled.

Reserve the padding in onBindViewHolder before the grid's adapter is set,
from a one-off measured title height (a single line, identical for every
profile), so the first fill of every page lands the first row at
paddingTop. Reset the title baseline on bind and recompute the at-rest
offset from a grid layout-change listener (the scroll listener never fires
for a page whose apps fit without scrolling).
@RobinJ1995 RobinJ1995 merged commit 61e4f17 into master Jun 16, 2026
1 check passed
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