A simple, high performance text editor.
- Fragment registration pattern from Passgo: app.ViewEvent → GioView → Context → Activity → FragmentManager - IME Fragment architecture: hidden EditText in transparent Fragment overlay - Two-way sync: Gio→EditText (cursor sync via setSelection), EditText→Gio (IME events via TextWatcher + JNI callback) - Text window management: ±1KB around cursor, updated on cursor move and text changes - IME feature support: autocorrect, swipe typing, voice, predictions, emoji, CJK composition - Event merging: Main goroutine drains JNI callback channel alongside w.Event() calls - Implementation notes: impl_android.go, jni_android.c, ime/ImeFragment.java Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> |
||
|---|---|---|
| cmd/pad | ||
| doc | ||
| internal/ui | ||
| go.mod | ||
| go.sum | ||