Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement Launcher3 Application list to modify transparent background in Android Development

Shulou Source: shulou.com Published: 2022-06-01 00:33:15 10月03日 Update

This article introduces the relevant knowledge of "how to develop Android to modify the transparent background of Launcher3 application list". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The details are as follows:

Launcher is the first application to be launched after booting, which is used to display the list of applications and shortcuts, widgets, etc. As the first application (the first application to be launched after boot), the design of Launcher affects the user's experience and even the judgment of buying a computer. So many brand manufacturers will spare no effort to deeply customize the Launcher, such as Xiaomi's MIUI, Huawei's EMUI and so on. Android default Launcher is not too customized, more concise, and is sought after by Yuansheng Party. Google's Nexus series phones basically use Yuansheng Launcher. At present, the Launcher version of Android is Launcher3.

The previous summary of some common launcher3 configuration modification methods, here to analyze the launcher3 application list background modification skills.

Modify the background of launcher3's application list to be transparent, which is slightly different from Launcher2. You need to perform the following steps:

1. Find the res/layout/apps_customize_pane.xml file and set the

Modified to:

Turn the animation part

Modified to:

2. Find the onTabChangedEnd () method in the AppsCustomizeTabHost.java class, as follows:

Private void onTabChangedEnd (AppsCustomizePagedView.ContentType type) {int bgAlpha = (int) (255* (getResources (). GetInteger (R.integer.config_appsCustomizeSpringLoadedBgAlpha) / 100f)); setBackgroundColor (Color.argb (bgAlpha, 0,0,0)); mAppsCustomizePane.setContentType (type);}

BgAlpha for the transparency of the parameters, change it to the transparency you need, 255opaque, the above steps 1, 2, save, compile, you can achieve the desired results.

This is the end of the content of "how to implement Android development to modify the transparent background of Launcher3 application list". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Application background user development content method more steps knowledge transparency influence different practical concise spare no effort learning next animation manufacturer parameters Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft MariaDB Huawei Xiaomi