Skip to content

feat: 沉浸式透明状态栏适配 - #2625

Open
cololi wants to merge 7 commits into
xiaojieonly:BiLi_PC_Gamerfrom
cololi:BiLi_PC_Gamer
Open

feat: 沉浸式透明状态栏适配#2625
cololi wants to merge 7 commits into
xiaojieonly:BiLi_PC_Gamerfrom
cololi:BiLi_PC_Gamer

Conversation

@cololi

@cololi cololi commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

改动内容

  1. 沉浸式透明状态栏 (f6c5d3f)

    • 状态栏设为透明,页面内容可绘制到状态栏区域下方。
  2. 设置页底部导航栏透明展示 (5226924)

    • 设置页底部导航栏透明显示,与列表页保持一致。
  3. 列表内容沉浸式透明状态栏 (cb51f23)

    • 画廊瀑布流、收藏、排行榜列表延伸至状态栏下方滚动
      EhStageLayout / EhDrawerView 不再预留顶部 inset,
      RecyclerView 保持 clipToPadding=false)。
    • 工具栏向上扩展填充状态栏区域,标题/菜单保持在状态栏下方居中。
    • 浮动搜索栏、快速滚动条、下拉刷新头部相应下移避让状态栏。
    • 排行榜下拉选择条横向铺满并填充状态栏区域,列表整体下移。
    • 右侧抽屉与左侧导航抽屉一致地延伸至状态栏下方,内容保持避让。

cololi and others added 7 commits May 20, 2026 16:40
将状态栏设为全屏透明,内容延伸至状态栏之下,并根据主题切换状态栏图标明暗:
- EhActivity: 透明状态栏 + 浅色主题下使用深色状态栏图标(LIGHT_STATUS_BAR)
- MainActivity: 抽屉布局状态栏颜色改为透明
- themes(values/v21/v19): 增加 statusBarColor 透明与 windowLightStatusBar,
  移除冗余的 windowTranslucentStatus 覆盖
- activity_gallery_fallback / activity_tag_selector: 增加 fitsSystemWindows

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
设置页此前因 scene_toolbar 根布局的 fitsSystemWindows 预留并消费了底部
inset,透明导航栏后只露出纯色窗口背景。改为在 SettingsActivity 中接管
inset 分发:根布局仅消费顶部/左右(状态栏、横屏侧边栏),返回未消费的 inset
使其继续向下分发;偏好列表 RecyclerView 关闭 clipToPadding 并加上等高的
底部 padding,从而让列表内容滚动到透明导航栏之下,与主界面保持一致。
仅作用于设置页,不影响共享 scene_toolbar 的其它界面。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
画廊瀑布流、收藏、排行榜列表延伸至透明状态栏下方滚动,
工具栏、搜索栏及抽屉内容相应下移避让状态栏。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Enable Edge-to-Edge fitsSystemWindows false in EhActivity
- Apply dynamic WindowInsets listeners across MainActivity, ToolbarScene, GalleryListScene, FavoritesScene, EhTopListScene, and GalleryDetailScene
- Support Shared Element Transition for card thumbnail covers when navigating to detail scene
- Ensure clipToPadding false on RecyclerViews so list content smoothly scrolls under transparent status and navigation bars

Co-authored-by: cololi <10243794+cololi@users.noreply.github.com>
…ations-7778145060744394921

Implement Edge-to-Edge Immersive Layout and Scene Transition Animations
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.

1 participant