Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.
This codelab demonstrates a sophisticated user interface designed specifically for small-screen wearable devices. It
features a secure PatternLock entry system and a comprehensive Quick Reply dashboard. The project showcases
advanced ArkUI capabilities such as MutableStyledString for rich text, Canvas for custom drawing, and dynamic UI
state management.
- Secure Access Control: Implements a
PatternLocksystem to gate-keep the input deck with real-time feedback. - Rich Text Branding: Uses
MutableStyledStringto create a dual-styled header ("Quick" in Bold White, "Reply" in Light Blue) within a singleTextcomponent. - Dynamic Input Methods: Toggle between a searchable quick-reply list and an emoji selection row using
a
SegmentButton. - Custom Graphic Indicators: Utilizes
DrawingRenderingContexton aCanvasto draw a custom status indicator using thedrawing.BrushAPI. - Contextual Visual Feedback: A slider that changes color (Blue to Red) based on the "Urgency" level, providing haptic feedback.
- Languages: ArkTS, ArkUI
- Frameworks: HarmonyOS SDK 5.0.2(14)
- Tools: DevEco Studio Version 5.1.0.828+
- Libraries:
@kit.ArkUI(UI Components & Layouts)@kit.ArkGraphics2D(Custom Canvas Drawing & Graphics)@kit.PerformanceAnalysisKit(Optimization)@kit.AbilityKit(Application Framework)
- PatternLock: Secure pattern verification with custom challenge results.
- StyledString API: Dynamic per-character styling and range-based text modification.
- Drawing Engine: Manual brush and circle rendering via
drawingmodule for granular UI control. - Wearable Optimization: Responsive layout and touch targets tailored for Huawei Watch series.
QuickReplyDeck
|--- entry/src/main/ets/
| |--- pages/
| | |--- Index.ets # Main logic and UI structure
| |
| |--- resources/ # App icons, media, and raw assets
| |--- screenshots/ # UI Preview images for documentation
- Huawei Watch 4 Series
- Huawei Watch 5 Series
- Circular Screen Wearables (UI optimized via
.clipand.width/heightconstraints)
QuickReplyInputDeck is distributed under the terms of the MIT License. See the LICENSE for more information.


