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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com