Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0bc3a97
feat(android): add OpenLess IME service scaffold
DepengWang Sep 11, 2026
d00a1c0
feat(android): refine ime panel controls and animations
DepengWang Sep 11, 2026
e108593
feat(android): add stroke input mode
DepengWang Sep 11, 2026
219769d
feat(android): align stroke keyboard layout
DepengWang Sep 11, 2026
fe9251b
fix(android): restore visible stroke key layout
DepengWang Sep 11, 2026
b19740a
fix(android): refine stroke keyboard density and actions
DepengWang Sep 11, 2026
f065f99
fix(android): show stroke action rail
DepengWang Sep 11, 2026
818ab92
feat(android): use complete offline stroke dictionary
DepengWang Sep 11, 2026
0bd0b47
perf(android): index stroke dictionary queries
DepengWang Sep 11, 2026
a7d68d3
fix(android): align stroke mode header
DepengWang Sep 11, 2026
25e5b4e
feat(android): add confirmed-text association flow
DepengWang Sep 11, 2026
75a2043
fix(android): prioritize common stroke candidates
DepengWang Sep 11, 2026
128444b
feat(android): add personalized stroke associations
DepengWang Sep 11, 2026
357647a
fix(android): continue association after longer context
DepengWang Sep 11, 2026
1ac8c27
fix(android): preserve alternate stroke codes
DepengWang Sep 11, 2026
a4056b3
fix(android): persist selected ime mode
DepengWang Sep 12, 2026
666530b
feat(android): rank stroke candidates by frequency
DepengWang Sep 12, 2026
f048153
perf(android): preload stroke index on ime startup
DepengWang Sep 12, 2026
43fee00
feat(android): add stroke numeric symbol panel
DepengWang Sep 12, 2026
0c0be5a
fix(android): restore stroke candidates after numeric panel
DepengWang Sep 12, 2026
12b3c1b
feat(android): honor chinese script preference in stroke ime
DepengWang Sep 12, 2026
0357185
fix(android): make stroke script key a toggle
DepengWang Sep 12, 2026
d9b505f
fix(android): simplify stroke script toggle label
DepengWang Sep 12, 2026
31939f0
feat(android): add stroke association preference gates
DepengWang Sep 12, 2026
914c40b
fix(android): keep stroke encoding and candidates single line
DepengWang Sep 12, 2026
770959b
fix(android): render stroke symbols in input buffer
DepengWang Sep 12, 2026
4b5de37
feat(android): polish IME keyboard interactions and visuals
DepengWang Sep 12, 2026
52a74ad
fix(android): stop backend-warmup crash loop and duplicate Tauri hosts
DepengWang Sep 12, 2026
3e70c7e
feat(android): polish stroke keyboard toggle, labels, and mic key
DepengWang Sep 12, 2026
15c3c7c
feat(android): word segmentation, richer number panel, swipe gestures…
DepengWang Sep 12, 2026
9fc3617
refactor(android): share backend warmup check across IME and runtime …
DepengWang Sep 13, 2026
68476b7
fix(settings): keep experimental state consistent (#959)
appergb Aug 18, 2026
b9849f0
feat(android): stroke keyboard polish, keyboard settings screen, corr…
DepengWang Sep 13, 2026
6a270c9
feat(android): personal stroke ranking, light theme, voice link healt…
DepengWang Sep 13, 2026
d4e846e
feat(android): swipeable clipboard history rows, fix theme-read race
DepengWang Sep 14, 2026
7a06c8c
feat(android): clipboard row favorite/delete/correction swipes, corre…
DepengWang Sep 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions openless-all/app/android/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@ Manifest 合并脚本:

`src/lib/types.ts` 与 `src/lib/ipc.ts` 保留 re-export,现有 import 路径仍可用。

## 笔画输入法 IME 最近更新(`OpenLessImeService.kt`)

面板高度固定为 300dp(`SwipeModeContainer.onMeasure()` 强制),笔画面板内编码区 24dp + 候选区 36dp(合计 60dp)与下方按键区共同瓜分剩余高度,任何输入状态下都不重新布局。

| 功能 | 说明 |
|------|------|
| 手势 | 左右切换面板滑动阈值 72dp→100dp;新增下滑 ≥120dp 收起键盘(`hideKeyboardPanel()`);面板切换带滑入动画(`refreshInputView(slideDirection)`) |
| 编码区/候选区 | 固定高度、扁平背景 + 分隔线(`buildEncodeAreaBackground()`),选中/首选候选字改为编码文字同款浅蓝 + 加粗(`strokeEncodeAccentColor`),不再用红色;候选区超出部分用 `showCandidateOverlay()` 悬浮层展开,不推挤按键 |
| 中间 3×4 笔画键 | 间距收紧到 ~2dp(键位 `setMargins(dp(1)...)`),并与右侧红色功能键列、左侧标点列的行边距对齐一致 |
| 键盘设置 | 长按 Logo 打开全屏原生设置页 `OpenLessKeyboardSettingsActivity`(先实现震动强度/时长,后续可继续加项) |
| 语言同步修复 | `OpenLessApplication` 原来按精确类型判断 `MainActivity`,实际设置页跑在子类 `OpenLessBackendWarmupActivity` 上从未触发,改成 `is` 判断 |
| 剪贴板 | 新增历史持久化 `OpenLessClipboardHistory.kt`,按钮配色与笔画面板统一 |
| 语音纠错联动 | `native_bridge.rs` 新增 `nativeAddCorrectionRule`,手动改过的听写结果自动写入纠错词典 |

开发流程:每次改动后用 `npm run copy:android-scaffolding` 同步 → `gradlew app:assembleArm64Debug -x app:rustBuildArm64Debug`(Kotlin-only 改动跳过 Rust 重编译)→ `adb install -r` 装机 → 通过 `adb exec-out screencap` 或用户反馈截图核对真机效果;涉及尺寸争议时用 `adb shell wm density` + 实测 px 反推 dp,避免凭空猜测布局问题。

## 构建与 CI

**CI(overlay / 无障碍 ADB 测试 APK)** — 合并 v1 麦克风权限 + overlay / 无障碍 manifest,用于真机 ADB 测试完整悬浮窗与无障碍能力(非仅应用内听写):
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading