Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for hiding and displaying virtual keys of android device

A key and device technology, applied in the field of mobile terminal display, can solve problems such as large code redundancy, reduced development efficiency, virtual keys cannot be hidden and appear, and achieve the goal of reducing code redundancy, optimizing code structure, and improving open efficiency. Effect

Active Publication Date: 2016-04-13
浙江安吉椅业科技有限公司
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This Android-native approach reduces development efficiency. The person in charge of each module independently hides the virtual buttons of their own page windows. The code redundancy is large. Once the properties of a single page window are set, they cannot be changed dynamically, resulting in the inability of the virtual buttons to be flexible. hide and appear

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
  • Method and system for hiding and displaying virtual keys of android device
  • Method and system for hiding and displaying virtual keys of android device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Please refer to figure 1 , a method for conveniently realizing virtual button hiding and displaying of an Android device disclosed by the present invention, comprising the following steps:

[0045] Step S1. Optimizing and combining the common (or commonly used) attributes of the View class, and encapsulating them into function interfaces of three styles: complete hiding, semi-hiding and full display of virtual buttons, and each style of function interface has a corresponding function parameter ;

[0046] Step S2, create a virtual button display service that provides three styles of function interfaces, and run in the process of the system;

[0047] Step S3, rewriting the requestFeature(intflag) method of the window interface class according to the function interface;

[0048] Step S4, when the window interface is refreshed, call the rewritten requestFeature(intflag) method, and pass different function parameters.

[0049] Among them, in step S1, the so-called general...

Embodiment 2

[0061] On the basis of Embodiment 1, the present invention also provides a system that facilitates the hiding and display of virtual buttons on Android devices, please refer to figure 2 As shown, it includes: a function interface encapsulation unit 10 , a creation service unit 20 , a rewriting unit 30 and a calling unit 40 . Wherein: the function interface encapsulation unit 10 is used for optimizing and combining the common attributes of the View class, and encapsulating the function interfaces of three styles of fully hiding, semi-hiding and fully displaying virtual buttons, and the function interface of each style has a corresponding function parameters. The creation service unit 20 is used to create a virtual button display service that provides the above three styles of function interfaces, and runs in the process of the system. The rewriting unit 30 is used for rewriting the requestFeature (intflag) method of the window interface class according to the function interfa...

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 method for hiding and displaying virtual keys of an android device. The method comprises the following steps: step S1, performing optimization combination on universal attributes of a View class and performing packaging to form three function interfaces; step S2, creating a virtual key display service for providing the three function interfaces and running the service in a system process; step S3, rewriting a requestFeature (int flag) method of a window interface class; and step S4, during window interface refreshing, calling the rewritten requestFeature (int flag) method and transmitting different function parameters. The invention furthermore discloses a system used for hiding and displaying the virtual keys of the android device and comprising a function interface packaging unit, a service creation unit, a rewriting unit and a calling unit. According to the method and the system, the packaged function interfaces can be flexibly called, the virtual keys can be flexibly controlled by an interface window, and a code structure can be optimized to reduce code redundancy and improve development efficiency.

Description

technical field [0001] The present invention relates to the field of mobile terminal display technology, in particular to a method and system for conveniently realizing the hiding and displaying of virtual buttons of an Android device. Background technique [0002] With the rapid development of the mobile Internet, various Android devices emerge in endlessly. Personalization and differentiation have become the highlights of these devices. The coolness of the software is also one of the buying points. Therefore, many device software pursues the personalization of the interface, such as the virtual button. Handling, sometimes hidden and sometimes shown, is also an important software feature. [0003] The current way to hide or display virtual buttons is to add some window attributes to the required interface windows, such as: [0004] View.SYSTEM_UI_FLAG_HIDE_NAVIGATION [0005] View.YSTEM_UI_FLAG_LOW_PROFILE [0006] View.SYSTEM_UI_FLAG_LAYOUT_STABLE [0007] View.SYSTEM_...

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 Applications(China)
IPC IPC(8): G06F9/44G06F9/445
CPCG06F8/38G06F9/44505
Inventor 钟凡杨海晓
Owner 浙江安吉椅业科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products