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

Status bar display method for 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: 2017-02-22
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 1 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 DecorView 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 the system user interface size and position, but you need to set android:fits SystemWindows="true" on all exhibited xml (Extensible Markup Language, Extensible Markup Language), and add android:clip ToPadding when the content needs to be displayed = "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 for mobile terminal and mobile terminal
  • Status bar display method for mobile terminal and mobile terminal
  • Status bar display method for mobile terminal and mobile terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] It should be understood that the specific embodiments described here are only used to explain the present invention, 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, when obtaining the initial height of the status bar and the API level of the application programming interface, judge the API level, when it is determined that the API level is a predetermined level , adjust the initial height of the status bar to obtain the current actual height, then draw a shadow on the status bar adjusted to the current actual height, and display it. In this way, under the premise of protecting the original content of the status bar of the mobile terminal clearly visible, a large number of modifications to the xml are avoided, the cost of application modification is reduced to the greatest extent, and the immersive style of the entire application is ensured. F...

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 invention relates to the field of communication technologies, in particular to a method for displaying a status bar of a mobile terminal and the 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. The 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 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 mobil...

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
IPC IPC(8): G06F3/0481G06F9/44
Inventor 翟一帆林声炜苟键曾勇俞尚陈钟梁祥泰苟晓东李宏伟
Owner TENCENT TECH (SHENZHEN) CO LTD