A handwriting-first editorial notebook for Android tablets & phones.
Crafted with a custom "Warm Paper & Editorial Ink" design system and powered by Google's Jetpack Ink engine.
| Editorial Library (Warm Paper) | Writing Studio & Ink Palette | Index Sidebar & Search | Paper Templates & Stock |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
LeNote started because I lost the note-taking application I relied on every single day.
The handwriting application I used on my tablet was discontinued. After trying several alternative note-taking apps available for Android, I realized that very few provided the natural, low-latency handwriting experience I expected. Most apps either treated the stylus as a secondary mouse pointer, suffered from sluggish rendering pipelines, or cluttered the writing canvas with intrusive desktop-style toolbars.
I use a Lenovo Xiaoxin Pad 2022 (TB128FU) paired with the Lenovo Precision Pen 2. This hardware is responsive, portable, and capable, but finding software that unlocked its hardware digitizer in an honest, distraction-free way proved frustrating.
Instead of endlessly searching for another replacement that never quite felt right, I decided to build my own handwriting notebook.
That project became LeNote.
Writing by hand on digital paper is fundamentally different from typing or drawing vector art:
- Latency and Jitter: Many Android note-taking apps wrap cross-platform web views or heavy UI frameworks over the touch canvas, creating perceptible input lag. Others apply aggressive smoothing filters that distort cursive handwriting and round off sharp corners.
- Accidental Palm and Finger Input: When writing with a physical pen, resting your palm on the screen is inevitable. Without precise discrimination between stylus digitizer events and capacitive finger touches, unwanted ink splatters and accidental zoom jumps ruin the flow.
- Canvas Clutter: Tablets and phones offer finite screen real estate. Traditional note apps crowd the screen with fixed sidebars, multi-tier toolbars, and generic UI cards, treating the actual writing page as an afterthought.
- Proprietary Lock-in: Many solutions store user notes in proprietary binary formats or closed cloud services without straightforward options for clean vector export or offline backup.
LeNote is a focused, local-first handwriting notebook designed with an Editorial Minimalist ("Warm Paper & Editorial Ink") aesthetic:
- Paper-Centric & Editorial: Inspired by cloth-bound atelier notebooks and printed monographs. Warm cotton-paper surfaces (
#F6F4EE), crisp ivory plates (#FCFBF8),1dphairline borders, and a strong typographic hierarchy (Serifheadlines,Sans-Serifcontrols, andMonospaceindices) keep the focus on your notes. - Engineered for Low Latency: Powered directly by Google's Jetpack Ink (
androidx.ink) library, separating in-progress hardware rendering from finalized vector strokes. - Precision Handwriting & Media Tools: Includes pressure-sensitive ink pens (including Obsidian, White Chalk Ink for dark/OLED paper, Atelier Navy, Crimson, Botanical Green, Plum, and Ochre), highlighters, an analytical partial stroke eraser, polygon lasso with handwriting beautification & baseline alignment, shape snapping, text boxes, and image attachments.
- Hierarchical Organization: Organizes thoughts into Notebooks → Sections → Pages, with a "Continue Writing" recent pages carousel, a Favorites collection, and a Soft-Delete Trash bin, backed by a local SQLite database and atomic file storage.
- Standalone and Portable: Full vector PDF import & export, high-resolution PNG export, and complete
.lenoteworkspace archive import/export.
While LeNote runs on any compatible Android device running Android 7.0 (API 24) or newer, it is engineered and calibrated around:
- Device: Lenovo Xiaoxin Pad 2022 (
TB128FU) - Stylus: Lenovo Precision Pen 2 (Wacom AES protocol, active pressure sensing, primary barrel button)
- Orientation: Adaptive layout for both Tablet Landscape/Portrait and Phone screens
Every threshold—from palm rejection and single-finger scrolling to stylus barrel button toggling—was tuned against real-world handwriting sessions on this device.
- Pressure-Sensitive Pen: Smooth, responsive ink with dynamic line variation powered by Jetpack Ink's stock pressure brush (
StockBrushes.pressurePen()), featuring 7 curated inks (including White Ink with adaptive UI contrast for dark/OLED sheets) and 4 visual stroke thicknesses (Fina,Média,Grossa,Extra). - Highlighter: Semi-transparent, layered highlighter that marks underneath handwritten text without obscuring strokes (
StockBrushes.highlighter()). - Analytical Partial Stroke Eraser: Slices and trims strokes at the exact intersection of the eraser capsule in real time. Does not convert vector strokes to pixelated bitmaps.
- Stylus Button Eraser: Pressing and holding the primary barrel button on the stylus instantly activates the eraser, returning to the previous tool upon release.
- Geometric Shape Snapping: Pause briefly at the end of drawing a line, rectangle, circle, or triangle to snap the freehand stroke into crisp geometry (
ShapeSnappingHelper). - Lasso Selection & Handwriting Refinement: Freeform polygon selection using ray-casting algorithms to move, recolor, duplicate, delete, beautify handwriting, or align strokes to paper rulings.
- Rich Canvas Media: Insert movable, resizable Text Boxes and Images directly onto the sheet alongside handwritten strokes (
CanvasMediaOverlay). - Undo / Redo History: Unlimited, operation-based history stack supporting stroke additions, partial erasure splits, deletions, and lasso transformations.
- Configurable Handwriting Smoothing: Conservative post-stroke geometric damping (
OFF,LOW,MEDIUM) that reduces hardware digitizer micro-jitter without altering intentional letter corners or adding live input latency.
- Intent-Based Touch Handling:
- Stylus: Handwriting, erasing, and selection.
- Single Finger: Smooth document panning (or optional Touch Inking toggle right on the toolbar when writing without a stylus).
- Two Fingers: Pinch-to-zoom and canvas panning.
- Palm Rejection: Discards accidental palm contact during active writing.
- 9 Procedural Paper Templates & 4 Paper Stocks:
- Paper Stocks: Crisp White (
Branco), Legal Pad Yellow (Amarelo Legal), Warm Sepia (Sépia Suave), and Dark OLED Graphite (Grafite OLED). - Vector Rulings: Blank (
Branca), Ruled (Pautada), Grid (Quadriculada), Dotted (Pontilhada), Mathematics (Matemática), Cornell Notes (Método Cornell), Weekly Planner (Planner Semanal), Isometric / Engineering (Papel Engenharia), and Music Staff (Partitura Musical).
- Paper Stocks: Crisp White (
- Nocturnal Dark Mode: Full theme adaptation across the library, dialogs, and canvas (
LeNoteTheme). - Canvas Zoom Control:
0.25xto5.0xzoom range with quick reset (100%) and fit-to-page actions.
- Editorial Hardcover Library: Browse cloth-bound notebook folios in an adaptive multi-column grid, jump back into recent sheets via "Continuar Escrevendo", or filter by Biblioteca, Favoritas, and Lixeira (Trash).
- Collapsible Index Sidebar: Quickly search pages and handwritten content, switch notebooks/sections, browse visual page thumbnails, reorder, duplicate, and favorite sheets.
- PDF Import & Annotation: Import any external
.pdfdocument directly into a new notebook with each PDF page rendered as an annotatable sheet. - Clean Document Export:
- Vector PDF: Crisp, multi-resolution PDF generation using Android's native
PdfDocumentengine. - High-Resolution PNG: Exports the complete canvas independent of current viewport zoom or pan.
- Direct Intent Sharing: Immediate banner action to open or share exported documents via secure
FileProvider(content://).
- Vector PDF: Crisp, multi-resolution PDF generation using Android's native
- Full Workspace Backup: Export or restore complete notebook archives as structured
.lenotepackages (ZIP archive with binary metadata manifest and.inkstroke blobs).
| Component | Technology | Version | Purpose |
|---|---|---|---|
| Language | Kotlin | 2.1.20 |
Core application and engine programming |
| Platform | Android | minSdk 24, targetSdk 36, compileSdk 36.1 |
Target OS environment |
| Inking Engine | Jetpack Ink (androidx.ink) |
1.0.0 |
Low-latency inking, stroke geometry, brushes, and stroke serialization |
| Handwriting OCR | Google ML Kit Digital Ink | 19.0.0 |
On-device handwriting recognition for search indexing and font beautification |
| Input Capture | Android Native Views | N/A | Low-latency dual-view architecture (InProgressStrokesView + FinishedStrokesView) |
| Design System & UI | Jetpack Compose + LeNoteTheme |
BOM 2026.03.01 |
Custom "Warm Paper & Editorial Ink" design system, adaptive grid, floating toolbar |
| Database | SQLite (SQLiteOpenHelper + FTS5) |
Schema v7 |
Fast, local-first metadata storage and full-text handwriting search |
| Async & State | Kotlin Coroutines & Flow | N/A | Background file I/O, debounce auto-save, and reactive UI state |
| Icons | Phosphor Icons | Custom Compose | Consistent, lightweight vector icon system |
| Build System | Gradle / AGP | Gradle 9.4.1 / AGP 9.2.1 |
Automated build system with version catalog (libs.versions.toml) |
LeNote uses a clean, decoupled architecture separating UI presentation, high-performance inking, and atomic local storage:
flowchart TD
subgraph Hardware ["Hardware Layer"]
Stylus["Active Stylus (Pressure & Button)"]
Finger["Touch / Multi-touch"]
end
subgraph NativeInput ["Native Input Layer (Android Views)"]
TouchRouter["Custom View Touch Listener"]
InProgressView["InProgressStrokesView (Jetpack Ink)"]
FinishedView["FinishedStrokesView (Vector Canvas)"]
end
subgraph CoreEngine ["Inking Engine Abstraction"]
Engine["JetpackInkEngine (InkingEngine)"]
Smoother["StrokeSmoother & ShapeSnappingHelper"]
Eraser["PartialStrokeEraser (Analytical Line-Capsule)"]
Lasso["LassoSelectionHelper (Beautify & Align)"]
EngineState["StateFlow<InkingState>"]
end
subgraph Presentation ["UI Layer (Jetpack Compose + LeNoteDesignSystem)"]
Home["HomeScreen (Editorial Library)"]
Screen["InkPlaygroundScreen"]
Toolbar["ToolbarOverlay (Floating Pill)"]
Header["CompactHeaderBar"]
Sidebar["CollapsibleNavigationSidebar"]
ViewModel["InkPlaygroundViewModel"]
end
subgraph DataLayer ["Persistence & Storage Layer"]
Repo["NoteRepository"]
DB["LeNoteDatabase (SQLite)"]
Disk["PageStrokeStorage (Atomic .ink & .png)"]
Exporter["PageExporter & PdfImporter"]
end
Stylus --> TouchRouter
Finger --> TouchRouter
TouchRouter -->|Real-time pointer events| Engine
Engine --> InProgressView
Engine --> FinishedView
Engine --> Smoother
Engine --> Eraser
Engine --> Lasso
Engine --> EngineState
EngineState --> ViewModel
ViewModel --> Home
ViewModel --> Screen
Screen --> Toolbar
Screen --> Header
Screen --> Sidebar
ViewModel --> Repo
Repo --> DB
Repo --> Disk
ViewModel --> Exporter
LeNote/
├── app/
│ ├── src/
│ │ ├── main/
│ │ │ ├── java/com/example/lenote/
│ │ │ │ ├── data/ # SQLite database, entities, preferences, atomic stroke storage
│ │ │ │ │ ├── AppPreferences.kt
│ │ │ │ │ ├── Entities.kt
│ │ │ │ │ ├── LeNoteDatabase.kt
│ │ │ │ │ ├── NoteRepository.kt
│ │ │ │ │ └── PageStrokeStorage.kt
│ │ │ │ ├── export/ # Vector PDF/PNG exporters and PDF importer
│ │ │ │ │ ├── PageExporter.kt
│ │ │ │ │ └── PdfImporter.kt
│ │ │ │ ├── ink/ # Inking engine, Jetpack Ink views, smoother, eraser, lasso, snapping
│ │ │ │ │ ├── FinishedStrokesView.kt
│ │ │ │ │ ├── InkingEngine.kt
│ │ │ │ │ ├── JetpackInkEngine.kt
│ │ │ │ │ ├── LassoSelectionHelper.kt
│ │ │ │ │ ├── PageBackground.kt
│ │ │ │ │ ├── PartialStrokeEraser.kt
│ │ │ │ │ ├── ShapeSnappingHelper.kt
│ │ │ │ │ └── StrokeSmoother.kt
│ │ │ │ ├── ui/ # Compose UI, Custom Design System, screens, dialogs, ViewModel
│ │ │ │ │ ├── theme/
│ │ │ │ │ │ └── LeNoteDesignSystem.kt
│ │ │ │ │ ├── CanvasMediaOverlay.kt
│ │ │ │ │ ├── CollapsibleNavigationSidebar.kt
│ │ │ │ │ ├── HomeScreen.kt
│ │ │ │ │ ├── InkPlaygroundScreen.kt
│ │ │ │ │ ├── InkPlaygroundViewModel.kt
│ │ │ │ │ ├── PageTemplatePickerDialog.kt
│ │ │ │ │ └── PhosphorIcons.kt
│ │ │ │ └── MainActivity.kt # Activity entry point and navigation transitions
│ │ │ ├── res/ # App themes, launcher mipmaps, XML rules
│ │ │ └── AndroidManifest.xml # Manifest declaration, FileProvider authorities
│ │ └── test/ # Unit test suites (storage, smoothing, lasso, refinement, erasing)
│ └── build.gradle.kts # App module dependencies and SDK configuration
├── docs/
│ └── images/ # Application screenshots & previews
├── gradle/
│ └── libs.versions.toml
├── build.gradle.kts
└── settings.gradle.kts
Detailed technical and user documentation is available in the repository:
- User Guide (
docs/USER_GUIDE.md): Complete manual covering notebooks, sections, templates, stylus tools, partial eraser, lasso & handwriting recognition, PDF annotation, exports, and.lenotebackups. - Storage & Persistence Architecture (
docs/STORAGE.md): Deep dive into the hybrid SQLite + atomic.inkfile storage engine,.inkbinary layout, thumbnail generation,400msdebounce auto-save,fsynccrash safety, and.lenoteZIP archive structure. - Dependencies & Licenses (
docs/DEPENDENCIES.md): Full inventory of direct and transitive dependencies, exact versions, and licensing analysis (Apache-2.0 vs. proprietary Google ML Kit components). - Privacy Policy & Technical Verification (
PRIVACY.md): Verifiable breakdown of on-device data storage, ML Kit language model downloads, backup behavior, and compiledAndroidManifest.xmlpermissions.
The project is verified against the following exact toolchain configuration:
- JDK: Java 17 (Temurin 17 recommended) or Java 21 (Kotlin bytecode target: JVM 11)
- Gradle Wrapper:
9.4.1(configured ingradle/wrapper/gradle-wrapper.properties) - Android Gradle Plugin (AGP):
9.2.1(configured ingradle/libs.versions.toml) - Kotlin:
2.1.20 - Android SDK:
compileSdk 36(minorApiLevel = 1),targetSdk 36,minSdk 24
git clone https://github.com/LirielC/LeNote.git
cd LeNoteExecutes the JVM unit test suite covering storage atomicity, stroke smoothing, partial eraser geometry, lasso selection, and handwriting refinement:
# Linux / macOS
./gradlew testDebugUnitTest
# Windows (PowerShell)
.\gradlew.bat testDebugUnitTestGenerates an installable debug APK signed with the local Android debug key at app/build/outputs/apk/debug/app-debug.apk:
# Linux / macOS
./gradlew assembleDebug
# Windows (PowerShell)
.\gradlew.bat assembleDebugTo install directly onto a connected Android device or emulator:
.\gradlew.bat installDebugFor security, no keystore files or passwords are committed to this repository, and the release build type never falls back to a debug key or unsigned artifact.
Building any Release variant task (assembleRelease, bundleRelease, packageRelease, etc.) strictly requires all four environment variables below to be set and pointing to an existing keystore file; otherwise, Gradle immediately aborts the build with a clear error message:
# Linux / macOS
export LENOTE_KEYSTORE_PATH="/absolute/path/to/your-release-key.jks"
export LENOTE_KEYSTORE_PASSWORD="YOUR_STORE_PASSWORD"
export LENOTE_KEY_ALIAS="YOUR_KEY_ALIAS"
export LENOTE_KEY_PASSWORD="YOUR_KEY_PASSWORD"
./gradlew assembleRelease# Windows (PowerShell)
$env:LENOTE_KEYSTORE_PATH = "C:\path\to\your-release-key.jks"
$env:LENOTE_KEYSTORE_PASSWORD = "YOUR_STORE_PASSWORD"
$env:LENOTE_KEY_ALIAS = "YOUR_KEY_ALIAS"
$env:LENOTE_KEY_PASSWORD = "YOUR_KEY_PASSWORD"
.\gradlew.bat assembleReleaseThis project's source code is licensed under the MIT License — see the LICENSE file for details. For third-party library licenses (including Google ML Kit terms), see docs/DEPENDENCIES.md.
Developed by LirielC (lirielcastroreis@gmail.com) — github.com/LirielC/LeNote





