CN111949129A - Display content updating method and device, electronic equipment and storage medium - Google Patents

Display content updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111949129A
CN111949129A CN202010789214.7A CN202010789214A CN111949129A CN 111949129 A CN111949129 A CN 111949129A CN 202010789214 A CN202010789214 A CN 202010789214A CN 111949129 A CN111949129 A CN 111949129A
Authority
CN
China
Prior art keywords
content
moving distance
screen
visible area
current page
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.)
Pending
Application number
CN202010789214.7A
Other languages
Chinese (zh)
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.)
Hefei Xunfei Reading And Writing Technology Co ltd
Original Assignee
Hefei Xunfei Reading And Writing 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 Hefei Xunfei Reading And Writing Technology Co ltd filed Critical Hefei Xunfei Reading And Writing Technology Co ltd
Priority to CN202010789214.7A priority Critical patent/CN111949129A/en
Publication of CN111949129A publication Critical patent/CN111949129A/en
Pending legal-status Critical Current

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/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • 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/04842Selection of displayed objects or displayed text elements
    • 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/0485Scrolling or panning
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a display content updating method and device, electronic equipment and a storage medium, when a user performs gesture sliding operation on an ink screen, the moving distance of the current page content of a screen visible area of the ink screen relative to the screen visible area can be determined through gesture data and unit moving distance on the ink screen, and the updating of the current page content of the screen visible area can be realized according to the determined moving distance. According to the embodiment of the invention, the content of the current page of the visual area of the screen can be updated by performing gesture sliding operation on the ink screen, so that the information of different pages in the prior art can be positioned on the same display page, the content close to the position can directly meet the requirement of a user for reading the front content and the back content in a contrasting manner, the user does not need to continuously and repeatedly turn up or down the page, the memory burden of the user is greatly reduced, and the user experience is improved.

Description

Display content updating method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of content display technologies, and in particular, to a method and an apparatus for updating display content, an electronic device, and a storage medium.
Background
Currently, an electronic screen for displaying contents on a display device generally includes an organic light-Emitting semiconductor (OLED) display screen with a high refresh frequency and an ink screen (E-ink screen) with a low refresh frequency. Because the ink screen has the characteristic of protecting eyes healthily, the ink screen becomes the preferred screen of a large number of electronic reader products at present.
However, due to the special display principle of the ink screen, the refresh frequency of the ink screen is obviously lower than that of the OLED display screen, and therefore when software application is developed on ink screen equipment, the refresh frequency of the ink screen needs to be considered, so that better interaction and reading experience is realized. For ink screen equipment, when the content required to be displayed is too much, the content outside the visual area is moved into the visual area by adopting a manual page turning mode in the prior art, or the displayed picture content is moved for a fixed distance by adopting a gesture sliding mode, so that the slow motion effect is removed.
When a user wants to compare and read information located on different pages, the user needs to continuously repeat page up or page down, which not only increases the memory burden of the user, but also reduces the user experience.
Disclosure of Invention
The embodiment of the invention provides a display content updating method and device, electronic equipment and a storage medium, which are used for overcoming the defects in the prior art.
The embodiment of the invention provides a display content updating method, which comprises the following steps:
acquiring gesture data on an ink screen;
determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
and updating the current page content based on the moving distance.
According to the display content updating method of one embodiment of the present invention, the unit moving distance is determined based on the minimum display unit of the complete content corresponding to the content of the current page, or is determined based on the minimum display unit and the size of the screen visible area.
According to the display content updating method of an embodiment of the present invention, the unit moving distance is specifically determined as follows:
determining an integer multiple of the smallest display unit;
and adjusting the integer multiple based on the size of the screen visible area or the size of the screen visible area, a preset viewing distance range and a preset viewing angle range, and determining the unit moving distance based on the product of the adjusted integer multiple and the minimum display unit.
According to an embodiment of the present invention, the determining a moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance includes:
if the gesture sliding distance in the gesture data is smaller than or equal to a preset distance, determining that the moving distance is 0;
otherwise, determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance.
According to the display content updating method of an embodiment of the present invention, the determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance specifically includes:
if the gesture sliding speed is smaller than a preset speed, taking the unit moving distance of a first multiple as the moving distance;
otherwise, taking the unit moving distance of a second multiple as the moving distance, wherein the first multiple is smaller than the second multiple.
The display content updating method according to an embodiment of the present invention further includes:
updating a display progress, wherein the display progress comprises the total page number of the complete content corresponding to the current page content and the page number sequence number of the current page content in the complete content;
the total page number of the complete content is determined based on the size of the shielded content in the complete content or the total content amount in the complete content, and the page number sequence of the current page content is determined based on the accumulated displayed content amount in the complete content and the displayed content amount of the current page content.
According to the display content updating method of an embodiment of the present invention, the total number of pages of the complete content is specifically determined as follows:
calculating the ratio of the size of the shielded content in the complete content to the unit moving distance, and determining the total page number of the complete content based on the ratio; alternatively, the first and second electrodes may be,
and determining the total page number of the complete content based on the total content and the content displayed by the current page content.
An embodiment of the present invention further provides a display content updating apparatus, including:
the gesture data acquisition module is used for acquiring gesture data on the ink screen;
the movement data determining module is used for determining the movement distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit movement distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
and the updating module is used for updating the current page content based on the moving distance.
An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement any of the steps of the display content updating method described above.
Embodiments of the present invention also provide a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the display content updating method as described in any one of the above.
According to the method, the device, the electronic equipment and the storage medium for updating the display content, provided by the embodiment of the invention, when a user performs gesture sliding operation on the ink screen, the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area can be determined through gesture data and the unit moving distance on the ink screen, and the updating of the current page content of the screen visible area can be realized according to the determined moving distance. According to the embodiment of the invention, the content of the current page of the visual area of the screen can be updated by performing gesture sliding operation on the ink screen, so that the information of different pages in the prior art can be positioned on the same display page, the content close to the position can directly meet the requirement of a user for reading the front content and the back content in a contrasting manner, the user does not need to continuously and repeatedly turn up or down the page, the memory burden of the user is greatly reduced, and the user experience is improved. Moreover, the integrity of the displayed content in the visual area of the screen is ensured due to the consideration of the unit moving distance when determining the moving distance.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a display content updating method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an updating process of a current page content of a screen visible area in a display content updating method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a display content update apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
At present, the preferred screen of an electronic reader product is usually an ink screen, but due to the special display principle of the ink screen, the refresh frequency of the ink screen is obviously lower than that of an OLED display screen, and further when software application is developed on ink screen equipment, the refresh frequency of the ink screen needs to be considered, so that better interaction and reading experience are realized. For the ink screen device, when the content required to be displayed is too much, two situations are generally adopted, one situation is that the displayed content is a list entry, at this time, a paging mode is generally adopted, different contents are displayed by using different pages, and the content outside the screen visible area is moved into the screen visible area through the operation of manually clicking a page turning button. In another case, the displayed content is picture content, and the sizes of the screen visible areas corresponding to different functional modules in the same software are not necessarily the same, which results in that when the picture content is displayed on the screen visible areas with different sizes, fixed scaling is required. If the size of the first screen visual area is larger than that of the second screen visual area, when the picture content of the first screen visual area is displayed in the second screen visual area, the picture content is not completely displayed in the second screen visual area, and a page turning button needs to be clicked in the second screen visual area to perform manual page turning operation so as to view the blocked part of content. If dragging or sliding with slow-motion effect is adopted, serious afterimage can be generated, and the watching experience is influenced. Therefore, the embodiment of the invention provides a display content updating method.
Fig. 1 is a schematic flow chart of a display content updating method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes:
s1, acquiring gesture data on the ink screen;
s2, determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
and S3, updating the current page content based on the moving distance.
Specifically, the display content updating method provided in the embodiment of the present invention adopts a gesture sliding manner to update the current page content of the screen visible area of the ink screen. The ink screen is a screen of the ink screen device, interaction can be achieved with a user, and the user can perform gesture sliding operation on the ink screen. The screen visible area of the ink screen refers to an application window for displaying content on the ink screen, and may be a full screen of the ink screen or a part of the ink screen. When the user performs the gesture sliding operation on the ink screen, step S1 is first executed to obtain gesture data on the ink screen. The gesture data may include a gesture start position, a gesture end position, a gesture sliding track between the gesture start position and the gesture end position, a gesture sliding direction, a gesture sliding speed, a gesture sliding distance and the like. The specific gesture sliding direction may be up-down sliding, left-right sliding, and the like, and the gesture sliding direction is taken as up-down sliding in the embodiment of the present invention for example.
Then, step S2 is executed. The unit moving distance is the minimum unit distance which can be moved once by the display content in the screen visible area on the premise of ensuring the integrity of the display content. The unit moving distance can be adjusted according to different display contents in the visual area of the screen. The unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area, where the integrity of the displayed content in the screen visible area means that the content of the current page is complete and does not affect reading, for example, the content of the current page is displayed as an item list, the integrity of the displayed content in the screen visible area is a situation where half items are not displayed, that is, complete items need to be displayed, and at this time, the unit moving distance may be set to the height of one or more items.
The moving distance of the current page content of the screen visible area relative to the screen visible area refers to a relative distance of the gesture data triggering the current page content to move under the condition that the screen visible area is taken as a reference, the moving distance of the current page content relative to the screen visible area is usually an integral multiple of a unit moving distance, and the moving distance can be specifically determined by combining the gesture data with the unit moving distance.
Finally, step S3 is performed. Updating the current page content according to the moving distance determined in the step S2, that is, determining target page content obtained after the gesture data triggers the current page content to move according to the moving distance, and then replacing the current page content with the target page content to update the current page content, so that the slow-motion effect is removed from the formed gesture sliding effect, the requirement on the screen refresh rate is low, the occurrence of ghost can be prevented, and the viewing experience cannot be influenced. That is, the current page content is updated to the target page content as a result of the gesture data being obtained. On the basis, the action of acquiring the gesture data on the ink screen can be executed in real time, and the current page content of the screen visible area can be updated as long as the gesture data on the ink screen is acquired.
According to the display content updating method provided by the embodiment of the invention, when a user performs gesture sliding operation on the ink screen, the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area can be determined through gesture data and unit moving distance on the ink screen, and the updating of the current page content of the screen visible area can be realized according to the determined moving distance. According to the embodiment of the invention, the content of the current page of the visual area of the screen can be updated by performing gesture sliding operation on the ink screen, so that the information of different pages in the prior art can be positioned on the same display page, the content close to the position can directly meet the requirement of a user for reading the front content and the back content in a contrasting manner, the user does not need to continuously and repeatedly turn up or down the page, the memory burden of the user is greatly reduced, and the user experience is improved. Moreover, the unit moving distance is considered when the moving distance is determined, the integrity of the display content in the visible area of the screen is ensured, the phenomenon that when a user performs gesture sliding operation on the ink screen, partial display content is shielded, the display content cannot be completely displayed, and reading is affected is avoided, and the reading comfort level of the user is improved.
On the basis of the foregoing embodiment, in the display content updating method provided in the embodiment of the present invention, the unit moving distance is determined based on the minimum display unit of the complete content corresponding to the content of the current page, or is determined based on the minimum display unit and the size of the screen visible area.
Specifically, the complete content corresponding to the current page content refers to all content in a complete object including the current page content, and the complete object may be a document, a picture, or the like. The minimum display unit of the complete content refers to the smallest complete content block contained in the complete content. For example, the complete object may be a list document in which each entry, e.g. each row, may be used to represent an object, i.e. constitute a complete piece of content. Thus, for a list document, the smallest display unit may be one entry. The complete object may also be a picture, and the effective content included in the picture may be separated by blank areas or column lines, for example, the picture includes a plurality of rows of effective content, and every two adjacent rows of effective content are separated by a transverse column line. Therefore, for a picture, the minimum display unit can be an area formed by two adjacent blank areas or effective contents between two adjacent column lines. The size of the screen view area may include the length and height of the screen view area.
When the unit moving distance is determined, the method can be realized only according to the minimum display unit of the complete content corresponding to the current page content, namely the height of the minimum display unit or integral multiple of the height can be directly used as the unit moving distance, and the shielding is avoided. For example, when the complete object is a list document, the unit distance of movement may be the height of an entry or entries to ensure that one or more complete entries may enter the screen view area upon a single gesture swipe. When the complete object is a picture, the unit moving distance can be the height of an area formed by the effective contents between two adjacent blank areas or two adjacent column lines or integral multiple thereof, so that the complete effective contents can enter a screen visible area as much as possible when a single gesture slides.
When the unit moving distance is determined, the minimum display unit and the size of the screen visible area are combined, the minimum display unit with proper multiple is selected as the unit moving distance according to the size of the screen visible area, the integrity of the displayed content in the screen visible area can be guaranteed by the unit moving distance, and the content checking efficiency of a user can be considered.
On the basis of the above embodiment, the unit moving distance is specifically determined as follows:
determining an integer multiple of the smallest display unit;
and adjusting the integer multiple based on the size of the screen visible area or the size of the screen visible area, a preset viewing distance range and a preset viewing angle range, and determining the unit moving distance based on the product of the adjusted integer multiple and the minimum display unit.
Specifically, in the embodiment of the present invention, when the unit movement distance is determined by combining the minimum display unit and the size of the screen visible area, an integer multiple of the minimum display unit may be determined first, and the minimum display unit of the integer multiple is used as the initial unit movement distance. Therefore, the shielding can be avoided when the distance of single sliding is the initial unit moving distance, and the integrity of the display content in the screen visible area during single sliding is ensured. Then, the integer times can be adjusted directly according to the size of the visual area of the screen, and the unit moving distance is obtained. For example, if the minimum display unit is one entry, the height of one entry is 5px, and the integer multiple is 2, the initial unit movement distance is 10 px. If the height of the screen visible area is 120px, if the initial unit moving distance is taken as the unit moving distance, the current page content can not appear in the screen visible area completely by moving for 12 times, which reduces the reading efficiency and reading experience of the user, so that the integer multiple of the minimum display unit can be increased, for example, the integer multiple can be increased to 5, the initial unit moving distance is changed to 25px, if the initial unit moving distance is taken as the unit moving distance, the current page content can not appear in the screen visible area completely by moving for 5 times, which improves the reading efficiency and reading experience of the user. It should be noted that, considering that the user's sight line can easily track the unread display content, the problem that the display content can be linked up only by spending time after each sliding is avoided, and the integer multiple cannot be increased infinitely, and needs to be adjusted reasonably.
After the integer multiple of the minimum display unit is determined, the integer multiple can be adjusted by combining a preset viewing distance range and a preset viewing angle range to obtain the unit moving distance. The preset viewing distance range refers to a variation range of a distance between eyes of a user and the ink screen under the condition that a viewing effect can be guaranteed when the user views the current page content of a screen visible area of the ink screen, and the preset viewing distance range can be specifically set to be 15 cm-30 cm. The preset viewing angle range refers to a variation range of an included angle between a user sight and a plane where the ink screen is located in the pitching direction under the condition that the viewing effect can be guaranteed when the user views the current page content of the screen visible area of the ink screen. The preset viewing angle range may be set to 100 to 170 degrees, specifically.
Under the condition that the viewing distance meets the preset viewing distance range and the viewing angle meets the preset viewing angle range, the initial unit moving distance is adjusted according to the size of the screen visible area, if the height of the screen visible area is larger, the initial unit moving distance is set too small to avoid influencing the efficiency of viewing content, the initial unit moving distance can be increased, and the multiple of the minimum display unit is increased. However, it should be noted that the initial unit moving distance cannot be increased infinitely, and it is also necessary to consider that after a single sliding is performed according to the adjusted initial unit moving distance, the user's sight can easily track the updated display content, so as to avoid the problem that it takes time to link the display content after each sliding, thereby preventing the reading trouble.
It should be noted that, in practical applications, if the displayed content of the screen visible area is the content handwritten by the user, since the height of the content handwritten by the user in each row may not be identical, the height of the minimum display unit is not fixed. Therefore, for the display integrity of the displayed content of the screen visible region, the initial unit moving distance may be adjusted, for example, slightly enlarged or reduced, so that the page content of the screen visible region can be completely displayed.
In the embodiment of the invention, the integral multiple is adjusted according to the size of the visual area of the screen by combining the preset viewing distance range and the preset viewing angle range, and the product of the adjusted integral multiple and the minimum display unit is used as the unit moving distance, so that the viewing effect of a user can be ensured while avoiding shielding, and the user experience is improved.
On the basis of the above embodiment, in the embodiment of the present invention, the initial unit movement distance may be adjusted according to the size of the visible area of the screen under the condition of giving the viewing distance and the viewing angle, so as to obtain the unit movement distance. The given viewing distance may specifically be any value in a preset viewing distance range, and may be 20 centimeters, for example. The given viewing angle may specifically be any value in the pre-viewing angle range, for example, 130 degrees, so that the best viewing effect of the user can be ensured, and the influence of the viewing distance and the viewing angle on the unit moving distance can be avoided to the greatest extent.
On the basis of the foregoing embodiment, the determining, based on the gesture data and the unit movement distance, a movement distance of the current page content of the screen visible area of the ink screen relative to the screen visible area specifically includes:
if the gesture sliding distance in the gesture data is smaller than or equal to a preset distance, determining that the moving distance is 0;
otherwise, determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance.
Specifically, in the embodiment of the present invention, when determining the moving distance of the current page content in the screen visible area relative to the screen visible area, in order to avoid the phenomenon that the display content is updated due to the user touching the ink screen by mistake, it may be determined whether the gesture sliding distance in the gesture data is greater than the preset distance, if the gesture sliding distance is greater than the preset distance, the gesture data is considered to be valid gesture data, and is not gesture data generated by the user touching the ink screen by mistake, and the gesture data may be used to update the display content, and the moving distance may be further determined according to the gesture sliding speed and the unit moving distance in the gesture data. For example, the gesture sliding speed may be divided into a plurality of different levels according to the speed of the gesture sliding speed, and each level of the gesture sliding speed corresponds to a moving distance. Each moving distance is integral multiple of the unit moving distance, and the moving distance corresponding to the gesture sliding speed with higher grade is larger. The preset distance can be set according to needs, and specifically can be adjusted according to the screen display resolution. The unit of the preset distance may be a pixel, and the preset distance may be set to 50px, for example.
Otherwise, if the gesture sliding distance is less than or equal to the preset distance, the gesture data is considered to be invalid gesture data, namely the gesture data may be generated by a user touching the ink screen by mistake and cannot be used for updating the display content, and the moving distance may be set to be 0.
In the embodiment of the invention, the initial judgment is carried out through the gesture sliding distance, and the moving distance for updating the display content is further calculated only when the gesture sliding distance is greater than the preset distance, so that the calculation amount can be saved, and the phenomenon that the display content is updated due to the fact that a user touches the ink screen by mistake can be avoided.
The more levels of gesture swipe speed, the more difficult it is for the user to control the distance of page swipe. That is, the more the level of the gesture swipe speed is, the more difficult it is to make an expectation of the distance that the page will be swiped each time the user performs the gesture swipe operation. Therefore, the preset speed is introduced in the embodiment of the invention, and the gesture sliding speed is divided into two levels, so that the user can more easily apply the gesture sliding speed.
On the basis of the foregoing embodiment, the method for updating display content according to the embodiment of the present invention, where the determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance specifically includes:
if the gesture sliding speed is smaller than a preset speed, taking the unit moving distance of a first multiple as the moving distance;
otherwise, taking the unit moving distance of a second multiple as the moving distance, wherein the first multiple is smaller than the second multiple.
Specifically, when the gesture sliding distance is greater than the preset distance, whether the gesture sliding speed is less than the preset speed or not can be further judged, if the gesture sliding speed is less than the preset speed, it is indicated that the user may prefer to have a smaller moving distance, and the unit moving distance of the first multiple can be taken as the moving distance; if the gesture sliding speed is greater than or equal to the preset speed, which indicates that the user may be more inclined to move a larger distance, the unit moving distance of the second multiple may be taken as the moving distance. The first multiple is smaller than the second multiple, and the first multiple, the second multiple and the preset speed can be set as required, and specifically can be adjusted according to the screen display resolution, for example, the first multiple can be set to 1, and the second multiple can be set to 2. The unit of the preset speed may be pixels per second. The preset speed may be set to 500px/s, for example.
In the embodiment of the invention, the preset speed is introduced, and the gesture sliding speed is divided into two levels, so that the control precision of the user on the gesture sliding can be improved. Compared with a scheme of dividing the gesture sliding speed into three levels or more, the scheme of dividing the gesture sliding speed into two levels enables a user to easily expect the page sliding distance, and is beneficial to reducing the operation difficulty of the user.
On the basis of the foregoing embodiment, the display content updating method provided in the embodiment of the present invention further includes:
updating a display progress, wherein the display progress comprises the total page number of the complete content corresponding to the current page content and the page number sequence number of the current page content in the complete content;
the total page number of the complete content is determined based on the size of the shielded content in the complete content or the total content amount in the complete content, and the page number sequence of the current page content is determined based on the accumulated displayed content amount in the complete content and the displayed content amount of the current page content.
Specifically, in the embodiment of the present invention, a progress indicator may be disposed in the screen visible area for displaying the display progress in real time. And updating the display progress once when the user triggers the gesture sliding operation once. The display progress can include two parts, the first part is the total page number of the complete content corresponding to the current page content, and the second part is the page number sequence number of the current page content in the complete content. In demonstrating the display progress, the second portion may be disposed in front of the first portion and separated from the first portion by a "/" partition symbol.
When the complete object is a list document, the total page number of the complete content can be determined according to the total content amount in the complete content and the content amount displayed by the current page content. The total content amount may be the number of all items included in the list document, and the content amount displayed by the current page content may be the number of all items displayed by the current page content. When the complete object is a picture, the total number of pages of the complete content can be determined according to the size of the blocked content in the complete content and the unit moving distance. The total number of pages of the complete content may also be determined by other calculation methods, which is not specifically limited in the embodiment of the present invention.
The page number of the current page content in the complete content can be determined according to the amount of the displayed content accumulated in the complete content and the amount of the displayed content of the current page content. The content that is accumulated and displayed in the complete content includes the content that is displayed in the content of the current page, where the content amount may specifically be the number of entries or the number of lines of valid content, and this is not specifically limited in the embodiment of the present invention. When determining the page sequence number of the current page content in the complete content, specifically, a ratio of the accumulated displayed content amount in the complete content to the displayed content amount of the current page content may be calculated, and then the ratio is rounded up, so as to obtain the page sequence number of the current page content in the complete content.
In the embodiment of the invention, the display progress is displayed by setting the progress indicator, and the display progress is updated when the user triggers the gesture sliding operation, so that the user can know the approximate position of the current position relative to the complete content, and can more intuitively know the reading progress.
On the basis of the foregoing embodiment, in the display content updating method provided in the embodiment of the present invention, the total number of pages of the complete content is specifically determined as follows:
calculating the ratio of the size of the shielded content in the complete content to the unit moving distance, and determining the total page number of the complete content based on the ratio; alternatively, the first and second electrodes may be,
and determining the total page number of the complete content based on the total content and the content displayed by the current page content.
Specifically, when the total number of pages of the complete content is determined, when the complete object is a picture, a ratio of the size of the content to be blocked in the complete content to the unit moving distance may be calculated first, and then a result obtained by rounding the ratio up and adding 1 may be used as the total number of pages of the complete content. The size of the content which is occluded in the complete content refers to the sum of the sizes of all the content in the complete content except the content displayed by the current page content. When the complete object is a list document, the total content amount in the complete content can be determined, then the ratio of the total content amount in the complete content to the content amount displayed by the current page content is calculated, and the result of rounding up the ratio is used as the total page number of the complete content.
In the embodiment of the invention, a specific mode for determining the total page number of the complete content is provided, the total page number of the complete content can be determined under different conditions, and the application range of the display content updating method is improved.
Based on the above embodiments, fig. 2 is a schematic diagram illustrating an updating process of the current page content of the screen visible area according to an embodiment of the present invention. As shown in fig. 2, the complete object is a list file, which contains 18 entries, and the content of the current page in the visible area of the screen can display 5 entries, so that the total number of pages of the complete content is 4, and the last page displays 3 entries.
The current page content of the screen view at the initial time is display items 1-5, with a progress indicator in the lower left corner that shows a display progress of "1/4".
When the user triggers a gesture move operation, moving up 2 entries, the current page content is updated to entries 3-7 and the display progress displayed by the progress indicator is updated to "2/4".
When the user triggers the secondary gesture movement operation and continues to move 2 entries upwards, the content of the current page is updated to be entries 5-9, and the display progress displayed by the progress indicator is updated to be "2/4".
When the user triggers the three-time gesture movement operation and continues to move 2 entries upward, the content of the current page is updated to be the entry 7-11, and the display progress displayed by the progress indicator is updated to be "3/4".
On the basis of the foregoing embodiments, fig. 3 is a schematic structural diagram of a display content updating apparatus provided in an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a gesture data acquisition module 31, a movement data determination module 32 and an update module 33. Wherein the content of the first and second substances,
the gesture data acquisition module 31 is configured to acquire gesture data on the ink screen;
the movement data determination module 32 is configured to determine a movement distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit movement distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
the updating module 33 is configured to update the current page content based on the moving distance.
Specifically, the functions of the modules in the display content updating apparatus provided in the embodiment of the present invention correspond to the processing procedures of the steps in the method embodiments one to one, and the implementation effects are also consistent.
On the basis of the above embodiment, the unit moving distance is determined based on the minimum display unit of the complete content corresponding to the content of the current page, or is determined based on the minimum display unit and the size of the screen visible area.
On the basis of the above embodiment, the apparatus further includes a unit moving distance determining module, where the unit moving distance determining module is configured to:
determining an integer multiple of the smallest display unit;
and adjusting the integer multiple based on the size of the screen visible area or the size of the screen visible area, a preset viewing distance range and a preset viewing angle range, and determining the unit moving distance based on the product of the adjusted integer multiple and the minimum display unit.
On the basis of the foregoing embodiment, the mobile data determining module is specifically configured to:
if the gesture sliding distance in the gesture data is smaller than or equal to a preset distance, determining that the moving distance is 0;
otherwise, determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance.
On the basis of the foregoing embodiment, the mobile data determining module is specifically configured to:
if the gesture sliding speed is smaller than a preset speed, taking the unit moving distance of a first multiple as the moving distance;
otherwise, taking the unit moving distance of a second multiple as the moving distance, wherein the first multiple is smaller than the second multiple.
On the basis of the above embodiment, the apparatus further includes: a progress indicator; the progress indicator is to:
updating a display progress, wherein the display progress comprises the total page number of the complete content corresponding to the current page content and the page number sequence number of the current page content in the complete content;
the total page number of the complete content is determined based on the size of the shielded content in the complete content or the total content amount in the complete content, and the page number sequence of the current page content is determined based on the accumulated displayed content amount in the complete content and the displayed content amount of the current page content.
On the basis of the above embodiment, the apparatus further includes: a total page number determination module; the total number of pages determining module is configured to:
calculating the ratio of the size of the shielded content in the complete content to the unit moving distance, and determining the total page number of the complete content based on the ratio; alternatively, the first and second electrodes may be,
and determining the total page number of the complete content based on the total content and the content displayed by the current page content.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a display content update method, including: acquiring gesture data on an ink screen; determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area; and updating the current page content based on the moving distance.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the display content updating method provided by the above-mentioned method embodiments, including: acquiring gesture data on an ink screen; determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area; and updating the current page content based on the moving distance.
In still another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the display content updating method provided by the foregoing embodiments, and the method includes: acquiring gesture data on an ink screen; determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area; and updating the current page content based on the moving distance.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A display content update method, comprising:
acquiring gesture data on an ink screen;
determining the moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit moving distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
and updating the current page content based on the moving distance.
2. The display content updating method according to claim 1, wherein the unit moving distance is determined based on a minimum display unit of the complete content corresponding to the current page content, or is determined based on the minimum display unit and a size of the screen visible area.
3. The method according to claim 2, wherein the unit movement distance is determined by:
determining an integer multiple of the smallest display unit;
and adjusting the integer multiple based on the size of the screen visible area or the size of the screen visible area, a preset viewing distance range and a preset viewing angle range, and determining the unit moving distance based on the product of the adjusted integer multiple and the minimum display unit.
4. The method for updating display content according to claim 1, wherein the determining a moving distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and a unit moving distance specifically comprises:
if the gesture sliding distance in the gesture data is smaller than or equal to a preset distance, determining that the moving distance is 0;
otherwise, determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance.
5. The method according to claim 4, wherein the determining the movement distance based on the gesture sliding speed in the gesture data and the unit movement distance specifically comprises:
if the gesture sliding speed is smaller than a preset speed, taking the unit moving distance of a first multiple as the moving distance;
otherwise, taking the unit moving distance of a second multiple as the moving distance, wherein the first multiple is smaller than the second multiple.
6. The display content updating method according to any one of claims 1 to 5, further comprising:
updating a display progress, wherein the display progress comprises the total page number of the complete content corresponding to the current page content and the page number sequence number of the current page content in the complete content;
the total page number of the complete content is determined based on the size of the shielded content in the complete content or the total content amount in the complete content, and the page number sequence of the current page content is determined based on the accumulated displayed content amount in the complete content and the displayed content amount of the current page content.
7. The display content updating method according to claim 6, wherein the total number of pages of the complete content is determined by:
calculating the ratio of the size of the shielded content in the complete content to the unit moving distance, and determining the total page number of the complete content based on the ratio; alternatively, the first and second electrodes may be,
and determining the total page number of the complete content based on the total content and the content displayed by the current page content.
8. A display content update apparatus, comprising:
the gesture data acquisition module is used for acquiring gesture data on the ink screen;
the movement data determining module is used for determining the movement distance of the current page content of the screen visible area of the ink screen relative to the screen visible area based on the gesture data and the unit movement distance; the unit moving distance is used for ensuring the integrity of the displayed content in the screen visible area;
and the updating module is used for updating the current page content based on the moving distance.
9. An electronic device comprising an ink screen, a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the display content updating method according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the display content updating method according to any one of claims 1 to 7.
CN202010789214.7A 2020-08-07 2020-08-07 Display content updating method and device, electronic equipment and storage medium Pending CN111949129A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010789214.7A CN111949129A (en) 2020-08-07 2020-08-07 Display content updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010789214.7A CN111949129A (en) 2020-08-07 2020-08-07 Display content updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111949129A true CN111949129A (en) 2020-11-17

Family

ID=73332756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010789214.7A Pending CN111949129A (en) 2020-08-07 2020-08-07 Display content updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111949129A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282216A (en) * 2021-06-07 2021-08-20 合肥讯飞读写科技有限公司 Application program interface display method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227464A1 (en) * 2012-02-24 2013-08-29 Samsung Electronics Co., Ltd. Screen change method of touch screen portable terminal and apparatus therefor
US20140201677A1 (en) * 2013-01-11 2014-07-17 Samsung Electronics Co., Ltd. Method and device for displaying scrolling information in electronic device
US20150325026A1 (en) * 2014-05-07 2015-11-12 Google Inc. Methods and Systems for Adjusting Animation Duration
CN105787036A (en) * 2016-02-25 2016-07-20 广州神马移动信息科技有限公司 Method and device for controlling page content to update
CN106020656A (en) * 2016-06-30 2016-10-12 努比亚技术有限公司 Device and method for operating mobile terminal with double display screens
CN106201234A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 The inspection method of content of pages and device
US20170192668A1 (en) * 2016-01-06 2017-07-06 Guangzhou Ucweb Computer Technology Co., Ltd. Pull-down gesture processing method, device, and system
CN107783714A (en) * 2017-10-13 2018-03-09 北京金山安全软件有限公司 Page display method and device, electronic equipment and storage medium
CN110471594A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 A kind of page method of adjustment, device, equipment and medium
CN110658974A (en) * 2019-08-01 2020-01-07 平安科技(深圳)有限公司 Page sliding method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130227464A1 (en) * 2012-02-24 2013-08-29 Samsung Electronics Co., Ltd. Screen change method of touch screen portable terminal and apparatus therefor
US20140201677A1 (en) * 2013-01-11 2014-07-17 Samsung Electronics Co., Ltd. Method and device for displaying scrolling information in electronic device
US20150325026A1 (en) * 2014-05-07 2015-11-12 Google Inc. Methods and Systems for Adjusting Animation Duration
CN106201234A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 The inspection method of content of pages and device
US20170192668A1 (en) * 2016-01-06 2017-07-06 Guangzhou Ucweb Computer Technology Co., Ltd. Pull-down gesture processing method, device, and system
CN105787036A (en) * 2016-02-25 2016-07-20 广州神马移动信息科技有限公司 Method and device for controlling page content to update
CN106020656A (en) * 2016-06-30 2016-10-12 努比亚技术有限公司 Device and method for operating mobile terminal with double display screens
CN107783714A (en) * 2017-10-13 2018-03-09 北京金山安全软件有限公司 Page display method and device, electronic equipment and storage medium
CN110658974A (en) * 2019-08-01 2020-01-07 平安科技(深圳)有限公司 Page sliding method and device, electronic equipment and storage medium
CN110471594A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 A kind of page method of adjustment, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282216A (en) * 2021-06-07 2021-08-20 合肥讯飞读写科技有限公司 Application program interface display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9547525B1 (en) Drag toolbar to enter tab switching interface
EP2053592B1 (en) Method and apparatus for maintaining a visual appearance of at least one window when a resolution of the screen changes
CN112465939A (en) Panoramic video rendering method and system
CN109791431B (en) Viewpoint rendering
US9684990B2 (en) Method and terminal for displaying an animation
US20140068495A1 (en) Apparatus and method for processing handwriting input
EP3408752B1 (en) Object management and visualization using a computing device
CN111476852A (en) Reader refresh method, computing device, and computer storage medium
CN111949129A (en) Display content updating method and device, electronic equipment and storage medium
CN111124111A (en) Processing method and electronic equipment
US20160357395A1 (en) Information processing device, non-transitory computer-readable recording medium storing an information processing program, and information processing method
US10169734B2 (en) Dynamic layout for organizational charts
JP6339550B2 (en) Terminal program, terminal device, and terminal control method
CN117205553A (en) Information processing method and device and electronic equipment
CN109800039B (en) User interface display method and device, electronic equipment and storage medium
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
US11715425B2 (en) Display method, display device, display system and storage medium
US9594955B2 (en) Modified wallis filter for improving the local contrast of GIS related images
US9229608B2 (en) Character display apparatus, character display method, and computer readable medium
CN115840550A (en) Angle-adaptive display screen display method, device and medium
CN105335854B (en) Method and device for providing commodity object picture in page
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN105721816B (en) Display data processing method and display device
US20170206685A1 (en) Ensuring contrast for text within a web page
CN106445274A (en) Method and device for processing multi-window page display

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