Repository navigation
feat(0.0.30): 移动端遮挡治理与 IME 安全布局 - #38
Merged
Merged
Conversation
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.
0.0.30 移动端布局版(遮挡治理)
这一版不新增功能,专门解决手机端「东西被键盘顶出屏幕 / 被弹窗盖住 / 键盘一弹就切成横屏」的问题。
改动
EdgeToEdgeDialog,usePlatformDefaultWidth=false+decorFitsSystemWindows=false,外层safeDrawingPadding()一次性吃掉状态栏/导航栏/IME inset;QuietDialog改为自定义Dialog,手机左右 16dp、平板最大 560dp,标题/footer 输入区/底部按钮固定,只有正文滚动。TerminalDialog改为全屏EdgeToEdgeDialog,PTY 主体weight(1f),Esc/Tab/Ctrl/方向键条固定底部;非 PTY 输入框固定底部;PTY 清屏改为发送 Ctrl-L。EditorScreen改用Configuration.orientation,不再用内容区宽高比。LayoutMetrics,拆分 preferred / visible;键盘弹起只临时夹取,不写回设置;输入态常规 220dp,极矮屏降到 150dp;Scaffold.bottomBar承载StatusBar,Snackbar 不再盖状态栏。QuietDialog.footer,键盘弹起时始终可见;Agent 恢复确认改为嵌套QuietDialog。验证
LayoutMetrics高度夹取测试)assembleDebug/assembleRelease均成功versionCode=30/versionName=0.0.30,签名证书不变-accel off下停在emulator-5556 offline,本轮没有伪造 Android 运行截图;布局逻辑通过编译 + 单测验证,WebView/IME 最终触感仍需真机确认APK
de3d41a6419a2820c30ab2ec6892da3280797097b9b6a41aa50f56184dec16dcde5220970bc299324f9ebdcb88bb60924c1c023b4a30f096079c4a6d1df9a508