CN108459858B - Function adjusting method, device, equipment and storage medium of application program - Google Patents

Function adjusting method, device, equipment and storage medium of application program Download PDF

Info

Publication number
CN108459858B
CN108459858B CN201810284474.1A CN201810284474A CN108459858B CN 108459858 B CN108459858 B CN 108459858B CN 201810284474 A CN201810284474 A CN 201810284474A CN 108459858 B CN108459858 B CN 108459858B
Authority
CN
China
Prior art keywords
function
adjusted
interface
application program
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810284474.1A
Other languages
Chinese (zh)
Other versions
CN108459858A (en
Inventor
张磊
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810284474.1A priority Critical patent/CN108459858B/en
Publication of CN108459858A publication Critical patent/CN108459858A/en
Application granted granted Critical
Publication of CN108459858B publication Critical patent/CN108459858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for adjusting functions of an application program. The method comprises the following steps: generating a covering pattern for an interface comprising a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface; and according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user. Through the technical scheme, the problems of long shelf life, low speed, high error rate and the like of the conventional functional module are solved, and the effects of considering the function quick adjustment in the application program and keeping the stable operation of other functions of the application program are achieved.

Description

Function adjusting method, device, equipment and storage medium of application program
Technical Field
The present invention relates to computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting functions of an application.
Background
In an application program (APP) development project, for reasons of information security or legal constraints, some functions in an APP need to be quickly disabled, also referred to as function module off-shelf.
The functional module off-shelf due to function falling off and the like usually requires a relatively long period for off-shelf operation, that is, a program segment supporting the off-shelf function is deleted from the application program, and an associated program segment between the off-shelf function and another function is adjusted. The reason why the operation needs to be performed for a long time is that due to high code coupling, if the code is deleted quickly, the code segment is easily deleted incompletely or excessively, and the operation of some original functions may be abnormal, which results in the decrease of the customer experience. Therefore, program segments of more function modules related to the program deleted from the program segment, even program segments of the whole application software, rather than program segments of the functions to be off-shelved, need to be modified, which makes the modification process of the program segments very complicated, not only easily introduces program bugs, but also brings large workload for developers and slow speed of off-shelving modules. On the other hand, the operations of modifying the program segment and performing the function test need to be repeatedly performed to ensure the normal operation of all the functional modules in the application program, which prolongs the shelf life of the functional modules and cannot meet the requirement of fast shelf life.
For example, if a part of lottery function modules in the fast drawing lottery function are required in a live application, program segments corresponding to the part of lottery function modules, such as a page layout program segment for laying out lottery pages, a page switching program segment for switching between different lottery pages, a network request program segment for acquiring data, and an initialization program segment for initializing data of a lottery title bar or a lottery page, need to be deleted.
The deleting mode in the prior art is difficult to consider the purposes of stable program operation and quick off-shelf of the functional module.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for adjusting functions of an application program, which are used for quickly adjusting the functions in the application program and keeping other functions of the application program to stably run.
In a first aspect, an embodiment of the present invention provides a method for adjusting functions of an application program, including:
generating a covering pattern for an interface comprising a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
and according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user.
Optionally, for an interface including a function to be adjusted, generating a masking pattern according to an interface region corresponding to the function to be adjusted to cover the interface on the function region to be adjusted, and displaying the interface includes:
for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface;
the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
Optionally, according to the input setting in the application program, disabling the user from the associated input operation of the function to be adjusted includes:
according to the input setting in the application program, forbidding the sliding switching operation of the interface where the function to be adjusted is located by the user;
and the input in the application program is set to be in a forbidden state according to the control class to which the function to be adjusted belongs.
Optionally, the function to be adjusted is a title bar, a status bar, or a function list page.
Optionally, the method further comprises:
and limiting the data loading of the function to be adjusted according to the data loading setting in the application program.
Optionally, according to the data loading setting in the application program, limiting the data loading of the function to be adjusted includes:
before the interface is displayed, according to a data loading request in a functional program segment to be adjusted in the application program, local disguised data is created as a loading result and is transmitted to the functional program segment to be adjusted.
Further, the data loading request is a network loading request of display content in a display area of the function to be adjusted, or a network loading request of entity display content corresponding to the function to be adjusted.
Further, the assignment interface of the loading result is associated with a return interface of local masquerading data, and the data loading request in the functional program segment to be adjusted is shielded.
Optionally, according to the data loading setting in the application program, limiting the data loading of the function to be adjusted includes:
and loading the data of the interface where the function to be adjusted is located according to the cache upper limit setting in the application program, wherein the cache upper limit is smaller than the cache amount for loading the content of the function to be adjusted.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting a function of an application, where the apparatus includes:
the interface adjusting module is used for generating a covering pattern according to an interface area corresponding to a function to be adjusted for an interface comprising the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
and the user operation adjusting module is used for forbidding or discarding the associated input operation of the function to be adjusted by the user according to the input setting in the application program.
Optionally, the interface adjusting module is specifically configured to:
for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface;
the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
Optionally, the user operation adjusting module is specifically configured to:
according to the input setting in the application program, forbidding the sliding switching operation of the interface where the function to be adjusted is located by the user;
and the input in the application program is set to be in a forbidden state according to the control class to which the function to be adjusted belongs.
Optionally, the function to be adjusted is a title bar, a status bar, or a function list page.
Optionally, on the basis of the above apparatus, the apparatus further includes:
and the data loading limiting module is used for limiting the data loading of the function to be adjusted according to the data loading setting in the application program.
Optionally, the data loading limitation module is specifically configured to: before the interface is displayed, according to a data loading request in a functional program segment to be adjusted in the application program, local disguised data is created as a loading result and is transmitted to the functional program segment to be adjusted.
Further, the data loading request is a network loading request of display content in a display area of the function to be adjusted, or a network loading request of entity display content corresponding to the function to be adjusted.
Further, the assignment interface of the loading result is associated with a return interface of local masquerading data, and the data loading request in the functional program segment to be adjusted is shielded.
Optionally, the data loading limitation module is specifically configured to: and loading the data of the interface where the function to be adjusted is located according to the cache upper limit setting in the application program, wherein the cache upper limit is smaller than the cache amount for loading the content of the function to be adjusted.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for adjusting the functions of the application program provided by any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the function adjustment method for the application program provided in any embodiment of the present invention.
According to the embodiment of the invention, the generated covering pattern is covered in the interface area corresponding to the function to be adjusted, so that the function to be adjusted is quickly adjusted on the display interface; and the quick adjustment of the function to be adjusted on the user operation response is realized by forbidding or discarding the associated input operation of the user on the function to be adjusted. The problems of long shelf life, low speed, high error rate and the like of the existing functional module are solved, the function to be adjusted in the application program is quickly adjusted relative to a user, and the effects of operation stability of other functions of the application program can be taken into consideration.
Drawings
Fig. 1 is a flowchart of a method for adjusting functions of an application according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating adjustment of a display interface with a function to be adjusted according to a first embodiment of the present invention;
fig. 3 is a flowchart of a function adjustment method for an application program according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a function adjustment apparatus for an application program according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
The method for adjusting the function of the application program provided by this embodiment may be applicable to off-shelf processing of a function module in the running process of the application program, and the method may be executed by a function adjusting apparatus of the application program, where the apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in an intelligent device installed with the application program, for example, typical user terminal equipment, such as a mobile phone, a tablet computer, or an intelligent television. Referring to fig. 1, the method of the present embodiment specifically includes the following steps:
s110, generating a covering pattern for an interface including a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area to be adjusted in the interface, and displaying the interface.
The function to be adjusted refers to a functional module which needs to be adjusted in the application program. Illustratively, the function to be adjusted is a title bar, a status bar or a function list page. According to the layout position of the function to be adjusted in the application program interface, the function to be adjusted can correspond to a title bar arranged at the top of the interface, a status bar arranged at the bottom of the interface and a function list page arranged between the top of the interface and the bottom of the interface. The covering pattern refers to a pattern for covering the functional area to be adjusted, and may be a set pattern, such as a blank pattern, an advertisement pattern, or a label pattern of other functions.
Specifically, referring to fig. 2, the title bar of the application includes 3 function titles, and the functions to be adjusted are 2 function titles labeled "function 2" and "function 3". Then, the above process is: in the running process of the application program, an interface 200 including the function to be adjusted is generated, and the function to be adjusted is identified according to the position and/or the label of the function to be adjusted in the interface. After the function to be adjusted is identified, a required covering pattern 202 is generated according to the interface area 201 corresponding to the function to be adjusted, and the covering pattern 202 is covered on the interface area 201 corresponding to the function to be adjusted. Then, the masking pattern 202 is superimposed on the interface 200 generated previously and displayed, forming a function adjustment interface 203 for the user.
Exemplarily, S110 includes: for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface; the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
Specifically, for interface generation of an application program, a multi-level layout container is usually configured, the number of the layout containers of each level is at least one, and then specific layout elements are laid in each layout container of each level to form the interface. Wherein, the layout containers of the multi-level form an interface layout file.
In this embodiment, the interface layout file includes a lower layout container at a level corresponding to a layer where the function to be adjusted is located, and an upper layout container of the lower layout container. Here, each region where a function to be adjusted is located corresponds to one lower layout container, and each region where a non-adjustment function that is located on the same level as the function to be adjusted is located corresponds to one lower layout container. The area corresponding to the upper layer layout container is the sum of the areas corresponding to the to-be-adjusted functions and the areas corresponding to the non-to-be-adjusted functions. Referring to fig. 2, the number of the lower layout containers is at least 3, and the lower layout containers are corresponding areas labeled as "function 1", "function 2", and "function 3", respectively, and the upper layout container corresponds to the sum of the areas corresponding to the areas of "function 1", "function 2", and "function 3". Correspondingly, the size of the region picture corresponding to the lower layer layout container is the size of the corresponding lower layer layout container, and the contents are respectively 'function 1', 'function 2' and 'function 3'; the size of the region picture corresponding to the upper layout container is the sum of the sizes of the three lower layout containers, and the content is "function 1".
Then, in this embodiment, for the generation of the final display interface, the lower layer layout container and the upper layer layout container are read from the interface layout file completed by the framework. And then, generating a lower layer region picture according to the size and the layout elements of the lower layer layout container, and generating an upper layer region picture according to the size and the layout elements of the upper layer layout container. And forming an interface by the generated multiple area pictures according to the level relation among the corresponding layout containers and displaying the interface. For example, for the Android system, the above process is a process of performing interface layout according to a lower layer layout container and an upper layer layout container by using a relative layout relationship. The advantage that sets up like this lies in, adopts the mode that is different from current delete code, only through increasing a small amount of codes to reach under the prerequisite that does not influence the original business logic of application, increase the upper region picture of suitable size, and then the purpose of quick adjustment function interface of treating the adjustment, when guaranteeing the speed of adjustment and the application stability of treating the adjustment function, make the display interface more pleasing to the eye, promote user experience.
And S120, according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user.
The input setting refers to setting for correspondingly controlling the function to be adjusted according to an input operation of a user, for example, instruction setting or function setting for switching an associated page having an association relationship with the function to be adjusted according to a click operation or a sliding operation of the user. The associated input operation refers to an operation input by the user, such as a click operation or a slide operation, which enables the function to be adjusted to jump to the associated page.
Specifically, according to the input setting corresponding to the function to be adjusted in the application program, corresponding function disabling or instruction discarding is performed on the associated input operation of the user. For example, the user associated input operation is a click operation, and according to the input setting, the application program calls the corresponding page linkage instruction to complete associated page jump corresponding to the function to be adjusted, and then the page linkage instruction corresponding to the click operation is discarded, so that the application program does not respond to the click operation of the user, and adjustment of the user operation response is achieved. For another example, the user associated input operation is a sliding operation, and according to the input setting, the application program may start a corresponding sliding function to complete associated page jump corresponding to the function to be adjusted, and then the sliding function corresponding to the sliding operation is disabled, so that the entity such as the associated page corresponding to the function to be adjusted in the application program may not be displayed in a switched manner, but only the currently displayed entity content such as the currently associated page may be displayed, and adjustment of the user operation response may also be achieved.
Exemplarily, S120 includes: according to the input setting in the application program, forbidding the sliding switching operation of the interface where the function to be adjusted is located by the user; and the input in the application program is set to be in a forbidden state according to the control class to which the function to be adjusted belongs.
Specifically, the title bar is an example of a function to be adjusted in the Android system. When the title bar is designed, the tabLayout control is used for realizing the linkage display of the title and the associated page in the title bar. Then, in order to adjust the title bar, a parent class tab (or referred to as a reference class tab) of the tabLayout control needs to be acquired by a parent query method findViewByid, that is, the control class tab to which the function to be adjusted belongs. Then, a method setScrollAble (false) of the control class tab is called to disable the sliding function of the tabLayout control, that is, the control input function for controlling the function to be adjusted is set to be in a disabled state. The advantage of setting up like this lies in, under the condition that covers the pattern and covers the function of waiting to adjust and correspond the interface region, the sliding switching operation of further forbidden interface can further adjust the user operation response that the function of waiting to adjust corresponds for application's function adjustment is more comprehensive, further promotes user experience.
According to the technical scheme of the embodiment, the generated covering pattern is covered in the interface area corresponding to the function to be adjusted, so that the function to be adjusted is quickly adjusted on the display interface; and the quick adjustment of the function to be adjusted on the user operation response is realized by forbidding or discarding the associated input operation of the user on the function to be adjusted. The problems of long shelf life, low speed, high error rate and the like of the existing functional module are solved, the function to be adjusted in the application program is quickly adjusted relative to a user, and the effects of operation stability of other functions of the application program can be taken into consideration.
Example two
In this embodiment, on the basis of the first embodiment, a "limit is performed on the data loading of the function to be adjusted according to the data loading setting in the application program" is added. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. Referring to fig. 3, the method for adjusting the function of the application program provided in this embodiment includes:
s210, according to the data loading setting in the application program, limiting the data loading of the function to be adjusted.
The data loading setting refers to a data acquisition mode and a data loading mode setting, for example, the data acquisition is local acquisition or network acquisition, the data loading is simultaneous loading or sequential loading, and the data loading quantity when the data are simultaneously loaded, and the like.
Specifically, according to the data loading setting corresponding to the function to be adjusted in the application program, the data loading of the function to be adjusted is limited, so that the data loading of the function to be adjusted can be correspondingly adjusted after the function to be adjusted is adjusted.
Illustratively, the limiting the data loading of the function to be adjusted according to the data loading setting in the application program includes: before the interface is displayed, according to a data loading request in a functional program segment to be adjusted in the application program, local disguised data is created as a loading result and is transmitted to the functional program segment to be adjusted.
The data loading request refers to a network request for loading data corresponding to the function to be adjusted. Illustratively, the data loading request is a network loading request of display content in a display area of the function to be adjusted, or a network loading request of entity display content corresponding to the function to be adjusted. Here, the data loading request is divided into two types, one is a network loading request of the display content corresponding to the display area of the function to be adjusted, and the loading result corresponds to the display content, such as the display content displayed on the title bar, such as "function 1" and "function 2"; the other is a network loading request of the display content of the entity such as the associated page corresponding to the function to be adjusted, and the loading result corresponds to the display content of the entity such as the associated page, for example, the display content of the associated page jumped after clicking the title bar labeled as "function 1". The local masquerading data refers to local setting data, not data acquired from a network side, which is consistent with at least one of loading results of the data loading request, for example, the local masquerading data is set to "function 1", "function 2", and "function 3", or is set to "function 1" of display content corresponding to the non-adjustment function.
Specifically, when the interface is displayed, the required data is loaded and assigned. Therefore, before the interface containing the function to be adjusted is displayed, corresponding local disguised data is created according to the data loading quantity in the data loading request in the program segment of the function to be adjusted in the application program and the specific data requested to be loaded, and the data is used as the loading result of the data loading request and is directly transmitted to the program segment of the function to be adjusted. The method has the advantages that the network request for loading the data can be shielded, so that the resource consumption of the network request is reduced, and the loading speed of the display interface is increased.
Illustratively, the assignment interface of the loading result is associated with a backhaul interface of local masquerading data, and the data loading request in the functional program segment to be adjusted is masked.
Specifically, the assignment interface of the loading result is associated with the backhaul interface of the local masquerading data, so that the local masquerading data can be transmitted to the functional program segment to be adjusted as the loading result. When the local disguised data is transmitted to the functional program segment to be adjusted as a loading result, since the functional program segment to be adjusted already acquires the loading result, the program trigger condition for performing the network request in the functional program segment to be adjusted is invalid, the program segment for executing the data loading request is not executed any more, that is, the data loading request in the functional program segment to be adjusted is shielded.
Illustratively, the limiting the data loading of the function to be adjusted according to the data loading setting in the application program includes: and loading the data of the interface where the function to be adjusted is located according to the cache upper limit setting in the application program.
The setting of the upper limit of the buffer refers to the set upper limit of the number of data buffers, for example, the upper limit of the buffer is set to 1. Illustratively, the upper buffer limit is smaller than the buffer amount of the function content to be adjusted. For example, the set upper buffer limit is smaller than the buffer amount when no function adjustment is performed.
Specifically, each application program has a default caching amount, and each time the application program performs interface display, data loading and caching are performed according to the default caching amount, so that data of the default caching amount is acquired and assigned each time. However, for the function to be adjusted, it is not necessary to perform corresponding data loading and caching, so in this embodiment, a cache upper limit is set according to the condition of function adjustment. And loading the data of the interface where the function to be adjusted is located according to the upper limit of the cache set in the application program when the interface is displayed. For example, the upper limit of the cache is set to 1, so that only one data load request is performed each time data load is performed. It should be noted that the request parameter of the data loading request carries an object identifier of data to be loaded, so as to ensure that one sent data loading request corresponds to an unadjusted function.
The setting of the upper limit of the cache can be realized by corresponding functions under the system corresponding to the application program. For example, for a tag layout control tabLayout in an Android system, the cache number in tabLayout can be set by calling a cache amount setting method setcacheNum method in tabLayout.
The method has the advantages that under the condition that the original business logic is not modified, the data loading amount is directly reduced by reducing the data caching amount, so that the display speed of the page is greatly improved, and the resource consumption of the application program is reduced.
S220, generating a covering pattern for the interface including the function to be adjusted according to the interface area corresponding to the function to be adjusted so as to cover the area to be adjusted in the interface, and displaying the interface.
And S230, according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user.
According to the technical scheme, the data loading of the function to be adjusted is limited, the data processing process corresponding to the function to be adjusted and the corresponding memory consumption and flow consumption are reduced under the condition that the original business logic of the application program is not modified, the display speed of the interface related to the application program is greatly increased, the display efficiency of page data is improved, and the operation stability of the application program is considered.
The following is an embodiment of the application function adjusting apparatus according to an embodiment of the present invention, which belongs to the same inventive concept as the application function adjusting method according to the above embodiments, and reference may be made to the above embodiment of the application function adjusting method for details that are not described in detail in the embodiment of the application function adjusting apparatus.
EXAMPLE III
The present embodiment provides a function adjusting apparatus for an application program, referring to fig. 4, the apparatus specifically includes:
an interface adjusting module 410, configured to generate a covering pattern according to an interface area corresponding to a function to be adjusted for an interface including the function to be adjusted, so as to cover the interface on the function area to be adjusted in the interface, and display the interface;
and the user operation adjusting module 420 is configured to disable or discard the input operation associated with the function to be adjusted by the user according to the input setting in the application program.
Optionally, the interface adjusting module 410 is specifically configured to:
for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface;
the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
Optionally, the user operation adjusting module 420 is specifically configured to:
according to the input setting in the application program, forbidding the sliding switching operation of the interface where the function to be adjusted is located by the user;
and the input in the application program is set to be in a forbidden state according to the control class to which the function to be adjusted belongs.
Optionally, the function to be adjusted is a title bar, a status bar, or a function list page.
Optionally, on the basis of the above apparatus, the apparatus further includes:
and the data loading limiting module is used for limiting the data loading of the function to be adjusted according to the data loading setting in the application program.
Optionally, the data loading limitation module is specifically configured to: before the interface is displayed, according to a data loading request in a functional program segment to be adjusted in the application program, local disguised data is created as a loading result and is transmitted to the functional program segment to be adjusted.
Further, the data loading request is a network loading request of display content in a display area of the function to be adjusted, or a network loading request of entity display content corresponding to the function to be adjusted.
Further, the assignment interface of the loading result is associated with a return interface of local masquerading data, and the data loading request in the functional program segment to be adjusted is shielded.
Optionally, the data loading limitation module is specifically configured to: and loading the data of the interface where the function to be adjusted is located according to the cache upper limit setting in the application program, wherein the cache upper limit is smaller than the cache amount for loading the content of the function to be adjusted.
Through the function adjusting device of the application program, the problems of long shelf life, low speed, high error rate and the like of the conventional function module are solved, the function to be adjusted in the application program is quickly adjusted relative to a user, and the operation stability of other functions of the application program can be considered.
The function adjusting device for the application program provided by the embodiment of the invention can execute the function adjusting method for the application program provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the function adjusting apparatus for application programs, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Referring to fig. 5, the present embodiment provides an apparatus 500 comprising: one or more processors 520; the storage 510 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the method for adjusting the function of the application program according to the embodiment of the present invention, the method includes:
generating a covering pattern for an interface comprising a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
and according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user.
Of course, those skilled in the art can understand that the processor 520 can also implement the technical solution of the method for adjusting the function of the application program provided in any embodiment of the present invention.
The device 500 shown in fig. 5 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 5, the apparatus 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of the processors 520 in the device may be one or more, and one processor 520 is taken as an example in fig. 5; the processor 520, the memory device 510, the input device 530 and the output device 540 of the apparatus may be connected by a bus or other means, such as by a bus 550 in fig. 5.
The storage device 510 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the function adjustment method of the application program in the embodiment of the present invention (for example, an interface adjustment module and a user operation adjustment module in the function adjustment device of the application program).
The storage device 510 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 510 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 510 may further include memory located remotely from processor 520, which may be connected to devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output device 540 may include a display device such as a display screen.
EXAMPLE five
The present embodiments provide a storage medium containing computer-executable instructions which, when executed by a computer processor, perform a method of functionality adjustment for an application program, the method comprising:
generating a covering pattern for an interface comprising a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
and according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the function adjustment method of the application program provided by any embodiments of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the function adjustment method of the application program according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A function adjustment method of an application program is suitable for the running process of the application program, and is characterized by comprising the following steps:
generating a covering pattern for an interface comprising a function to be adjusted according to an interface area corresponding to the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
according to the input setting in the application program, forbidding or discarding the associated input operation of the function to be adjusted by the user; the associated input operation is input by a user and can enable the function to be adjusted to jump to the associated page;
for an interface including a function to be adjusted, generating a covering pattern according to an interface area corresponding to the function to be adjusted so as to cover the function area to be adjusted in the interface, and displaying the interface includes:
for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface;
the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
2. The method of claim 1, wherein disabling user input operations associated with the function to be adjusted according to the input settings in the application comprises:
according to the input setting in the application program, forbidding the sliding switching operation of the interface where the function to be adjusted is located by the user;
and the input in the application program is set to be in a forbidden state according to the control class to which the function to be adjusted belongs.
3. The method of any of claims 1-2, further comprising:
and limiting the data loading of the function to be adjusted according to the data loading setting in the application program.
4. The method of claim 3, wherein restricting the loading of data for the function to be adjusted according to the data loading setting in the application comprises:
before the interface is displayed, according to a data loading request in a functional program segment to be adjusted in the application program, local disguised data is created as a loading result and is transmitted to the functional program segment to be adjusted.
5. The method of claim 4, wherein: the data loading request is a network loading request of display content of a display area of the function to be adjusted or a network loading request of entity display content corresponding to the function to be adjusted.
6. The method of claim 3, wherein restricting the loading of data for the function to be adjusted according to the data loading setting in the application comprises:
and loading the data of the interface where the function to be adjusted is located according to the cache upper limit setting in the application program, wherein the cache upper limit is smaller than the cache amount for loading the content of the function to be adjusted.
7. An apparatus for adjusting a function of an application program, comprising:
the interface adjusting module is used for generating a covering pattern according to an interface area corresponding to a function to be adjusted for an interface comprising the function to be adjusted so as to cover the area of the function to be adjusted in the interface and display the interface;
the user operation adjusting module is used for forbidding or discarding the associated input operation of the function to be adjusted by the user according to the input setting in the application program; the associated input operation is input by a user and can enable the function to be adjusted to jump to the associated page;
the interface adjustment module is specifically configured to:
for an interface including a function to be adjusted, reading a layout container from a lower level to an upper level in an interface layout file of the interface, generating a region picture according to the size of the layout container to form the interface, and displaying the interface;
the interface layout file comprises a lower layer layout container in a level corresponding to the function to be adjusted and an upper layer layout container in a level above the lower layer layout container, the number of the lower layer layout containers is at least two, the lower layer layout containers correspond to at least one area of the function to be adjusted and at least one area of a non-adjustment function in the same level, and the upper layer layout container corresponds to the sum of the areas of the function to be adjusted and the non-adjustment function.
8. An electronic device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of application functionality adjustment of any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of function adjustment of an application program according to any one of claims 1 to 6.
CN201810284474.1A 2018-04-02 2018-04-02 Function adjusting method, device, equipment and storage medium of application program Active CN108459858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810284474.1A CN108459858B (en) 2018-04-02 2018-04-02 Function adjusting method, device, equipment and storage medium of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810284474.1A CN108459858B (en) 2018-04-02 2018-04-02 Function adjusting method, device, equipment and storage medium of application program

Publications (2)

Publication Number Publication Date
CN108459858A CN108459858A (en) 2018-08-28
CN108459858B true CN108459858B (en) 2021-11-26

Family

ID=63238093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810284474.1A Active CN108459858B (en) 2018-04-02 2018-04-02 Function adjusting method, device, equipment and storage medium of application program

Country Status (1)

Country Link
CN (1) CN108459858B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035870A (en) * 2021-10-13 2022-02-11 青岛海信移动通信技术股份有限公司 Terminal device, application resource control method and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279345A (en) * 2013-05-28 2013-09-04 星云融创(北京)信息技术有限公司 Method and device for locking page element
CN104965733A (en) * 2015-06-11 2015-10-07 广州市久邦数码科技有限公司 Method and system for disabling/stopping applications in batches
CN105867862A (en) * 2016-03-31 2016-08-17 北京奇艺世纪科技有限公司 Application program interface display method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003901714A0 (en) * 2003-04-10 2003-05-01 Charismatek Software Metrics Automatic sizing of software functionality
US20120278114A1 (en) * 2011-04-26 2012-11-01 Sap Ag Method for dynamically reversing business functions
TWI564781B (en) * 2013-06-07 2017-01-01 Insyde Software Corp In the mobile operating system of the application window method and apparatus
CN104572044A (en) * 2013-10-16 2015-04-29 中兴通讯股份有限公司 Application layout adjusting method and device for mobile terminal
CN104219243A (en) * 2014-09-12 2014-12-17 广州华多网络科技有限公司 Method and device for managing client function
US20160140250A1 (en) * 2014-11-13 2016-05-19 Microsoft Technology Licensing, Llc. Dynamic adjustment of elements of a document
CN105988827B (en) * 2015-01-29 2019-07-05 阿里巴巴集团控股有限公司 A kind of method and device that application is freezed, thaws
US10645064B2 (en) * 2015-04-23 2020-05-05 Alcatel Lucent Virtualized application performance through disabling of unnecessary functions
JP6680101B2 (en) * 2016-06-16 2020-04-15 大日本印刷株式会社 Display adjusting device, display adjusting method, program for display adjusting device, and management system
US10732996B2 (en) * 2016-09-23 2020-08-04 Apple Inc. Dynamic function row constraints
CN106855806A (en) * 2016-12-08 2017-06-16 乐视控股(北京)有限公司 A kind of method and device of the self-defined adjustment of interface layout
CN107329656B (en) * 2017-06-28 2019-11-19 维沃移动通信有限公司 A kind of location regulation method and mobile terminal of application icon
CN107704284A (en) * 2017-09-25 2018-02-16 咪咕互动娱乐有限公司 A kind of function prohibited method and device, storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279345A (en) * 2013-05-28 2013-09-04 星云融创(北京)信息技术有限公司 Method and device for locking page element
CN104965733A (en) * 2015-06-11 2015-10-07 广州市久邦数码科技有限公司 Method and system for disabling/stopping applications in batches
CN105867862A (en) * 2016-03-31 2016-08-17 北京奇艺世纪科技有限公司 Application program interface display method and device

Also Published As

Publication number Publication date
CN108459858A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
US11868785B2 (en) Application program page processing method and device
US20220253588A1 (en) Page processing method and related apparatus
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
US11706331B2 (en) Information processing method and apparatus, storage medium, and electronic device
US11768694B2 (en) Content sharing method, device, terminal and storage medium
US11294548B2 (en) Video content play
CN104268229B (en) Resource obtaining method and device based on multi-process browser
CN108304234B (en) Page display method and device
US20180285098A1 (en) Control method
WO2014107987A1 (en) File presenting method and apparatus for a smart terminal
CN111090823A (en) Integration platform of page application and application access method, device and equipment
CN110262749B (en) Webpage operation method, device, container, equipment and medium
CN108459858B (en) Function adjusting method, device, equipment and storage medium of application program
WO2021218455A1 (en) Interface display method, apparatus, terminal, and medium
CN110018855A (en) One kind is based on Android system booting optimization method, storage medium and intelligent terminal
CN111324398A (en) Recent content processing method, device, terminal and storage medium
CN111046265B (en) Card data display method, device, equipment and storage medium
CN111045789B (en) Virtual machine starting method and device, electronic equipment and storage medium
CN113360251B (en) Intelligent contract execution and cross-contract calling method, device and storage medium
CN113849686A (en) Video data acquisition method and device, electronic equipment and storage medium
CN111813566B (en) Cross-process dragging method, device, equipment and computer readable storage medium
CN113032290A (en) Flash memory configuration method and device, electronic equipment and storage medium
CN114115673A (en) Control method of vehicle-mounted screen
CN108228307B (en) Application display method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant