UX: floating window should be resizable (pinch or handle)

未关闭
#49 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, kotlin
领域
mobile-dev

调研方向

Start by locating the floating overlay and its drag handler, then inspect how WindowManager.LayoutParams and windowManager.updateViewLayout() are used. Choose and specify one resizing interaction from the listed options; done means the overlay can be resized reliably and supports smaller and larger dimensions for the stated use cases.

由索引模型根据 Issue 内容生成。

描述

From Heide (Galaxy Fold 5):

"Can you make the Float window resizable!"

The floating overlay is a fixed size (minOf(screenW - 32dp, 600dp) × 280dp). Users need to adjust it — a smaller window for one-handed use, a larger one for precision.

Options

  1. Pinch-to-resize on the canvas area (scale factor applied to the overlay's width/height)
  2. Corner resize handle on the drag bar's right edge (drag to resize, like a window manager)
  3. Size presets in a long-press menu (small/medium/large)

The WindowManager.LayoutParams can be updated via windowManager.updateViewLayout() with new dimensions — same mechanism as the drag handler.

主要语言
Kotlin
星标
2
派生
0
平均合并
4 小时 45 分钟
30 天内合并 PR
7

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dasher-project/Dasher-Android 的其他 Issue

查看 dasher-project/Dasher-Android 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。