Tagged articles
6 articles
Page 1 of 1
The Dominant Programmer
The Dominant Programmer
Nov 30, 2020 · Mobile Development

How to Implement Five Common Android Dialog Types

This tutorial walks through creating five typical Android dialogs—normal, list‑based, custom‑view, progress bar, and date picker—by adding buttons to a layout, writing click handlers, and using AlertDialog, ProgressDialog, and DatePickerDialog with complete code examples and screenshots.

AlertDialogAndroidCustomView
0 likes · 8 min read
How to Implement Five Common Android Dialog Types
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.

AndroidCustomViewMeasureSpec
0 likes · 7 min read
Why match_parent ≠ EXACTLY: Unraveling Android MeasureSpec Modes
Sohu Tech Products
Sohu Tech Products
Apr 8, 2020 · Mobile Development

How to Apply a Global Grayscale Theme to Android Apps Using Custom Views

This article demonstrates how to achieve a global grayscale (black‑and‑white) effect in Android applications by adding simple CSS‑like styles for web pages and creating custom ImageView, TextView, Button, LinearLayout, FrameLayout subclasses that override draw and dispatchDraw methods, and integrating them via Activity onCreateView to replace the default content view.

CanvasCustomViewUI
0 likes · 13 min read
How to Apply a Global Grayscale Theme to Android Apps Using Custom Views