Unlock instant, AI-driven research and patent intelligence for your innovation.

Status bar display method of mobile terminal and mobile terminal

A mobile terminal and display method technology, applied in the field of communication, can solve problems such as heavy workload and unclear content, and achieve the effect of cost reduction and immersive style coordination

Active Publication Date: 2020-07-28
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Directly set the window translucency attribute in the mobile theme, and then set the corresponding top margin on all pages. This method is easy to operate and does not require major adjustments to the original application, but partially modified the android default After the immersive property is enabled on the mobile phone ROM (Read Only Memory) in the status bar, the top color of the application and the font icon color of the status bar collide with each other, making it difficult to see the content of the original status bar;
[0004] 2. After getting the current window through the function activity.get Window, use the function get Decor View to get the top-level view object, and then create and add the view object to be displayed on the status bar. This method does not need to care about system users The size and position of the interface, but you need to set android:fits System Windows="true" on all displayed xml (Extensible MarkupLanguage, Extensible Markup Language), and add android:clip when the content needs to be displayed To Padding = "false", so the workload is very heavy, and each activity needs to initialize the color of the immersive view object when it is created, so it is difficult to upgrade the original non-immersive application in this way

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Status bar display method of mobile terminal and mobile terminal
  • Status bar display method of mobile terminal and mobile terminal
  • Status bar display method of mobile terminal and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0031] The core idea of ​​the solution of the embodiment of the present invention is: by initializing the status bar of the mobile terminal, the API level is determined when the initial height of the status bar and the API level of the application programming interface are obtained, and when the API level is determined to be a predetermined level , The initial height of the status bar is adjusted to obtain the current actual height, and then a shadow is drawn on the status bar adjusted to the current actual height and displayed. In this way, under the premise that the original content of the status bar of the mobile terminal is clearly visible, a large number of changes to xml are eliminated, so as to minimize the cost of application modification and ensure that the immersive style of the entire application is harmo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a status bar display method for a mobile terminal. The method comprises the following steps of initializing a status bar of the mobile terminal and obtaining an initial height of the status bar and an application programming interface (API) level; judging the API level; when the API level is judged to be a predetermined level, adjusting the initial height of the status bar to obtain a current actual height; and drawing a shadow on the status bar adjusted to have the current actual height, and performing display. The invention furthermore discloses the mobile terminal. According to the method and the mobile terminal, a large amount of xml modifications are removed on the premise of protecting clear and visible original contents of the status bar of the mobile terminal, so that the application modification cost is reduced to the maximum extent and the immersive style of the whole application is ensured to be coordinated and unified.

Description

Technical field [0001] The present invention relates to the field of communication technology, and in particular to a method for displaying a status bar of a mobile terminal and a mobile terminal. Background technique [0002] The status bar of a traditional mobile terminal, such as a mobile phone, usually presents a black bar, which is obviously different from the main interface of the mobile phone. In this way, the visual width is affected to a certain extent and the area of ​​the main interface becomes smaller. Existing mobile phones based on the Android operating system usually adopt the following two immersive design solutions to solve this problem: [0003] 1. Directly set the window translucent state attribute in the mobile phone theme, and then set the corresponding top margin on all pages. This method is simple to operate and does not require much adjustment to the original application, but the android default is modified in some parts After the immersive attribute is tur...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0481G06F9/451
Inventor 翟一帆林声炜苟键曾勇俞尚陈钟梁祥泰苟晓东李宏伟
Owner TENCENT TECH (SHENZHEN) CO LTD