Android development and implementation of launcher3 application list to modify transparent background

This paper describes the method of modifying the transparent background of launcher3 application list by Android development. Share with you for your reference, as follows:

Launcher is the first application launched after startup. It is used to display the application list, shortcuts, widgets, etc. As the first application (the first application launched after startup), the design of launcher affects the user's experience and even the user's judgment of purchase. Therefore, many brand manufacturers will spare no effort to deeply customize the launcher, such as Xiaomi's MIUI, Huawei's emui, etc. Android's default launcher is less customized and more concise. It is sought after by the Yuansheng party. Google's nexus series mobile phones basically use Yuansheng launcher. At present, the version of Android Yuansheng launcher is launcher3.

We have summarized some common methods to modify the configuration of launcher3. Here we will analyze the modification skills of the background of the application list of launcher3.

Change the background of the application list of launcher3 to transparent, which is slightly different from launcher2. The following steps are required:

1. Find RES / layout / apps_ customize_ Pane.xml file, which will

Amend to read:

The animation section

Amend to read:

2. Find the ontabchangeend() method in the appsacustomizetabhost.java class, as follows:

Bgalpha is the transparency parameter. Change it to the transparency you need, and 255 is opaque. After steps 1 and 2 above, save and compile to achieve the desired effect.

For more Android related content, readers who are interested can view the topics on this site: introduction and advanced tutorial of Android development, summary of Android debugging skills and common problem solutions, summary of Android multimedia operation skills (audio, video, recording, etc.), summary of Android basic component usage, summary of Android view skills Android layout skills summary and Android control usage summary

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>