AI Code to Success
Author

AI Code to Success

Focused on hardcore practical AI technologies (OpenClaw, ClaudeCode, LLMs, etc.) and HarmonyOS development. No hype—just real-world tips, pitfall chronicles, and productivity tools. Follow to transform workflows with code.

73
Articles
0
Likes
539
Views
0
Comments
Recent Articles

Latest from AI Code to Success

73 recent articles
AI Code to Success
AI Code to Success
May 13, 2020 · Mobile Development

Turn Any Android App Grayscale with a Few Custom Views

This article explains how to apply a full‑screen grayscale effect to Android apps by using a single CSS rule for web pages and custom View subclasses—GrayImageView, GrayTextView, GrayLinearLayout, and GrayFrameLayout—plus an Activity onCreateView override to replace the root content view, complete with code snippets and practical tips.

AndroidAppCompatCanvas
0 likes · 15 min read
Turn Any Android App Grayscale with a Few Custom Views
AI Code to Success
AI Code to Success
Apr 26, 2020 · Mobile Development

Why match_parent ≠ EXACTLY: Unraveling Android MeasureSpec Modes

This article debunks the common belief that match_parent and wrap_content always correspond to MeasureSpec.EXACTLY and MeasureSpec.AT_MOST, explains how a parent view's spec mode and LayoutParams together determine the final MeasureSpec, and shows when UNSPECIFIED actually appears in Android layouts.

AndroidCustomViewLayout
0 likes · 7 min read
Why match_parent ≠ EXACTLY: Unraveling Android MeasureSpec Modes
AI Code to Success
AI Code to Success
Apr 25, 2020 · Mobile Development

How Android’s GestureDetector Detects Double‑Tap and Other Gestures

This article explains the inner workings of Android’s GestureDetector class, detailing how it creates listeners, processes MotionEvent actions, schedules handler messages, and determines the timing and conditions for callbacks such as onDown, onShowPress, onSingleTapUp, onScroll, onLongPress, onFling, and double‑tap events.

double-tapgesturegesturedetector
0 likes · 13 min read
How Android’s GestureDetector Detects Double‑Tap and Other Gestures
AI Code to Success
AI Code to Success
Mar 31, 2020 · Mobile Development

Why onTouch Fires Before onClick: Deep Dive into Android Touch Event Dispatch

This article explains Android's touch event dispatch mechanism, detailing MotionEvent actions, the roles of dispatchTouchEvent, onInterceptTouchEvent, and onTouchEvent, and demonstrates through code why onTouch executes before onClick and how returning true from onTouch consumes the click event.

AndroidTouchEventdispatchTouchEvent
0 likes · 14 min read
Why onTouch Fires Before onClick: Deep Dive into Android Touch Event Dispatch
AI Code to Success
AI Code to Success
Feb 4, 2020 · Fundamentals

Dynamic Programming Essentials: Concepts, Conditions, and a Fractional Knapsack Demo

This article introduces dynamic programming as an optimization technique from operations research, explains its fundamental concepts, optimality principle, no‑after‑effect property, and overlapping subproblems, outlines the typical problem‑model steps, and demonstrates a practical C++ implementation for solving the fractional knapsack problem.

C++DPOptimization
0 likes · 10 min read
Dynamic Programming Essentials: Concepts, Conditions, and a Fractional Knapsack Demo
AI Code to Success
AI Code to Success
Feb 1, 2020 · Mobile Development

Unlocking Android RemoteViews: Build and Control Widgets & Notifications

This article explains what RemoteViews are, their use cases in notification bars and home‑screen widgets, provides step‑by‑step code for both scenarios, details PendingIntent handling, and dives deep into the internal cross‑process mechanisms that power RemoteViews updates.

AndroidJavaNotifications
0 likes · 17 min read
Unlocking Android RemoteViews: Build and Control Widgets & Notifications