Tag

CustomView

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 23, 2024 · Mobile Development

Creating a TabItem with Custom Rounded Corners Using Android Compose Path

This article explains how to achieve a tab item with asymmetric rounded corners in Android Compose by either assembling three Views or drawing the shape with a Path, including detailed step‑by‑step code and a discussion of common pitfalls.

AndroidComposeCustomView
0 likes · 6 min read
Creating a TabItem with Custom Rounded Corners Using Android Compose Path
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.

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