51CTO HarmonyOS Developer Community
Author

51CTO HarmonyOS Developer Community

The HarmonyOS Developer Community is a learning-oriented community for developers to learn, communicate, ask questions, and share.

74
Articles
0
Likes
262
Views
0
Comments
Recent Articles

Latest from 51CTO HarmonyOS Developer Community

74 recent articles
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Apr 30, 2026 · Mobile Development

HarmonyOS Pen Kit: Integrating Stylus Squeeze, Double-Tap & Color Picker

This tutorial demonstrates complete integration of HarmonyOS Pen Kit's stylusInteraction module for squeeze and double-tap events, and imageFeaturePicker for color picking, covering callback reference management, lifecycle-aware registration with try-catch protection, event object fields, and UI feedback patterns including status visualization, counters, and toast notifications.

HarmonyOSLifecycleM-Pencil
0 likes · 13 min read
HarmonyOS Pen Kit: Integrating Stylus Squeeze, Double-Tap & Color Picker
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Apr 17, 2026 · Frontend Development

HarmonyOS NEXT Responsive Layout: Semantic Breakpoints, Slot Architecture & State Preservation

This article presents a practical approach to building responsive layouts in HarmonyOS NEXT by defining semantic window breakpoints (narrow/medium/wide), centralizing breakpoint logic in a dedicated store, separating layout concerns into a PageShell component, and preserving UI state like selection and scroll position across layout changes.

ArkUIFrontend DevelopmentHarmonyOS NEXT
0 likes · 12 min read
HarmonyOS NEXT Responsive Layout: Semantic Breakpoints, Slot Architecture & State Preservation
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Apr 2, 2026 · Mobile Development

HarmonyOS 6: Building Controllable Request Interception for AI Apps Amid Trust Crisis

Triggered by the APIfox supply-chain attack, this article details HarmonyOS 6's three-layer request interception (onLoadIntercept, onInterceptRequest, WebSchemeHandler) with code examples for whitelist enforcement, resource substitution, audit logging, and AI-specific filters against prompt injection and data leakage.

AI SecurityArkWebAudit Logging
0 likes · 22 min read
HarmonyOS 6: Building Controllable Request Interception for AI Apps Amid Trust Crisis
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Mar 27, 2026 · Mobile Development

HarmonyOS Dynamic Gradient Backgrounds: From Property Animation to Keyframe Animation

This article details two approaches for creating dynamic gradient backgrounds in HarmonyOS apps: a simple property animation for color transitions and a high-performance keyframe animation that moves an oversized gradient layer to achieve complex flowing and rotating effects, with complete code examples and a comparison table.

Animation PerformanceArkUIDynamic Gradient
0 likes · 22 min read
HarmonyOS Dynamic Gradient Backgrounds: From Property Animation to Keyframe Animation
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Mar 24, 2026 · Mobile Development

HarmonyOS Tutorial: Audio-Driven Wave Ripple Animation with Microphone Input

This HarmonyOS tutorial walks through building a sound-responsive wave ripple animation by capturing microphone amplitude via AudioCapturer, mapping the 0–1 level to a 80–300 pixel radius using a log10 sensitivity curve, animating three staggered circles with opacity fade, and throttling updates to prevent jank.

AnimationArkUIAudioCapturer
0 likes · 9 min read
HarmonyOS Tutorial: Audio-Driven Wave Ripple Animation with Microphone Input
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Mar 9, 2026 · Mobile Development

HarmonyOS 6 RcText Component: Complete Usage Guide with Code Examples

This guide details the RcText component from the rchoui library for HarmonyOS 6, covering basic text display, theme colors, sizing, custom styling, alignment, decoration, truncation modes, special formats for price and phone numbers, link handling, prefix/suffix icons, interaction events, and layout control with practical code examples.

ArkTSComponent LibraryHarmonyOS
0 likes · 25 min read
HarmonyOS 6 RcText Component: Complete Usage Guide with Code Examples