CN106873866B - Content amplification display method and device - Google Patents

Content amplification display method and device Download PDF

Info

Publication number
CN106873866B
CN106873866B CN201610446817.0A CN201610446817A CN106873866B CN 106873866 B CN106873866 B CN 106873866B CN 201610446817 A CN201610446817 A CN 201610446817A CN 106873866 B CN106873866 B CN 106873866B
Authority
CN
China
Prior art keywords
view
content
instruction
operation instruction
sub
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
CN201610446817.0A
Other languages
Chinese (zh)
Other versions
CN106873866A (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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610446817.0A priority Critical patent/CN106873866B/en
Publication of CN106873866A publication Critical patent/CN106873866A/en
Application granted granted Critical
Publication of CN106873866B publication Critical patent/CN106873866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Abstract

The application discloses a content amplification display method, which is used for solving the problems that in the prior art, the amplification display method consumes more human resources and more storage resources. The method comprises the following steps: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view. The application also discloses a content amplification display device.

Description

Content amplification display method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a content magnification display method and apparatus.
Background
At present, after a user performs some specified operations on content in a user operation interface, the content is displayed in an enlarged manner, so that the details of the content can be more easily seen by the user. For example, when the layout of the user operation interface is dense, and a single character (or an emoticon) is small, which may affect the user to browse the details of the single character (or the emoticon) normally, the user may trigger the user terminal to display the character (or the emoticon) in an enlarged manner by pressing the character (or the emoticon) for a long time. Specifically, a schematic diagram of an enlarged display of a single emoticon is shown in fig. 1, and the expression "crying" in fig. 1 is the enlarged display content.
In practical applications, the user can enlarge and display different types of content, such as text content, dynamic emoticons, static emoticons, and the like. In the prior art, a user acts on a content desired to be displayed in an enlarged manner through a gesture operation such as long pressing or single clicking, and can trigger a sub-view in which the content is located to execute: and utilizing the content amplifying logic contained in the sub-view to realize the amplification display of the content. The content amplification logic, briefly comprising: judging whether the designated gesture operation is used for triggering the child view to amplify and display the content; judging whether the content displayed in the sub-view supports enlarged display; and displaying the content supporting the enlarged display in the enlarged view generated by the sub-view.
Because different types of content correspond to different sub-views, and different sub-views have respective content amplification logics, in order to satisfy the requirement of different sub-views for content amplification display, in the prior art, corresponding content amplification logics need to be respectively set for different sub-views in the development process, and relatively more human resources and more storage resources of a terminal where the sub-views are located are consumed.
Disclosure of Invention
The embodiment of the application provides a content amplification display method, which is used for solving the problem that the content amplification display method in the prior art consumes more human resources and more storage resources.
The embodiment of the application also provides a content amplification display device, which is used for solving the problem that the content amplification display method in the prior art consumes more human resources and more storage resources.
The embodiment of the application adopts the following technical scheme:
a content magnification display method includes:
detecting an operation instruction aiming at the content in the current view;
and when the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view.
A content magnification display method includes:
receiving an instruction for amplifying and displaying the content;
and calling the magnified view generated by the magnification tool to display and process the content in the magnified view.
A content magnification display device comprising:
the detection module is used for detecting an operation instruction aiming at the content in the current view;
and the generating module is used for generating an enlarged view when the operation instruction is a preset instruction so as to indicate the current view to display the content in the enlarged view.
A content magnification display device comprising:
the receiving module is used for receiving an instruction for amplifying and displaying the content;
and the calling module is used for calling the amplified view generated by the amplification tool so as to display the content in the amplified view.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the functions originally realized by the sub-view in the prior art, such as judging whether the content displayed in the sub-view supports the enlarged display and generating the enlarged view, can be separated from the functions of the sub-view, so that the sub-view is mainly responsible for calling the enlarged view generated by the enlarging tool to perform the display processing of the content in the enlarged view, and the logic for realizing the sub-view is simplified. In this way, different sub-views can be made to share at least a portion of common logic-this portion of logic includes at least: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view. Therefore, on the premise of meeting the requirement of the different sub-views on the amplified display of the content, only one set of common logic needs to be set for the different sub-views, and the simplified logic needs to be set for the different sub-views respectively, so that the manpower resource is saved, and the storage resource of the terminal where the sub-views are located is also saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram of a prior art system including an enlarged emoticon;
fig. 2 is a schematic flow chart illustrating an implementation of a content magnification display method according to an embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a content magnification display method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a content magnification display apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a content magnification display apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
In order to solve the problem that the amplification display method in the prior art consumes more human resources and more storage resources, embodiment 1 of the present application provides a content amplification display method.
Specifically, the implementation flow of the method is shown in fig. 2, and mainly includes the following steps:
step 11, the magnifying tool detects an operation instruction for the content in the current view.
If the operation instruction is a preset instruction, executing step 12; and if the operation instruction is not a preset instruction, ending the process.
The magnifying tool may be an Application (APP), or may be a component in the APP, which is not limited in this embodiment of the Application. The magnifying tool includes a view class and may also include other classes, which are not limited in this application. For the view class, the view class described in the embodiment of the present application includes a zoomap interface. This view class is described in detail below and will not be described further herein.
The current view refers to a view currently acted by the operation instruction. The view may be a user operation interface displayed in the device screen, or may be a sub-area in the user operation interface. In practical applications, the user operation interface may be referred to as a root view, and the sub-regions in the user operation interface may be referred to as sub-views. One root view may contain a plurality of child views. When the root view does not contain the child view, the current view is the root view acted before the operation instruction; when the root view includes at least two sub-views, the current view generally refers to the sub-view currently acted on by the operation instruction.
In the embodiment of the present application, a method provided by the embodiment of the present application is described below by taking a current view as a sub-view as an example.
The preset instruction is used for generating an enlarged view and instructing the current view to display the content in the enlarged view. The preset instruction may include, but is not limited to, a long press, a slide, or a double click.
In practical application, after a user opens a root view, the magnifying tool can detect whether an operation instruction acts on the root view in real time.
And if the amplifying tool detects that an operation instruction acts on the root view, detecting whether the operation instruction is the same as a preset instruction.
Specifically, the magnifying tool may store a gesture operation type corresponding to the preset instruction in the database, and if the gesture operation type corresponding to the operation instruction detected by the magnifying tool is the same as the gesture operation type corresponding to the preset instruction stored in the database, it is determined that the operation instruction is the same as the preset instruction, otherwise, it is determined that the operation instruction is different from the preset instruction. The gesture operation type may be, for example, long-press, single-click, double-click, or the like.
And step 12, when the operation instruction is a preset instruction, generating an enlarged view by an enlarging tool to indicate the current view to display the content in the enlarged view.
And the enlarged view is a view generated by the enlarging tool and suspended above the sub-view aimed by the current operation instruction. The enlarged view is used to display the enlarged content in the current view (sub-view). Wherein the magnifying tool itself does not have a magnifying function.
After detecting that the operation instruction is a preset instruction, the enlarging tool may first determine which sub-view in the root view the operation instruction acts on. And after determining which sub-view the operation instruction acts on, determining whether the content in the sub-view for which the operation instruction is directed can be enlarged, if so, generating an enlarged view, and if not, ending the process.
(1) The method for the magnifying tool to determine which child view in the root view the operation instruction acts on may be as follows:
the magnification tool may determine to which sub-view the operation instruction is directed by calling an interface (hereinafter referred to as a location information interface) native to the operating system for obtaining information of the sub-view to which the operation instruction is directed. The information of the sub-view to which the operation instruction is directed may be position information of the sub-view to which the operation instruction is directed.
If the operation instruction is an instruction triggered by long-press gesture operation, the zooming tool can determine the position coordinates of the long-press gesture operation acting in the root view and the time information of the long-press gesture operation acting in the root view through global gesture retrieval before calling the position information interface. After the position coordinates and the time information are determined, the amplification tool can send the determined position coordinates and the determined time information to an operating system through the position information interface. After the operating system receives the position coordinates and the time information, the sub-view acted by the long-press gesture operation is determined, and the information of the sub-view acted by the long-press gesture operation is sent to the magnifying tool through the position information interface, so that the magnifying tool can determine the currently detected sub-view to which the operation instruction is directed.
(2) The step of judging whether the content in the sub-view (hereinafter referred to as the first sub-view) targeted by the operation instruction can be displayed in an enlarged manner by the enlarging tool is as follows:
and a sub-step S1 of determining whether the content in the first sub-view is empty.
If the first sub-view is empty, judging whether the content in the first sub-view can be displayed in an enlarged mode; if not, then sub-step S2 is performed.
The blank state means that the content in the first sub-view is blank and has no information content.
The content in the first sub-view includes, but is not limited to, all content in the first sub-view, or content of the operation instruction at the action point in the first sub-view.
Then, when the content in the first sub-view is all the content in the first sub-view, whether the information such as the characters and the emoticons exists in the first sub-view is detected. If not, determining that the content in the first sub-view is empty; and if so, judging that the content in the first sub-view is not empty.
When the content in the first sub-view is the content of the operation instruction at the action point in the first sub-view, the magnifying tool may determine a position coordinate where the operation instruction acts in the view, and detect whether information such as a character and an emoticon exists at the position coordinate. If not, determining that the content in the first sub-view is empty; and if so, judging that the content in the first sub-view is not empty.
Sub-step S2, the type of content in the first sub-view is determined.
The type includes, but is not limited to, a text type, a dynamic expression type, a static expression type, or the like.
And a sub-step S3 of determining whether the type determined by performing the sub-step S2 is the same as a preset type.
If it is determined that the type determined by performing the sub-step S2 is the same as the preset type, performing a sub-step S4; if it is determined that the type determined by performing the sub-step S2 is not the same as the preset type, it is determined that the content in the first sub-view cannot be enlarged and displayed.
The preset type refers to a type of content capable of being displayed in an enlarged manner. The type may be set in advance and stored in a database accessible to the magnifying tool so that the magnifying tool can query.
And a substep S4, determining whether the first sub-view has implemented the zoomap interface, that is, determining whether the first sub-view inherits the view class containing the zoomap interface as described above.
If the zoomap interface of the first sub-view is judged to be realized, judging that the content in the first sub-view can be amplified and displayed; and if the first sub-view does not realize the zoomap interface, judging that the content in the first sub-view cannot be displayed in an enlarged mode.
For substep S4, some of the nouns mentioned therein are introduced below:
a class is a definition of an object, which is an instantiation of the class. Objects generally have behaviors (behaviors), and classes are used to describe what an object can do and how it can do (methods), or so to speak, contain what an object can do and how it can do. What an object can do and how it can do is referred to herein as a function (interface) that can operate on the object, i.e., a class contains an interface.
The view class, in the embodiment of the present application, is a definition of an object, namely a "view", that is, a definition of a root view and a child view, so that the view class includes what an object, namely a "child view", can do and how the object can do. In the embodiment of the present application, what and how an object, that is, a "child view" included in a view class, can do may specifically include a method (that is, a zooable interface) of displaying content in the child view targeted by the operation instruction in an enlarged view in an enlarged manner. The method may include at least: acquiring a reference path of the magnified view; and according to the reference path, amplifying and displaying the content in the sub-view to which the operation instruction aims in the amplifying view.
As previously described, the magnification tool contains a view class, and the sub-view (e.g., the first sub-view) in the embodiment of the present application inherits the view class. The child view inherits the view class, indicating that the child view can have the properties of the view class and can implement the methods contained in the view class. The child view implements the method included in the view class, which means that the child view can call the interface in the view class.
The zoomap interface may be a collection that contains one or at least one method (function). The Zoomable interface included in the view class in the embodiment of the present application may include a method for displaying the content in the sub-view targeted by the operation instruction in an enlarged view in an enlarged manner.
The first child view implements the zoomap interface, which means that the first child view inherits the view class to which the zoomap interface belongs, as described above. A technician may store information describing whether the view class is integrated with the first sub-view in advance in a database accessible by the magnifying tool, so that the magnifying tool can perform subsequent query conveniently, and determine whether the first sub-view inherits the view class according to a query result, that is, determine whether the zooable interface has been implemented in the first sub-view.
If the query result obtained by the magnifying tool is that the zoomap interface of the first sub-view is already realized, it can be determined that the content in the first sub-view can be magnified and displayed; if the query result obtained by the magnification tool is that the zoomap interface is not implemented in the first sub-view, it may be determined that the content in the first sub-view cannot be magnified and displayed.
It should be particularly noted that, because the contents in different sub-views are different, the way in which the zoom interface is implemented by different sub-views is different.
And if the sub-step is completed, and the content in the first sub-view can be displayed in an enlarged manner, the enlarging tool can generate an enlarged view. The position of the enlarged view may be a position where the operation instruction acts in the view, may be a position directly above or below the position where the operation instruction acts in the view, and the like. Technical personnel can set according to user requirements, and the embodiment of the application is not limited to the setting.
After the enlargement tool generates the enlarged view, the enlargement tool may send an enlargement instruction to the first sub-view, so that the first sub-view calls the enlarged view to perform display processing on the content in the first sub-view according to the instruction. The zooming-in instruction can include, but is not limited to, information such as a reference path of the zoomed-in view and position information currently acted on by the operation instruction.
The first sub-view may use the zoom-in instruction as an input mode of an OnZoomBegin interface included in the zoomap interface, so as to call the OnZoomBegin interface, and the first sub-view is used for calling the zoom-in view to perform display processing on the content in the first sub-view. The OnZoomBegin interface is a subinterface of the zoom interface, and the subinterface has the function of calling the magnified view to display the content.
Specifically, after the first sub-view receives the instruction of zooming in, the first sub-view calls an OnZoomBegin interface, the OnZoomBegin interface determines the content in the first sub-view, calls the zoomed-in view according to a reference path of the zoomed-in view included in the instruction of zooming in, and zooms in and displays the content in the zoomed-in view. Since the magnified view does not have the magnifying function, after the OnzoomBegin interface determines the content in the first sub-view, a first view containing the content is generated according to the content, wherein the size of the content in the first view is larger than the real size of the content. After generating the first view, the first sub-view calls the enlarged view, and the content in the first view is displayed in the enlarged view.
And after the first sub-view calls the enlarged view, after the content in the first view is displayed in the enlarged view, if the finger of the user does not leave the device screen but continues to slide on the device screen, the enlarging tool can still continue to judge whether the content in the sub-view currently targeted by the slide gesture operation can be enlarged and displayed, and according to the judgment result, update the position of the enlarged view, and notify the sub-view currently targeted by the slide gesture operation of displaying the content in the sub-view in the enlarged view after updating, or notify the sub-view currently targeted by the slide gesture operation of terminating the content display processing in the sub-view in the enlarged view.
Specifically, for the above case, the enlarging tool may determine the position coordinates currently acting on the view by the slide gesture operation, and the information of the sub-view to which the slide gesture operation is currently directed. And judging whether the content in the sub-view to which the sliding gesture operation is currently directed can be displayed in an enlarged manner or not according to the position coordinates and the information of the sub-view to which the sliding gesture operation is currently directed.
The step of judging whether the content in the sub-view to which the sliding gesture operation is currently directed can be displayed in an enlarged manner by the enlarging tool is as follows:
and a substep a, judging whether the content in the sub-view to which the sliding gesture operation is currently directed is empty.
If not, executing the substep b; if the sub-view is empty, the content in the sub-view to which the slide gesture operation is currently directed cannot be displayed in an enlarged manner.
And a substep b, judging whether the child view currently aimed by the sliding gesture operation realizes the zoomap interface.
If the child view to which the sliding gesture operation is currently directed is judged to have realized the zoomap interface, executing the substep c; and if the child view to which the sliding gesture operation is currently directed is judged not to realize the zoomap interface, judging that the content in the child view to which the sliding gesture operation is currently directed cannot be displayed in an enlarged mode.
Before describing substep c, it is necessary to state: the various functions of the magnifying tool are preset by the technician. Therefore, if the magnifying tool has a certain function, the magnifying tool does not need to determine whether the magnifying tool itself has the function, and if the magnifying tool has the function, the function can be directly used, and if the magnifying tool does not have the function, the function cannot be used.
Step c, when the operation instruction is detected to be a sliding gesture operation instruction, if the magnifying tool has a function of supporting magnifying and displaying the content in the child view continuously acting on the sliding gesture operation, the substep d is executed; if the magnifying tool does not have the function of supporting magnifying display of the content in the sub-view continuously acting on the sliding gesture operation, it is judged that the content in the sub-view targeted by the current sliding gesture operation cannot be magnified and displayed.
And d, judging whether the sub-view currently aimed by the sliding gesture operation is switched from the first sub-view to other sub-views (hereinafter referred to as other sub-views) by the zooming tool.
If the sub-view is judged not to be switched from the first sub-view to the other sub-views, judging that the content in the sub-view currently aimed at by the sliding gesture operation can be displayed in an enlarged mode; and if the sub-view is judged to be switched from the first sub-view to other sub-views, executing the sub-step e.
The zooming-in tool may compare the acquired information of the first sub-view with information of the sub-view currently targeted by the slide gesture operation (the information is, for example, a unique identifier of the sub-view), and if the information of the first sub-view is consistent with the information of the sub-view currently targeted by the slide gesture operation, it is determined that the sub-view is not switched from the first sub-view to the other sub-views; otherwise, the sub-view is switched from the first sub-view to the other sub-views.
And e, determining the type of the content in the other sub-views.
And f, judging whether the content in the other sub-views is the same as the type of the content in the first sub-view.
If the types are the same, judging that the content in the currently acted sub-view by the sliding gesture operation can be amplified and displayed; if the types are not the same, executing substep g.
When the operation instruction is detected to be a sliding gesture operation instruction, if the magnifying tool has a function of supporting continuous magnifying display of different types of contents in the sub-view acted by the sliding gesture operation, judging that the contents in the sub-view aimed at by the sliding gesture operation can be magnified and displayed; otherwise, judging that the content in the sub-view to which the sliding gesture operation is currently directed cannot be displayed in an enlarged mode.
After the enlargement tool determines that the content in the sub-view to which the swipe gesture operation is currently directed can be enlarged and displayed, the enlargement tool updates the position of the enlarged view, may update the position of the enlarged view to the position coordinate at which the swipe gesture operation is currently applied, and notifies the sub-view to which the swipe gesture operation is currently directed to perform display processing on the content in the sub-view in the updated enlarged view.
After the magnifying tool judges that the content in the sub-view to which the sliding gesture operation is currently directed cannot be magnified and displayed, the magnifying tool folds the magnified view to indicate the first sub-view to terminate the content display processing on the first sub-view in the magnified view.
Specifically, after the enlargement tool retracts the enlarged view, the enlargement stopping instruction may be sent to the first sub-view, so that the first sub-view calls an onzoomed interface included in a Zoomable interface included in a view class inherited by the first sub-view to execute: and terminating the calling of the magnified view and terminating the display processing of the content in the first sub-view in the magnified view.
The functions originally realized by the sub-view in the prior art, such as judging whether the content displayed in the sub-view supports the enlarged display and generating the enlarged view, can be separated from the functions of the sub-view, so that the sub-view is mainly responsible for calling the enlarged view generated by the enlarging tool to perform the display processing of the content in the enlarged view, and the logic for realizing the sub-view is simplified. In this way, different sub-views can be made to share at least a portion of common logic-this portion of logic includes at least: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view. Therefore, on the premise of meeting the requirement of the different sub-views on the amplified display of the content, only one set of common logic needs to be set for the different sub-views, and the simplified logic needs to be set for the different sub-views respectively, so that the manpower resource is saved, and the storage resource of the terminal where the sub-views are located is also saved.
Example 2
Based on the same inventive concept as embodiment 1, embodiment 2 of the present application provides a content enlarging display method, and a specific implementation flowchart of the method is shown in fig. 3, and includes the following steps:
in step 201, a user sends an operation instruction to the child view.
The operation instruction can be a gesture operation instruction such as clicking, long-pressing or sliding. The operation instruction is used for triggering the enlarged display of the content in the multiple sub-views.
The long-press gesture operation is described as an example.
In step 202, the magnifying tool detects an operation instruction issued by a user to the child view.
In step 203, the enlarging tool determines the position coordinates of the currently detected operation instruction, and determines the information of the sub-view (hereinafter referred to as the first sub-view) to which the currently detected operation instruction is directed.
In step 204, the magnifying tool determines whether the content in the first sub-view can be magnified for display.
If the display can be enlarged, go to step 205; if the display cannot be enlarged, the process ends.
In step 205, the magnification tool generates a magnified view in the first sub-view.
In step 206, the magnification tool sends a magnification instruction to the first sub-view.
And step 207, the first sub-view receives the amplification instruction, calls an OnZoomBegin interface in the zoom interface contained in the view class inherited by the first sub-view, determines the content acted on the view by the current operation instruction, and calls the amplification view to display the content.
At step 208, the user gesture does not leave the device screen and slides in the screen.
In step 209, the magnification tool detects a slide gesture operation instruction.
In step 210, the magnification tool determines the position coordinate acted by the currently detected slide gesture operation instruction, and determines the information of the sub-view to which the currently detected slide gesture operation instruction is directed.
In step 211, the enlarging tool determines whether the content in the sub-view to which the current instruction of the slide gesture operation is directed can be enlarged and displayed.
If the display can be enlarged, 212 is executed; if the display cannot be enlarged, step 215 is performed.
And step 212, updating the position of the magnified view by the magnification tool according to the position coordinate acted by the slide gesture operation instruction.
In step 213, the zoom-in tool sends a zoom-in instruction to the sub-view to which the current instruction of the slide gesture operation is directed.
Step 214, the child view to which the current instruction is directed is operated by the sliding gesture to receive the instruction of the enlargement indication, an OnzoomBegin interface in the zoomap interface included in the appointed class inherited by the child view is called, the content acted by the instruction of the sliding gesture operation in the view is determined, and the enlarged view is called to display the content.
In step 215, the magnification tool collapses the magnified view.
In step 216, the magnification tool sends an instruction to terminate the magnification to the first sub-view.
And step 217, the first sub-view receives an instruction for ending the amplification, and calls an OnZoomEnd interface in the zoom interface contained in the view class inherited by the first sub-view to end the call of the amplification view to display the content.
And step 218, when the content in the sub-view acted by the finger of the user is in the enlarged display state, the finger of the user leaves the screen of the device, and the sliding gesture operation is finished.
At step 219, the magnification tool collapses the magnified view.
In step 220, the magnifying tool sends a command for ending the magnification to the sub-view acted by the current user's finger.
Step 221, the sub-view acted by the current user finger receives the instruction of ending the amplification instruction, and the OnZoomEnd interface in the zoomap interface included in the view class inherited by the sub-view is called to end the calling of the amplification view to display the content.
The functions originally realized by the sub-view in the prior art, such as judging whether the content displayed in the sub-view supports the enlarged display and generating the enlarged view, can be separated from the functions of the sub-view, so that the sub-view is mainly responsible for calling the enlarged view generated by the enlarging tool to perform the display processing of the content in the enlarged view, and the logic for realizing the sub-view is simplified. In this way, different sub-views can be made to share at least a portion of common logic-this portion of logic includes at least: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view. Therefore, on the premise of meeting the requirement of the different sub-views on the amplified display of the content, only one set of common logic needs to be set for the different sub-views, and the simplified logic needs to be set for the different sub-views respectively, so that the manpower resource is saved, and the storage resource of the terminal where the sub-views are located is also saved.
Example 3
Based on the same inventive concept as embodiment 1, embodiment 3 of the present application provides a content enlarging display apparatus, a specific structural schematic diagram of which is shown in fig. 4, and the apparatus includes the following modules:
a detecting module 41, configured to detect an operation instruction for the content in the current view.
And a generating module 42, configured to generate an enlarged view when the operation instruction is a preset instruction, so as to instruct the current view to perform display processing on the content in the enlarged view.
In one embodiment, the apparatus further comprises:
and the sending module is used for sending an amplification instruction to the current view so that the current view calls the amplification view to display the content according to the instruction.
In one embodiment, the generation module 42 is configured to:
when the operation instruction is a preset instruction, determining the type of the content in the view aimed at by the operation instruction;
judging whether the type is the same as a preset type or not; the preset type comprises a type of content which can be displayed in the enlarged view by the view;
and if the type is the same as the preset type, generating an enlarged view.
In one embodiment, the generation module 42 is configured to: when the operation instruction is a preset instruction, judging whether the content is empty;
if not, determining the type of the content.
The operation instruction for the content in the current view is triggered by the operation of a specified gesture, then
When the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view,
a detection module 41 configured to:
judging whether the view aimed by the designated gesture operation is switched from the current view to other views or not according to the sliding track of the designated gesture operation;
if the current view is judged to be switched to other views, determining the type of the content in the other views to which the designated gesture operation is currently directed;
and judging whether the type of the content in the other views to which the specified gesture operation is currently directed is the same as a preset type.
And the generating module 42 is configured to, when the type of the content in the other view to which the specified gesture operation is currently directed is the same as a preset type, update the position of the enlarged view to indicate that the other view performs display processing on the content in the updated enlarged view.
A generating module 42 for:
and generating a magnified view displayed at the position according to the position currently acted by the operation instruction.
A generating module 42, further configured to:
and after the operation instruction is terminated, indicating the current view to terminate the display processing of the content in the enlarged view.
The functions originally realized by the sub-view in the prior art, such as judging whether the content displayed in the sub-view supports the enlarged display and generating the enlarged view, can be separated from the functions of the sub-view, so that the sub-view is mainly responsible for calling the enlarged view generated by the enlarging tool to perform the display processing of the content in the enlarged view, and the logic for realizing the sub-view is simplified. In this way, different sub-views can be made to share at least a portion of common logic-this portion of logic includes at least: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view. Therefore, on the premise of meeting the requirement of the different sub-views on the amplified display of the content, only one set of common logic needs to be set for the different sub-views, and the simplified logic needs to be set for the different sub-views respectively, so that the manpower resource is saved, and the storage resource of the terminal where the sub-views are located is also saved.
Example 4
Based on the same inventive concept as embodiment 1, embodiment 4 of the present application provides a content enlarging display apparatus, a specific structural schematic diagram of which is shown in fig. 5, and the apparatus includes the following modules:
a receiving module 51, configured to receive an instruction for performing content magnification display;
and the calling module 52 is configured to call the enlarged view generated by the enlargement tool, so as to perform display processing of the content in the enlarged view.
A receiving module 51, configured to:
receiving an amplification instruction sent by an amplification tool; wherein the zooming-in indication instruction comprises a reference path of the zooming-in view and a position currently acted by the operation instruction.
A calling module 52 for:
determining content in the current view to which the operation instruction is directed;
and displaying the content in the enlarged view in an enlarged mode according to the reference path of the enlarged view contained by the enlargement indication instruction.
In one embodiment of the method of the present invention,
a receiving module 51, further configured to receive an instruction to terminate the content magnification display;
the invoking module 52 is further configured to terminate the display processing of the content in the enlarged view.
The functions originally realized by the sub-view in the prior art, such as judging whether the content displayed in the sub-view supports the enlarged display and generating the enlarged view, can be separated from the functions of the sub-view, so that the sub-view is mainly responsible for calling the enlarged view generated by the enlarging tool to perform the display processing of the content in the enlarged view, and the logic for realizing the sub-view is simplified. In this way, different sub-views can be made to share at least a portion of common logic-this portion of logic includes at least: detecting an operation instruction aiming at the content in the current view; and when the operation instruction is a preset instruction, generating an enlarged view. Therefore, on the premise of meeting the requirement of the different sub-views on the amplified display of the content, only one set of common logic needs to be set for the different sub-views, and the simplified logic needs to be set for the different sub-views respectively, so that the manpower resource is saved, and the storage resource of the terminal where the sub-views are located is also saved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (20)

1. A content enlargement display method, characterized in that the method comprises:
detecting an operation instruction aiming at the content in the current view;
when the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view;
sending an amplification instruction to the current view so that the current view calls the amplification view to display the content according to the instruction;
the method for detecting the operation instruction aiming at the content in the current view comprises the following steps:
and calling a position information interface to acquire the current view to which the operation instruction is directed.
2. The method of claim 1, wherein generating a magnified view when the operation instruction is a preset instruction comprises:
when the operation instruction is a preset instruction, determining the type of the content in the view aimed at by the operation instruction;
judging whether the type is the same as a preset type or not; the preset type comprises a type of content which can be displayed in the enlarged view by the view;
and if the type is the same as the preset type, generating an enlarged view.
3. The method of claim 2, wherein when the operation instruction is a preset instruction, determining a type of content in the view for which the operation instruction is directed comprises:
when the operation instruction is a preset instruction, judging whether the content is empty;
if not, determining the type of the content.
4. The method of claim 1, wherein the operation instruction for the content in the current view is triggered by a specified gesture operation, then
When the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view, and the method further includes:
judging whether the view aimed by the designated gesture operation is switched from the current view to other views or not according to the sliding track of the designated gesture operation;
if the current view is judged to be switched to other views, determining the type of the content in the other views to which the designated gesture operation is currently directed;
judging whether the type of the content in the other view to which the specified gesture operation is currently directed is the same as a preset type;
and if the content is the same as the content in the enlarged view, updating the position of the enlarged view to indicate the other views to display the content in the updated enlarged view.
5. The method of claim 1, wherein generating a magnified view comprises:
and generating a magnified view displayed at the position according to the position currently acted by the operation instruction.
6. The method of claim 1, wherein generating the enlarged view to indicate the current view after display processing of the content in the enlarged view, further comprises:
and after the operation instruction is terminated, indicating the current view to terminate the display processing of the content in the enlarged view.
7. A content enlargement display method, characterized in that the method comprises:
receiving an instruction for amplifying and displaying the content;
calling an enlarged view generated by an enlarging tool to perform content display processing in the enlarged view, wherein the enlarged view is a view suspended above a sub-view to which an operation instruction detected by the enlarging tool is directed, and the sub-view to which the operation instruction is directed is acquired by a position information interface.
8. The method of claim 7, wherein receiving an indication to perform a content magnification display comprises:
receiving an amplification instruction sent by an amplification tool; wherein the zooming indication instruction comprises a reference path of the zooming view and position information currently acted by the operation instruction.
9. The method of claim 8, wherein invoking the magnified view generated by the magnification tool for display processing of content in the magnified view comprises:
determining the content in the current view to which the operation instruction aims;
and displaying the content in the enlarged view in an enlarged mode according to the reference path of the enlarged view contained by the enlargement indication instruction.
10. The method of claim 7, wherein invoking the magnified view generated by the magnification tool for subsequent processing of the display of the content in the magnified view, the method further comprises:
receiving an instruction of ending the content amplification display;
terminating the display processing of the content in the enlarged view.
11. A content enlarging display apparatus, comprising:
the detection module is used for detecting an operation instruction aiming at the content in the current view;
the generating module is used for generating an enlarged view when the operation instruction is a preset instruction so as to indicate the current view to display the content in the enlarged view;
the sending module is used for sending an amplification instruction to the current view so that the current view calls the amplification view to display the content according to the instruction;
wherein the detection module is configured to:
and calling a position information interface to acquire the current view to which the operation instruction is directed.
12. The apparatus of claim 11, wherein the means for generating is configured to:
when the operation instruction is a preset instruction, determining the type of the content in the view aimed at by the operation instruction;
judging whether the type is the same as a preset type or not; the preset type comprises a type of content which can be displayed in the enlarged view by the view;
and if the type is the same as the preset type, generating an enlarged view.
13. The apparatus of claim 12, wherein the means for generating is configured to: when the operation instruction is a preset instruction, judging whether the content is empty;
if not, determining the type of the content.
14. The apparatus of claim 11, wherein the operation instruction for the content in the current view is triggered by a specified gesture operation, then
When the operation instruction is a preset instruction, generating an enlarged view to indicate the current view to display the content in the enlarged view,
a detection module to:
judging whether the view aimed by the designated gesture operation is switched from the current view to other views or not according to the sliding track of the designated gesture operation;
if the current view is judged to be switched to other views, determining the type of the content in the other views to which the designated gesture operation is currently directed;
judging whether the type of the content in the other view to which the specified gesture operation is currently directed is the same as a preset type;
and the generating module is used for updating the position of the enlarged view when the type of the content in the other view currently aimed at by the specified gesture operation is the same as a preset type so as to indicate the other view to display the content in the updated enlarged view.
15. The apparatus of claim 11, wherein the means for generating is configured to:
and generating a magnified view displayed at the position according to the position currently acted by the operation instruction.
16. The apparatus of claim 11, wherein the generation module is further configured to:
and after the operation instruction is terminated, indicating the current view to terminate the display processing of the content in the enlarged view.
17. A content enlarging display apparatus, comprising:
the receiving module is used for receiving an instruction for amplifying and displaying the content;
the calling module is used for calling the magnified view generated by the magnification tool to display the content in the magnified view, wherein the magnified view is a view suspended above a sub-view to which the operation instruction detected by the magnification tool is directed, and the sub-view to which the operation instruction is directed is acquired by a position information interface.
18. The apparatus of claim 17, wherein the receiving module is configured to:
receiving an amplification instruction sent by an amplification tool; wherein the zooming indication instruction comprises a reference path of the zooming view and position information currently acted by the operation instruction.
19. The apparatus of claim 18, wherein the means for invoking is to:
determining the content in the current view to which the operation instruction aims;
and displaying the content in the enlarged view in an enlarged mode according to the reference path of the enlarged view contained by the enlargement indication instruction.
20. The apparatus of claim 17, wherein:
the receiving module is also used for receiving an instruction of ending the content amplification display;
and the calling module is also used for stopping the display processing of the content in the enlarged view.
CN201610446817.0A 2016-06-20 2016-06-20 Content amplification display method and device Active CN106873866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610446817.0A CN106873866B (en) 2016-06-20 2016-06-20 Content amplification display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610446817.0A CN106873866B (en) 2016-06-20 2016-06-20 Content amplification display method and device

Publications (2)

Publication Number Publication Date
CN106873866A CN106873866A (en) 2017-06-20
CN106873866B true CN106873866B (en) 2020-06-30

Family

ID=59239542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610446817.0A Active CN106873866B (en) 2016-06-20 2016-06-20 Content amplification display method and device

Country Status (1)

Country Link
CN (1) CN106873866B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255367B (en) * 2017-12-26 2020-06-23 平安科技(深圳)有限公司 Mechanism window display method, mechanism window display device, mechanism window equipment and storage medium
CN109847335A (en) * 2019-02-21 2019-06-07 网易(杭州)网络有限公司 The method and device of picture processing, electronic equipment, storage medium in game

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073454A (en) * 2011-01-13 2011-05-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and input control method for touch panel
CN102112946A (en) * 2008-08-01 2011-06-29 三星电子株式会社 Electronic apparatus and method for implementing user interface
CN101563667B (en) * 2006-10-26 2012-09-19 苹果公司 Method and equipment for adjusting an insertion point marker
CN103365968A (en) * 2013-06-24 2013-10-23 广州市动景计算机科技有限公司 Webpage content magnification method and webpage content magnifier
CN105468253A (en) * 2014-09-28 2016-04-06 中兴通讯股份有限公司 Mobile terminal interface content display method and apparatus and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101563667B (en) * 2006-10-26 2012-09-19 苹果公司 Method and equipment for adjusting an insertion point marker
CN102112946A (en) * 2008-08-01 2011-06-29 三星电子株式会社 Electronic apparatus and method for implementing user interface
CN102073454A (en) * 2011-01-13 2011-05-25 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and input control method for touch panel
CN103365968A (en) * 2013-06-24 2013-10-23 广州市动景计算机科技有限公司 Webpage content magnification method and webpage content magnifier
CN105468253A (en) * 2014-09-28 2016-04-06 中兴通讯股份有限公司 Mobile terminal interface content display method and apparatus and terminal

Also Published As

Publication number Publication date
CN106873866A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
JP7366976B2 (en) Notification channel for computing device notifications
US10095389B2 (en) Gesture-based on-chart data filtering
US20140089824A1 (en) Systems And Methods For Dynamically Altering A User Interface Based On User Interface Actions
WO2017200638A1 (en) Automatic graphical user interface generation from notification data
WO2019179243A1 (en) Information display method, apparatus and device
WO2016192546A1 (en) Method and device for updating data point of dynamic curve
EP3304287A1 (en) Assist layer with automated extraction
US11221729B1 (en) Tracking and restoring pointer positions among applications
US20160231876A1 (en) Graphical interaction in a touch screen user interface
CN106873866B (en) Content amplification display method and device
US20160062601A1 (en) Electronic device with touch screen and method for moving application functional interface
CN106249879A (en) The display packing of a kind of virtual reality image and terminal
WO2024066759A1 (en) Application switching method, apparatus and device, and medium
CN110908552B (en) Multi-window operation control method, device, equipment and storage medium
CN111967269A (en) Business risk identification method and device and electronic equipment
CN107885443B (en) Information processing method and device
CN113190365B (en) Information processing method and device and electronic equipment
KR20160085044A (en) Method for displaying an electronic document and electronic device
CN104407763A (en) Content input method and system
CN103955326A (en) Method and terminal for displaying information
CN112799946A (en) Method, equipment and storage medium for embedding points and collecting data
CN112433723A (en) Personalized list development method and device
CN112749282A (en) Knowledge graph display method, device, equipment and storage medium
CN111198830B (en) Identification method and device of mobile storage equipment, electronic equipment and storage medium
CN115904572B (en) Template creation method, calling method, program product, system and device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240219

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Ky1-9008 business centre, 27 Hospital Road, Georgetown, grand caiman, UK

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands