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

Example Analysis of the Integration of Android5.0 app Interface and Notification Bar

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces you the example analysis of the integration of Android5.0 app interface and notice bar, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Foreword:

On the mobile phone of the Android5.0 system, the app interface can be integrated with the notification bar.

First of all, let's look at the picture.

Values-v11 means that the style under this folder will be used on phones with system version 3.0.

Values-v21 means that the style under this folder will be adopted on phones with system version 5.0.

2. After knowing the version adaptation of values, we will add the code of setting notification bar integration in values-v21.

You just need to add the corresponding color code assigned by android:colorPrimaryDark, isn't it easy?

3. In order to show its effect, we set a simple title layout in the layout interface.

4. Apply our defined theme to app

5. Next, run our app to see the effect

This is the end of the example analysis on the integration of the Android5.0 app interface and the notification bar. I hope the above content can be of some help and learn more knowledge. If you think the article is good, you can share it for more people to see.

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: 0

*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