Android custom drop-down status bar QSTileBaseView shortcut icon size and style

Android custom drop-down status bar QSTileBaseView shortcut icon size and style

In Android, the drop-down status bar (Notification Shade) is one of the important interfaces for users to interact with the device. The Quick Settings in the drop-down status bar provides quick access to some commonly used functions, such as turning on/off wireless network, adjusting screen brightness, etc. QSTileBaseView is the base view for displaying shortcut icons. By customizing it, we can modify the size and style of shortcut icons. This article details how to make such customizations.

First, we need to create a custom QSTileBaseView class that inherits from QSTileBaseView. In this class, we can override some methods to change the icon size and style. Here is a sample code:

import android.content.Context;
import android.graphics.drawable

Guess you like

Origin blog.csdn.net/Jack_user/article/details/132371583