feat: 沉浸式透明状态栏适配 - #2625
Open
cololi wants to merge 7 commits into
Open
Conversation
将状态栏设为全屏透明,内容延伸至状态栏之下,并根据主题切换状态栏图标明暗: - 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
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.
改动内容
沉浸式透明状态栏 (
f6c5d3f)设置页底部导航栏透明展示 (
5226924)列表内容沉浸式透明状态栏 (
cb51f23)(
EhStageLayout/EhDrawerView不再预留顶部 inset,RecyclerView 保持
clipToPadding=false)。