I. Overviewrecently noted that the QQ version of the use of immersion status bar, OK, the first statement of the effect of the picture:
Well, here's the thing.First of all, only greater than or equal to version 4.4 supports the translucent status bar effect, but the display of 4.4 and 5.0 has a certain difference, a
); Tintmanager.setstatusbartintresource (Colorid); } }/** * Set the status bar black font icon, * suitable for 4.4 or more versions miuiv, FlyMe and 6.0 or later other Android * * @param activity * @ret Urn 1:miuui 2:flyme 3:android6.0 * / Public Static int Statusbarlightmode(Activity activity) {intresult =0;if(Build.VERSION.SDK_INT >= build.version
get a high screen width
Status bar HeightView Getwindowvisibledisplayframe (Rect outrect) appended Outrect, Outrect.top () is the status bar height
Title HeightThe Outrect.height ()-view.getheight () is the caption height after the getwindowvisibledisplayframe (Rect outRect1) value outrect The view is attached.
1.
Android Project Practice (): immersive effect on the status bar of game and video applications, and android practice
Requirements:
Mobile app, when playing a game or watching a video in full screen, you will find that the status bar
Android Status Bar Notification, Android notification
Android notifies users in three ways:
1. Toast Notification
2. Dialog Notification
3. Status Bar Notification,
Reprint Please specify source: http://blog.csdn.net/guolin_blog/article/details/51763825
This article is posted in my public number, sweep the bottom of the article QR code or search Guo Lin can pay attention to, every day there are articles updated.
Remember before a friend in the message let me write an article about the immersion status bar, just as I do have this plan, then this article wi
Notification (notice) generally used in the phone, sms, mail, Alarm clock, in the status bar of the phone will appear a small icon, prompting the user to handle this notification, then the hand from the top of the slide status bar can be expanded and processed this notice;In the An
Objective:After Android 4.4, Google provides immersive full-screen experience, in immersive full-screen mode, the status bar, virtual key dynamic hidden, the application can use the full screen space, according to Google, to give users an immersive experience. After Android 5.0, Google also put forward the concept of c
Color changing status bar for Android
First, we need to know what is the transparent status bar and what is the immersive status bar, and the difference. In China, the transparent
Objective:After Android 4.4, Google provides immersive full-screen experience, in immersive full-screen mode, the status bar, virtual key dynamic hidden, the application can use the full screen space, according to Google, to give users an immersive experience. After Android 5.0, Google also put forward the concept of c
the Res/values directory (used to put styles)
②
The second method
Only go to the program title bar to set the entire application no title
Third: This is not commonly used in general applications, that is, under the Res/values directory to create a new Style.xml file for example:
In this way, we customize a style, which is equivalent to a theme, and then define in the Androidmanifest.xml file
Hello everyone, let's briefly talk about the android status bar reminder, which will also be used frequently during development. When we plug in USB, there will be a status bar reminder, and a text message will also contain a status
In Android Application Development, Status Notification (Status Notification) is often used, such as push messages provided by Sina Weibo and Netease News, and the progress of updating the software background, as shown in:
I read a lot of blog articles about Notification on the Internet and found that almost no Notification on the custom
In the past two days, due to a customer's requirement, the volume key on the status bar of the MID portrait screen is removed. So I tried to modify it, succeeded, and shared my experience.
Take a look at the modified one, as shown below.
Horizontal screen: there is a volume plus or minus key
Portrait screen: The volume plus or minus key is removed
Then let's talk about my solution.
First I checked the
So, after reading my article, there are two options for Android developers:Use these new features for app development?By customizing, use the Chameleon status bar to achieve a flat visual effect?In dynamic switching, native immersion is better than chameleon. Chameleon change is the status
layout:Same as the top layout.Achieve true full screen display, picture under status barTo implement a picture that can be displayed under the status bar, such as an effect, you need to make the status bar Transparent, The second type above 5.0 does not make the
Today summed up the status bar color settings, common to have a fixed color or immersion implementation, nonsense not to say, directly above the figure.
Standard:
Fixed color:
Immersion type:
My personal latest immersive implementation,
bar height is 24DP, insurance or need to read the system's configuration height, as well as the settings padding sometimes fail, you need handler.post(new Runnable()) to ensure code execution
Read the system configuration status bar height code: /** * 19API above reading to the status
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.