Display content updating method, device, electronic device and storage medium

By obtaining the ink screen gesture data and unit movement distance and updating the ink screen page content, the problem of users frequently turning pages and comparing information on ink screen devices is solved, and the user experience and content integrity are improved.

CN111949129BActive Publication Date: 2024-12-27HEFEI XUNFEI READING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010789214.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-12-27
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

On ink screen devices, users need to frequently turn pages to compare information on different pages, resulting in a reduced user experience and an increased memory burden, and the prior art is difficult to ensure the integrity of content in the screen viewing area.

Method used

By obtaining gesture data on the ink screen, determining the unit movement distance, and updating the current page content based on this distance, ensuring the integrity of the displayed content in the screen viewing area, and realizing page content updates during gesture sliding operation.

Benefits of technology

It realizes the function of comparing different page contents without frequent page turning on the ink screen, which reduces user memory burden, improves user experience, and ensures the integrity of content in the screen viewing area, avoids some content being blocked. question.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949129B_ABST
    Figure CN111949129B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method, device, electronic device and storage medium for updating displayed content. When a user performs a gesture sliding operation on an ink screen, the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area can be determined through the gesture data and the unit movement distance on the ink screen. According to the determined movement distance, the current page content in the screen visible area can be updated. In the embodiments of the present invention, the current page content in the screen visible area can be updated by performing a gesture sliding operation on the ink screen, so that information that is originally located on different pages in the prior art can be located on the same display page, and thus content that is close in position can directly meet the user's need to compare and read the previous and next content, without the need for the user to repeatedly turn up or down pages, which greatly reduces the user's memory burden and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of content display, and in particular to a display content updating method, device, electronic device and storage medium. Background Art

[0002] At present, electronic screens used to display content on display devices usually include organic light-emitting diode (OLED) displays with high refresh rates and ink screens (E-ink screens) with low refresh rates. Since ink screens have the characteristics of healthy eye protection, they have become the preferred screens for a large number of e-reader products.

[0003] However, due to the special display principle of the ink screen, its refresh rate is significantly lower than that of the OLED display. As a result, when developing software applications on the ink screen device, the refresh rate of the ink screen needs to be considered to achieve a better interaction and reading experience. For the ink screen device, when there is too much content to be displayed, the existing technology usually uses manual page turning to move the content outside the visible area to the visible area, or uses gesture sliding to move the displayed image content a fixed distance to remove the slow motion effect.

[0004] When a user wants to compare and read information located on different pages, the user needs to repeatedly turn the page up or down, which not only increases the user's memory burden, but also reduces the user experience. Summary of the invention

[0005] The embodiments of the present invention provide a display content updating method, device, electronic device and storage medium to solve the defects in the prior art.

[0006] An embodiment of the present invention provides a method for updating display content, comprising:

[0007] Get gesture data on the ink screen;

[0008] Based on the gesture data and the unit movement distance, determining the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area; the unit movement distance is used to ensure the integrity of the content displayed in the screen visible area;

[0009] Based on the moving distance, the current page content is updated.

[0010] According to a method for updating displayed content according to an embodiment of the present invention, the unit movement distance is determined based on a minimum display unit of complete content corresponding to the current page content, or based on the minimum display unit and the size of the screen visible area.

[0011] According to a method for updating displayed content according to an embodiment of the present invention, the unit moving distance is specifically determined in the following manner:

[0012] Determining an integer multiple of the minimum display unit;

[0013] The integer multiple is adjusted based on the size of the screen visible area, or based on the size of the screen visible area, a preset viewing distance range, and a preset viewing angle range, and the unit movement distance is determined based on the product of the adjusted integer multiple and the minimum display unit.

[0014] According to a method for updating displayed content according to an embodiment of the present invention, determining the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area based on the gesture data and the unit movement distance specifically includes:

[0015] If the gesture sliding distance in the gesture data is less than or equal to the preset distance, determining the moving distance to be 0;

[0016] Otherwise, the moving distance is determined based on the gesture sliding speed in the gesture data and the unit moving distance.

[0017] According to a method for updating displayed content according to an embodiment of the present invention, determining the moving distance based on the gesture sliding speed in the gesture data and the unit moving distance specifically includes:

[0018] If the gesture sliding speed is less than the preset speed, the first multiple of the unit moving distance is used as the moving distance;

[0019] Otherwise, a second multiple of the unit moving distance is used as the moving distance, and the first multiple is smaller than the second multiple.

[0020] The display content updating method according to an embodiment of the present invention further includes:

[0021] Update the display progress, where the display progress includes the total number of pages of the complete content corresponding to the current page content and the page number of the current page content in the complete content;

[0022] The total number of pages of the complete content is determined based on the size of the obscured content in the complete content or the total content amount in the complete content, and the page number 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.

[0023] According to a method for updating displayed content according to an embodiment of the present invention, the total number of pages of the complete content is determined in the following manner:

[0024] calculating a ratio of a size of the obscured content in the complete content to the unit movement distance, and determining a total number of pages of the complete content based on the ratio; or,

[0025] The total number of pages of the complete content is determined based on the total content volume and the content volume displayed by the current page content.

[0026] The embodiment of the present invention further provides a display content updating device, comprising:

[0027] A gesture data acquisition module is used to acquire gesture data on the ink screen;

[0028] A movement data determination module, used to determine the movement distance of the current page content in 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 movement distance is used to ensure the integrity of the content displayed in the screen visible area;

[0029] An updating module is used to update the current page content based on the moving distance.

[0030] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-described display content updating methods are implemented.

[0031] An embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned display content updating methods are implemented.

[0032] The display content updating method, device, electronic device and storage medium provided by the embodiments of the present invention can determine the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area through the gesture data and the unit movement distance on the ink screen when the user performs a gesture sliding operation on the ink screen, and can update the current page content in the screen visible area according to the determined movement distance. In the embodiments of the present invention, the current page content in the screen visible area can be updated by performing a gesture sliding operation on the ink screen, so that information that is originally located on different pages in the prior art can be located on the same display page, and then the content in close positions can directly meet the user's need to compare and read the previous and next content, and the user does not need to repeatedly turn up or down pages to achieve this, which greatly reduces the user's memory burden and improves the user experience. Moreover, since the unit movement distance is taken into account when determining the movement distance, the integrity of the displayed content in the screen visible area is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 is a flow chart of a method for updating display content provided by an embodiment of the present invention;

[0035] Figure 2 It is a schematic diagram of the updating process of the current page content in the screen visible area in a display content updating method provided by an embodiment of the present invention;

[0036] Figure 3 is a structural diagram of a display content updating device provided by an embodiment of the present invention;

[0037] Figure 4 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] At present, the preferred screen for e-reader products is usually an ink screen, but due to the special display principle of the ink screen, its refresh frequency is significantly lower than that of the OLED display screen, which leads to the need to consider the refresh frequency of the ink screen when developing software applications on the ink screen device to achieve a better interaction and reading experience. For ink screen devices, when there is too much content to be displayed, it is usually divided into two situations. One situation is that the displayed content is a list item. At this time, paging is usually adopted, using different pages to display different content, and the content outside the screen visible area is moved to the screen visible area by manually clicking the page turning button. Another situation is that the displayed content is picture content. Since the size of the screen visible area corresponding to different functional modules in the same software is not necessarily the same, this leads to the need to perform fixed-ratio scaling when the picture content is displayed on the screen visible area of ​​different sizes. Assuming that the size of the first screen visible area is larger than the size of the second screen visible area, when the picture content of the first screen visible area is displayed in the second screen visible area, it will cause the picture content to be incompletely displayed in the second screen visible area, and it is necessary to click the page turning button in the second screen visible area to manually turn the page to view the blocked part of the content. If dragging or sliding with a slow motion effect is used, serious afterimages will be generated, affecting the viewing experience. To this end, an embodiment of the present invention provides a method for updating display content.

[0040] Figure 1 FIG. 1 is a flow chart of a method for updating display content provided in an embodiment of the present invention. Figure 1 As shown, the method includes:

[0041] S1, obtaining gesture data on the ink screen;

[0042] S2, based on the gesture data and the unit movement distance, determining a movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area; the unit movement distance is used to ensure the integrity of the content displayed in the screen visible area;

[0043] S3: Update the current page content based on the moving distance.

[0044] Specifically, the display content updating method provided in the embodiment of the present invention uses gesture sliding to update the current page content of the screen visible area of ​​the ink screen. The ink screen is the screen of the ink screen device, which can interact with the user, allowing the user to perform gesture sliding operations on the ink screen. The screen visible area of ​​the ink screen refers to the application window used to display content on the ink screen, which can be the full screen of the ink screen or a part of the ink screen. The size of the screen visible area of ​​the ink screen is not specifically limited in the embodiment of the present invention. When the user performs a 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 the gesture starting position, the gesture end position, the gesture sliding trajectory between the gesture starting position and the gesture end position, the gesture sliding direction, the gesture sliding speed, and the gesture sliding distance. The specific gesture sliding direction may be up and down sliding, left and right sliding, etc. In the embodiment of the present invention, the gesture sliding direction is taken as an example to illustrate.

[0045] Then execute step S2. The unit movement distance refers to the minimum unit distance that the displayed content in the visible area of ​​the screen can move at a time while ensuring the integrity of the displayed content. The unit movement distance can be adjusted according to the different displayed content in the visible area of ​​the screen. The unit movement distance is used to ensure the integrity of the displayed content in the visible area of ​​the screen. Here, the integrity of the displayed content in the visible area of ​​the screen means that the current page content is complete and does not affect reading. For example, if the current page content displays a list of items, the integrity of the displayed content in the visible area of ​​the screen does not display half of the item, that is, the complete item needs to be displayed. At this time, the unit movement distance can be set to the height of one or more items.

[0046] The moving distance of the current page content in the visible area of ​​the screen relative to the visible area of ​​the screen refers to the relative distance of the movement of the current page content triggered by gesture data with the visible area of ​​the screen as a reference. The moving distance of the current page content relative to the visible area of ​​the screen is usually an integer multiple of the unit moving distance, which can be specifically determined by gesture data combined with the unit moving distance. For example, the gesture sliding distance can be first determined by gesture data, and then based on the gesture sliding distance and the unit moving distance, combined with the correspondence between the predetermined gesture sliding distance, the unit moving distance and the moving distance of the current page content in the visible area of ​​the screen relative to the visible area of ​​the screen, the moving distance corresponding to the gesture sliding distance and the unit moving distance is determined.

[0047] Finally, execute step S3. Update the current page content according to the moving distance determined in step S2, that is, determine the target page content obtained after the gesture data triggers the movement of the current page content according to the moving distance, and then replace the current page content with the target page content to update the current page content. The gesture sliding effect thus formed removes the de-motion effect, has low requirements for the screen refresh rate, can prevent the occurrence of afterimages, and does not affect the viewing experience. That is, since the gesture data is obtained, the current page content is updated to the target page content. On this basis, the action of obtaining the gesture data on the ink screen can be executed in real time. As long as the gesture data on the ink screen is obtained, the current page content in the visible area of ​​the screen can be updated.

[0048] In the method for updating displayed content provided in the embodiment of the present invention, when the user performs a gesture sliding operation on the ink screen, the movement 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 the gesture data on the ink screen and the unit movement distance, and the current page content of the screen visible area can be updated according to the determined movement distance. In the embodiment of the present invention, the current page content of the screen visible area can be updated by performing a gesture sliding operation on the ink screen, so that the information originally located on different pages in the prior art can be located on the same display page, and then the content in a close position can directly meet the user's need to compare and read the previous and next content, and the user does not need to repeatedly turn up or down the page to achieve it, which greatly reduces the user's memory burden and improves the user experience. Moreover, since the unit movement distance is taken into account when determining the movement distance, the integrity of the displayed content in the screen visible area is guaranteed, and the phenomenon that part of the displayed content is blocked and cannot be fully displayed when the user performs a gesture sliding operation on the ink screen, which affects the reading, is avoided, and the user's reading comfort is improved.

[0049] Based on the above embodiments, in the display content updating method provided in the embodiments of the present invention, the unit movement distance is determined based on the minimum display unit of the complete content corresponding to the current page content, or based on the size of the minimum display unit and the screen visible area.

[0050] Specifically, the complete content corresponding to the current page content refers to all the content in the complete object including the current page content, and the complete object can specifically be a document, a picture, etc. 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 can be a list document, and each entry in the list document, such as each line, can be used to represent an object, that is, to constitute a complete content block. Therefore, for a list document, the minimum display unit can be an entry. The complete object can also be a picture, and the valid content contained in the picture can be separated by blank areas or column lines, for example, the picture contains multiple lines of valid content, and each adjacent line of valid content is separated by a horizontal column line. Therefore, for a picture, the minimum display unit can be the area consisting of the valid content between two adjacent blank areas or two adjacent column lines. The size of the screen visible area may include the length and height of the screen visible area.

[0051] When determining the unit movement distance, it can be implemented only based on the minimum display unit of the complete content corresponding to the current page content, that is, the height of the minimum display unit or its integer multiple can be directly used as the unit movement distance to avoid occlusion. For example, when the complete object is a list document, the unit movement distance can be the height of one or more entries to ensure that one or more complete entries can enter the visible area of ​​the screen with a single gesture swipe. When the complete object is a picture, the unit movement distance can be the height of the area consisting of valid content between two adjacent blank areas or two adjacent column lines or its integer multiple, to ensure that the complete valid content can enter the visible area of ​​the screen as much as possible with a single gesture swipe.

[0052] When determining the unit movement distance, it can also be achieved by combining the minimum display unit with the size of the screen visible area. According to the size of the screen visible area, a suitable multiple of the minimum display unit is selected as the unit movement distance. The unit movement distance can ensure the integrity of the content displayed in the screen visible area, while taking into account the efficiency of users viewing the content.

[0053] Based on the above embodiment, the unit moving distance is specifically determined in the following manner:

[0054] Determining an integer multiple of the minimum display unit;

[0055] The integer multiple is adjusted based on the size of the screen visible area, or based on the size of the screen visible area, a preset viewing distance range, and a preset viewing angle range, and the unit movement distance is determined based on the product of the adjusted integer multiple and the minimum display unit.

[0056] Specifically, in an embodiment of the present invention, when determining the unit movement distance by combining the minimum display unit with the size of the screen visible area, the integer multiple of the minimum display unit can be determined first, and the minimum display unit of the integer multiple is used as the initial unit movement distance. In this way, when the distance of a single slide is ensured to be the initial unit movement distance, occlusion can be avoided, and the integrity of the content displayed in the screen visible area during a single slide can be ensured. Then, the integer multiple can be adjusted directly according to the size of the screen visible area to obtain the unit movement distance. For example, the minimum display unit is an entry, the height of an entry is 5px, and the integer multiple is 2, then the initial unit movement distance is 10px. Assuming the height of the screen visible area is 120px, if the initial unit moving distance is used as the unit moving distance, it will take 12 moves to completely prevent the current page content from appearing in the screen visible area, which reduces the user's reading efficiency and reading experience. Therefore, the integer multiple of the minimum display unit can be increased, for example, it can be increased to 5, then the initial unit moving distance becomes 25px. If the initial unit moving distance is used as the unit moving distance, it only takes 5 moves to completely prevent the current page content from appearing in the screen visible area, which improves the user's reading efficiency and reading experience. It should be noted that considering that the user's line of sight can easily track the unread display content, in order to avoid the problem of taking time to connect the display content after each slide, the integer multiple cannot be increased indefinitely, and reasonable adjustments need to be made.

[0057] After determining the integer multiples of the minimum display unit, the integer multiples can also be adjusted in combination with the preset viewing distance range and the preset viewing angle range to obtain the unit movement distance. Among them, the preset viewing distance range refers to the range of changes in the distance between the user's eyes and the ink screen when the user is viewing the current page content in the screen visible area of ​​the ink screen, while ensuring the viewing effect. The preset viewing distance range can be specifically set to 15 cm to 30 cm. The preset viewing angle range refers to the range of changes in the angle between the user's line of sight and the plane on which the ink screen is located in the pitch direction when the user is viewing the current page content in the screen visible area of ​​the ink screen, while ensuring the viewing effect. The preset viewing angle range can be specifically set to 100 degrees to 170 degrees.

[0058] 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 movement distance is adjusted according to the size of the screen visible area. If the height of the screen visible area is large, in order to avoid the initial unit movement distance being set too small and affecting the efficiency of viewing content, the initial unit movement distance can be increased, that is, the multiple of the minimum display unit is increased. However, it should be noted that the initial unit movement distance cannot be increased indefinitely, and it is also necessary to consider that after a single slide according to the adjusted initial unit movement distance, the user's line of sight can easily track the updated display content, avoiding the problem of taking time to connect the display content after each slide, and preventing reading troubles.

[0059] It should be noted that in actual applications, if the display content in the visible area of ​​the screen is handwritten by the user, the height of the minimum display unit is not fixed because the height of the handwritten content in each line may not be exactly the same. Therefore, in order to ensure the display integrity of the display content in the visible area of ​​the screen, the initial unit movement distance can be adjusted, such as slightly enlarging or reducing it, so that the page content in the visible area of ​​the screen can be fully displayed.

[0060] In an embodiment of the present invention, in combination with a preset viewing distance range and a preset viewing angle range, the integer multiples are adjusted according to the size of the screen visible area, and the product of the adjusted integer multiples and the minimum display unit is used as the unit movement distance. This can ensure the user's viewing effect while avoiding obstruction, thereby improving the user experience.

[0061] On the basis of the above embodiment, in the embodiment of the present invention, the initial unit movement distance can also be adjusted according to the size of the screen visible area under the conditions of a given viewing distance and a viewing angle to obtain a unit movement distance. The given viewing distance can be any value in the preset viewing distance range, for example, it can be 20 centimeters. The given viewing angle can be any value in the pre-viewing angle range, for example, it can be 130 degrees, so that the best viewing effect of the user can be guaranteed, and at the same time, the influence of the viewing distance and the viewing angle on the unit movement distance can be avoided to the greatest extent.

[0062] On the basis of the above embodiment, determining the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area based on the gesture data and the unit movement distance specifically includes:

[0063] If the gesture sliding distance in the gesture data is less than or equal to the preset distance, determining the moving distance to be 0;

[0064] Otherwise, the moving distance is determined based on the gesture sliding speed in the gesture data and the unit moving distance.

[0065] Specifically, in an embodiment of the present invention, when determining the moving distance of the current page content in the visible area of ​​the screen relative to the visible area of ​​the screen, in order to avoid the phenomenon of updating the displayed content due to the user's mistaken operation of touching the ink screen, it can be first 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, it is considered to be valid gesture data, not gesture data generated by the user's mistaken operation of touching the ink screen. The gesture data can be used to update the displayed content, and the moving distance can be further determined according to the gesture sliding speed and the unit moving distance in the gesture data. For example, the gesture sliding speed can be divided into multiple 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 an integer multiple of the unit moving distance, and the higher the level of the gesture sliding speed, the larger the moving distance corresponding to. Among them, the preset distance can be set as needed, and can be specifically adjusted according to the screen display resolution. The unit of the preset distance can be pixel, for example, the preset distance can be set to 50px.

[0066] Otherwise, if the gesture sliding distance is less than or equal to the preset distance, it is considered to be invalid gesture data, that is, the gesture data may be generated by the user's mistaken touch of the ink screen and cannot be used to update the displayed content. In this case, the moving distance can be set to 0.

[0067] In an embodiment of the present invention, a preliminary judgment is made based on the gesture sliding distance, and only when the gesture sliding distance is greater than a preset distance will the moving distance for updating the displayed content be further calculated. This can save the amount of calculation and avoid the phenomenon of updating the displayed content due to the user's mistaken operation of touching the ink screen.

[0068] The more levels of gesture sliding speed there are, the more difficult it is for the user to control the distance of the page sliding. That is, the more levels of gesture sliding speed there are, the more difficult it is for the user to predict the distance the page will slide each time the gesture slides. Therefore, the embodiment of the present invention introduces a preset speed and divides the gesture sliding speed into two levels, which can make it easier for users to apply.

[0069] On the basis of the above-mentioned embodiment, the display content updating method provided in the embodiment of the present invention, wherein the determining the moving distance based on the gesture sliding speed in the gesture data and the unit moving distance specifically includes:

[0070] If the gesture sliding speed is less than the preset speed, the first multiple of the unit moving distance is used as the moving distance;

[0071] Otherwise, a second multiple of the unit moving distance is used as the moving distance, and the first multiple is smaller than the second multiple.

[0072] Specifically, when the gesture sliding distance is greater than the preset distance, it can be further determined whether the gesture sliding speed is less than the preset speed. If the gesture sliding speed is less than the preset speed, it means that the user may prefer to move a smaller distance, and the first multiple of the unit moving distance can be used as the moving distance; if the gesture sliding speed is greater than or equal to the preset speed, it means that the user may prefer to move a larger distance, and the second multiple of the unit moving distance can be used as the moving distance. Among them, the first multiple is less than the second multiple, and the first multiple, the second multiple and the preset speed can all be set as needed, and can be specifically 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 can be pixels per second. For example, the preset speed can be set to 500px / s.

[0073] In the embodiment of the present invention, the preset speed is introduced and the gesture sliding speed is divided into two levels, which can improve the control accuracy of the user's gesture sliding. Compared with the solution of dividing the gesture sliding speed into three or more levels, the solution of dividing the gesture sliding speed into two levels makes it easier for the user to predict the distance of the page sliding, which helps to reduce the user's operation difficulty.

[0074] On the basis of the above embodiment, the display content updating method provided in the embodiment of the present invention further includes:

[0075] Update the display progress, where the display progress includes the total number of pages of the complete content corresponding to the current page content and the page number of the current page content in the complete content;

[0076] The total number of pages of the complete content is determined based on the size of the obscured content in the complete content or the total content amount in the complete content, and the page number 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.

[0077] Specifically, in an embodiment of the present invention, a progress indicator may be set in the visible area of ​​the screen to display the display progress in real time. Each time the user triggers a gesture sliding operation, the display progress is updated. The display progress may include two parts, the first part is the total number of pages of the complete content corresponding to the current page content, and the second part is the page number of the current page content in the complete content. When displaying the display progress, the second part may be set before the first part, and the first part and the second part may be separated by a separator such as " / ".

[0078] Among them, the method for determining the total number of pages of the complete content corresponding to the current page content may vary according to the category of the complete object. When the complete object is a list document, the total number of pages of the complete content can be determined based on the total content volume in the complete content and the content volume displayed in the current page content. Among them, the total content volume can be the number of all items contained in the list document, and the content volume displayed in the current page content can be the number of all items displayed in the current page content. When the complete object is a picture, the total number of pages of the complete content can be determined based on the size of the obscured content in the complete content and the unit movement distance. The total number of pages of the complete content can also be determined by other calculation methods, which are not specifically limited in the embodiments of the present invention.

[0079] The page number of the current page content in the complete content can be determined based on the cumulative amount of content displayed in the complete content and the amount of content displayed in the current page content. The cumulative amount of content displayed in the complete content includes the content displayed in the current page content. The amount of content here can specifically be the number of entries or the number of rows of valid content, which is not specifically limited in the embodiments of the present invention. When determining the page number of the current page content in the complete content, the ratio of the cumulative amount of content displayed in the complete content to the amount of content displayed in the current page content can be specifically calculated, and then the ratio can be rounded up to obtain the page number of the current page content in the complete content.

[0080] In an embodiment of the present invention, a progress indicator is set to display the display progress, and the display progress is updated when the user triggers a gesture sliding operation, so that the user can understand the approximate position of the current position relative to the complete content, and can understand the reading progress more intuitively.

[0081] On the basis of the above-mentioned embodiment, in the method for updating displayed content provided in the embodiment of the present invention, the total number of pages of the complete content is determined in the following manner:

[0082] calculating a ratio of a size of the obscured content in the complete content to the unit movement distance, and determining a total number of pages of the complete content based on the ratio; or,

[0083] The total number of pages of the complete content is determined based on the total content volume and the content volume displayed by the current page content.

[0084] Specifically, when determining the total number of pages of the complete content, when the complete object is a picture, the ratio of the size of the obscured content in the complete content to the unit movement distance can be calculated first, and then the ratio is rounded up and added to 1 to obtain the result as the total number of pages of the complete content. Among them, the size of the obscured content in the complete content refers to the sum of the sizes of all the contents in the complete content except the content displayed on the current page. When the complete object is a list document, the total amount of content in the complete content can be determined first, and then the ratio of the total amount of content in the complete content to the amount of content displayed on the current page is calculated, and the result of rounding up the ratio is used as the total number of pages of the complete content.

[0085] In the embodiment of the present invention, a specific method for determining the total number of pages of complete content is provided, and the total number of pages of complete content can be determined in different situations, thereby improving the application scope of the display content update method.

[0086] Based on the above embodiments, Figure 2 Schematic diagram of the updating process of the current page content in the screen visible area in an embodiment of the present invention. Figure 2 As shown, the complete object is a list file, which contains 18 entries. The current page content in the visible area of ​​the screen can display 5 entries, so the total number of pages of the complete content is 4, and the last page displays 3 entries.

[0087] The current page content of the screen visible area at the initial moment is display items 1-5, and a progress indicator is set in the lower left corner, and the display progress shown by the progress indicator is "1 / 4".

[0088] When the user triggers a gesture move operation and moves up 2 items, the current page content is updated to items 3-7, and the display progress shown by the progress indicator is updated to "2 / 4".

[0089] When the user triggers the secondary gesture move operation and continues to move up 2 items, the current page content is updated to items 5-9, and the display progress shown by the progress indicator is updated to "2 / 4".

[0090] When the user triggers the gesture move operation three times and continues to move up 2 items, the current page content is updated to items 7-11, and the display progress shown by the progress indicator is updated to "3 / 4".

[0091] Based on the above embodiments, Figure 3 FIG. 1 is a schematic diagram of the structure of a display content updating device provided in an embodiment of the present invention. Figure 3 As shown, the device includes: a gesture data acquisition module 31, a movement data determination module 32 and an update module 33.

[0092] The gesture data acquisition module 31 is used to acquire gesture data on the ink screen;

[0093] The movement data determination module 32 is used to determine the movement distance of the current page content in 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 movement distance is used to ensure the integrity of the content displayed in the screen visible area;

[0094] The updating module 33 is used to update the current page content based on the moving distance.

[0095] Specifically, the functions of each module in the display content updating device provided in the embodiment of the present invention correspond one-to-one to the processing procedures of each step in the above method embodiment, and the effects achieved are also consistent. Please refer to the above method embodiment for details, which will not be repeated in the embodiment of the present invention.

[0096] Based on the above embodiment, the unit movement distance is determined based on the minimum display unit of the complete content corresponding to the current page content, or based on the minimum display unit and the size of the screen visible area.

[0097] On the basis of the above embodiment, the device further includes a unit movement distance determination module, and the unit movement distance determination module is used to:

[0098] Determining an integer multiple of the minimum display unit;

[0099] The integer multiple is adjusted based on the size of the screen visible area, or based on the size of the screen visible area, a preset viewing distance range, and a preset viewing angle range, and the unit movement distance is determined based on the product of the adjusted integer multiple and the minimum display unit.

[0100] Based on the above embodiment, the mobile data determination module is specifically used for:

[0101] If the gesture sliding distance in the gesture data is less than or equal to the preset distance, determining the moving distance to be 0;

[0102] Otherwise, the moving distance is determined based on the gesture sliding speed in the gesture data and the unit moving distance.

[0103] Based on the above embodiment, the mobile data determination module is specifically used for:

[0104] If the gesture sliding speed is less than the preset speed, the first multiple of the unit moving distance is used as the moving distance;

[0105] Otherwise, a second multiple of the unit moving distance is used as the moving distance, and the first multiple is smaller than the second multiple.

[0106] Based on the above embodiment, the device further includes: a progress indicator; the progress indicator is used to:

[0107] Update the display progress, where the display progress includes the total number of pages of the complete content corresponding to the current page content and the page number of the current page content in the complete content;

[0108] The total number of pages of the complete content is determined based on the size of the obscured content in the complete content or the total content amount in the complete content, and the page number 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.

[0109] Based on the above embodiment, the device further includes: a total page number determination module; the total page number determination module is used to:

[0110] calculating a ratio of a size of the obscured content in the complete content to the unit movement distance, and determining a total number of pages of the complete content based on the ratio; or,

[0111] The total number of pages of the complete content is determined based on the total content volume and the content volume displayed by the current page content.

[0112] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the display content update method, including: obtaining gesture data on the ink screen; 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 movement distance is used to ensure the integrity of the display content in the screen visible area; based on the movement distance, updating the current page content.

[0113] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0114] On the other hand, an embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the display content update method provided by the above-mentioned method embodiments, including: obtaining gesture data on the ink screen; based on the gesture data and the unit movement distance, determining the movement distance of the current page content of the screen visible area of ​​the ink screen relative to the screen visible area; the unit movement distance is used to ensure the integrity of the displayed content in the screen visible area; based on the movement distance, updating the current page content.

[0115] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the display content update method provided in the above embodiments is implemented, including: obtaining gesture data on the ink screen; based on the gesture data and the unit movement distance, determining the movement distance of the current page content of the screen visible area of ​​the ink screen relative to the screen visible area; the unit movement distance is used to ensure the integrity of the display content in the screen visible area; based on the movement distance, updating the current page content.

[0116] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for updating display content, characterized in that: include: Get gesture data on the ink screen; Based on the gesture data and the unit movement distance, determining the movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area; the unit movement distance is used to ensure the integrity of the content displayed in the screen visible area; the unit movement distance refers to the minimum unit distance that the content displayed in the screen visible area can move at a time under the premise of ensuring the integrity of the content displayed in the screen visible area; Based on the moving distance, updating the current page content; The determining, based on the gesture data and the unit movement distance, a movement distance of the current page content in 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 greater than a preset distance, determining the moving distance based on the gesture sliding speed in the gesture data and the unit moving distance; The determining the moving distance based on the gesture sliding speed in the gesture data and the unit moving distance specifically includes: If the gesture sliding speed is less than the preset speed, the first multiple of the unit moving distance is used as the moving distance; Otherwise, a second multiple of the unit moving distance is used as the moving distance, and the first multiple is smaller than the second multiple.

2. The display content updating method according to claim 1, characterized in that: The unit movement distance is determined based on a minimum display unit of the complete content corresponding to the current page content, or based on the minimum display unit and the size of the screen visible area.

3. The display content updating method according to claim 2, characterized in that: The unit moving distance is specifically determined by the following method: Determining an integer multiple of the minimum display unit; The integer multiple is adjusted based on the size of the screen visible area, or based on the size of the screen visible area, a preset viewing distance range, and a preset viewing angle range, and the unit movement distance is determined based on the product of the adjusted integer multiple and the minimum display unit.

4. The display content updating method according to claim 1, characterized in that: The determining, based on the gesture data and the unit movement distance, a movement distance of the current page content in the screen visible area of ​​the ink screen relative to the screen visible area, further includes: If the gesture sliding distance in the gesture data is less than or equal to a preset distance, the moving distance is determined to be 0.

5. The display content updating method according to any one of claims 1 to 4, characterized in that: Also includes: Update the display progress, where the display progress includes the total number of pages of the complete content corresponding to the current page content and the page number of the current page content in the complete content; The total number of pages of the complete content is determined based on the size of the obscured content in the complete content or the total content amount in the complete content, and the page number 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.

6. The display content updating method according to claim 5, characterized in that: The total number of pages of the complete content is specifically determined in the following manner: calculating a ratio of a size of the obscured content in the complete content to the unit movement distance, and determining a total number of pages of the complete content based on the ratio; or, The total number of pages of the complete content is determined based on the total content volume and the content volume displayed by the current page content.

7. A display content updating device, characterized in that: include: A gesture data acquisition module is used to acquire gesture data on the ink screen; A movement data determination module, used to determine the movement distance of the current page content in 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 movement distance is used to ensure the integrity of the content displayed in the screen visible area; the unit movement distance refers to the minimum unit distance that the content displayed in the screen visible area can move at a time under the premise of ensuring the integrity of the content displayed in the screen visible area; An updating module, used for updating the current page content based on the moving distance; The mobile data determination module is specifically used for: If the gesture sliding distance in the gesture data is greater than a preset distance, determining the moving distance based on the gesture sliding speed in the gesture data and the unit moving distance; The mobile data determination module is further specifically used for: If the gesture sliding speed is less than the preset speed, the first multiple of the unit moving distance is used as the moving distance; Otherwise, a second multiple of the unit moving distance is used as the moving distance, and the first multiple is smaller than the second multiple.

8. An electronic device comprising an ink screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the display content updating method according to any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the display content updating method according to any one of claims 1 to 6 are implemented.