Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 272

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report