CN114879892A - Data sliding display method and device and electronic equipment - Google Patents

Data sliding display method and device and electronic equipment Download PDF

Info

Publication number
CN114879892A
CN114879892A CN202210422734.3A CN202210422734A CN114879892A CN 114879892 A CN114879892 A CN 114879892A CN 202210422734 A CN202210422734 A CN 202210422734A CN 114879892 A CN114879892 A CN 114879892A
Authority
CN
China
Prior art keywords
data
display
sliding
target display
determining
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
CN202210422734.3A
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.)
Shenzhen Lvlian Technology Co Ltd
Original Assignee
Shenzhen Lvlian 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 Shenzhen Lvlian Technology Co Ltd filed Critical Shenzhen Lvlian Technology Co Ltd
Priority to CN202210422734.3A priority Critical patent/CN114879892A/en
Publication of CN114879892A publication Critical patent/CN114879892A/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/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)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a data sliding display method, a device, equipment, a storage medium and a program product, wherein the method comprises the following steps: responding to a sliding operation which is triggered on a target display interface by a user and aims at target display data, and determining an operation movement amount corresponding to the sliding operation; determining a data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data; judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result; determining a data sliding display function and a function parameter according to the first judgment result; and performing display operation on the target display data on the target display interface according to the data sliding display function and the function parameter. Therefore, the invention can reduce the blocking and even deadlocking of data display and improve the user experience and display effect.

Description

Data sliding display method and device and electronic equipment
Technical Field
The present invention relates to the field of data display technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for displaying data in a sliding manner.
Background
With the development of data visualization display technology, the sliding display technology of data is applied to more and more electronic devices, such as common mobile phone terminal devices or tablet devices, and a user can trigger the sliding display of display data on the screens of the devices by sliding a specific marker, so that the use experience is better.
However, in the existing data sliding display technology, when a sliding display operation with a large movement amount is executed, the situations of jamming and deadlocking are easily caused due to the limitation of the memory of the device, and the display fluency and the user experience are greatly reduced. Therefore, the prior art has defects and needs to be solved urgently.
Disclosure of Invention
The invention provides a data sliding display method, a data sliding display device, data sliding display equipment, a storage medium and a program product, which can flexibly realize data sliding display with better effect according to the amount of data movement, reduce the pause and even death of data display, and improve the user experience and display effect.
In order to solve the technical problem, a first aspect of the present invention discloses a data sliding display method, including:
responding to a sliding operation aiming at target display data triggered by a user on a target display interface, and determining an operation movement amount corresponding to the sliding operation;
determining a data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data;
judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result;
determining a data sliding display function and a function parameter according to the first judgment result;
and performing display operation on the target display data on the target display interface according to the data sliding display function and the function parameter.
As an optional implementation manner, in the first aspect of the present invention, the data amount threshold condition is that the data amount is greater than a product of the maximum interface display data amount of the target display interface and a preset multiple.
As an optional implementation manner, in the first aspect of the present invention, the determining, according to the first determination result, a data sliding display function and a function parameter includes:
if the first judgment result is yes, determining a target display position parameter of the target display data according to the data movement amount, determining a positioning sliding function as a data sliding function, and determining a function parameter according to the target display position parameter;
and if the first judgment result is negative, determining the offset sliding function as a data sliding function and determining the data movement amount as a function parameter.
As an optional implementation manner, in the first aspect of the present invention, the determining a target display position of the target display data according to the data movement amount includes:
determining the unit data display amount of the target display data;
determining the corresponding relation between the unit position of the target display data and the data volume according to the unit data display volume of the target display data;
and determining a target display position parameter of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount.
As an optional implementation manner, in the first aspect of the present invention, the determining a unit data display amount of the data unit of the target display data includes:
determining a data display amount of at least one data unit of the target display data displayed by the target display interface;
and determining the unit data display amount of the data unit of the target display data according to the data display amount of the at least one data unit.
As an optional implementation manner, in the first aspect of the present invention, the target display position parameter includes a display position and a position deviation; determining a target display position parameter of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount, wherein the determining comprises the following steps:
calculating a corresponding unit position value according to the data movement amount and the corresponding relation between the unit position and the data amount;
determining a unit position in the target display data that is closest to the unit position value as the display position;
determining corresponding display data volume according to the display position and the corresponding relation between the unit position and the data volume;
and determining the difference between the data movement amount and the display data amount as the position deviation.
As an alternative embodiment, in the first aspect of the present invention, the sliding operation is an operation of moving the sliding marker to a first position along the sliding area; the method further comprises the following steps:
determining an actual sliding amount of the target display data corresponding to the display operation;
determining a second position of the sliding marker in the sliding area according to the actual sliding amount and the area parameter of the sliding area;
adjusting the sliding marker from the first position to the second position.
As an optional implementation manner, in the first aspect of the present invention, the positioning slide function is a scrolltopitionwithoffset function or scrollToPosition function, and/or the offset slide function is a scrollBy function.
The invention discloses a data sliding display device in a second aspect, which comprises:
the sliding determining module is used for responding to sliding operation aiming at target display data triggered by a user on a target display interface and determining operation moving amount corresponding to the sliding operation;
the movement determining module is used for determining a data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data;
the condition judgment module is used for judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result;
the function determining module is used for determining a data sliding display function and function parameters according to the first judgment result;
and the display execution module is used for executing display operation on the target display data on the target display interface according to the data sliding display function and the function parameter.
As an optional implementation manner, in the second aspect of the present invention, the data amount threshold condition is that the data movement amount is greater than a product of the maximum interface display data amount of the target display interface and a preset multiple.
As an optional implementation manner, in the second aspect of the present invention, the function determination module includes:
a first determining unit, configured to determine, when the first determination result is yes, a target display position parameter of the target display data according to the data movement amount, determine a positioning sliding function as a data sliding function, and determine a function parameter according to the target display position parameter;
and a second determining unit, configured to determine the offset sliding function as a data sliding function and the data movement amount as a function parameter when the first determination result is negative.
As an optional implementation manner, in the second aspect of the present invention, a specific manner in which the first determining unit determines the target display position of the target display data according to the data movement amount includes:
determining the unit data display amount of the target display data;
determining the corresponding relation between the unit position of the target display data and the data volume according to the unit data display volume of the target display data;
and determining a target display position parameter of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount.
As an optional implementation manner, in the second aspect of the present invention, a specific manner of determining the unit data display amount of the data unit of the target display data by the first determining unit includes:
determining a data display amount of at least one data unit of the target display data displayed by the target display interface;
and determining the unit data display amount of the data unit of the target display data according to the data display amount of the at least one data unit.
As an alternative embodiment, in the second aspect of the present invention, the target display position parameter includes a display position and a position deviation; the specific mode of determining the target display position parameter of the target display data by the first determining unit according to the data movement amount and the corresponding relation between the unit position and the data amount comprises the following steps:
calculating a corresponding unit position value according to the data movement amount and the corresponding relation between the unit position and the data amount;
determining a unit position in the target display data that is closest to the unit position value as the display position;
determining corresponding display data volume according to the display position and the corresponding relation between the unit position and the data volume;
and determining the difference between the data movement amount and the display data amount as the position deviation.
As an alternative embodiment, in the second aspect of the present invention, the sliding operation is an operation of moving the sliding marker to the first position along the sliding area; the apparatus also includes a position adjustment module for performing the steps of:
determining an actual sliding amount of the target display data corresponding to the display operation;
determining a second position of the sliding marker in the sliding area according to the actual sliding amount and the area parameter of the sliding area;
adjusting the sliding marker from the first position to the second position.
As an alternative implementation manner, in the second aspect of the present invention, the positioning slide function is a scrollToPosition withoffset function or scrollToPosition function, and/or the offset slide function is a scrollBy function.
A third aspect of the present invention discloses an electronic apparatus, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of the data sliding display method disclosed by the first aspect of the invention.
The fourth aspect of the present invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer storage medium is used for executing part or all of the steps in the data sliding display method disclosed in the first aspect of the present invention.
A fifth aspect of the present invention discloses a computer program product, which comprises a computer program/instructions, which when executed by a processor, implement some or all of the steps of the data slide show method disclosed in the first aspect of the present invention.
Compared with the prior art, the invention has the following beneficial effects:
the invention can judge whether the movement amount of the display data meets the data threshold condition or not so as to determine whether the data amount of the display operation possibly exceeds the processing capacity of the equipment or not, and determine the sliding function to be adopted according to the judgment result so as to flexibly realize the data sliding display with better effect according to the data movement amount, reduce the blockage or even dead blockage of the data display and improve the user experience and the display effect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a data slide display method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another data slide display method disclosed in the embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a data sliding display device according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another data slide display device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a data sliding display method, a device, equipment, a storage medium and a program product, which can judge whether the movement amount of display data meets a data threshold condition so as to determine whether the data amount of display operation possibly exceeds the processing capacity of the equipment, and determine a sliding function to be adopted according to a judgment result, so that the data sliding display with better effect can be flexibly realized according to the data movement amount, the blockage of the data display is reduced, and the user experience and the display effect are improved. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a data slide display method according to an embodiment of the present invention. The method described in fig. 1 may be applied to a corresponding data sliding display device, such as a processing terminal, a processing device, or a processing server for performing display data processing, where the server may be a cloud server or a local server, and the embodiment of the present invention is not limited thereto. Specifically, as shown in fig. 1, the data slide display method may include the following operations:
101. and responding to the sliding operation aiming at the target display data triggered by the user on the target display interface, and determining the operation movement amount corresponding to the sliding operation.
Optionally, the target display interface in the present invention may be a display screen or a projection display interface of various types of terminals, such as a computer, a mobile phone, or a tablet terminal.
Optionally, the manner in which the user triggers the sliding operation may be that the user directly performs touch triggering on a touch screen device corresponding to the target display interface, or may also perform triggering through other devices, such as a keyboard, a mouse, and other human-computer interaction devices, or an image recognition device or a brain wave communication device for capturing the user operation, which is not limited in the present invention.
Optionally, the target display data may be a text, a picture, or a combination of the text and the picture, and may be data in a form of grid data or a form of list data, which is not limited in the present invention.
Optionally, the operation movement amount corresponding to the sliding operation may be used to indicate a movement length of the sliding operation, for example, a distance that a finger of the user slides on the target touch screen, or a distance that the user slides a specific sliding marker on a specific sliding area, for example, in some specific embodiments, the user may manipulate a slider on one side of the display interface to slide on the sliding bar to implement the sliding operation. Alternatively, the operation movement amount may be determined by a preset API interface or function, or may be determined by calculating a distance between the position of the sliding marker before the sliding operation is triggered and the position of the sliding marker after the sliding operation is executed.
102. And determining the data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data.
Optionally, step 102 may specifically include:
calculating a first ratio of the operation movement amount and the operation maximum possible movement amount;
and calculating the product of the first ratio and the total display data amount of the target display data to obtain the data movement amount corresponding to the target display data.
Alternatively, the maximum possible operation moving amount may be used to indicate a maximum operation moving amount that the sliding operation of the user may perform, and may be a data amount or a pixel amount, for example, when the sliding operation is an operation in which the user slides on a specific sliding region for a specific sliding marker, the maximum possible operation moving amount may be a difference between a total length of the sliding region and a length of the sliding marker itself, for example, a difference between a maximum length of a sliding bar where the slider is located and a length of the slider itself. For another example, when the sliding operation is any sliding operation performed by the user on the target display interface, the maximum possible movement amount of the operation may be the maximum slidable distance of the target display interface, for example, the direction in which the user slides may be obtained, and the maximum intersection length of the straight line corresponding to the direction and the target display interface may be calculated to determine the maximum possible movement amount of the operation.
Optionally, both the data movement amount corresponding to the target display data and the total display data amount of the target display data may be a size amount of data, or a pixel amount of data, which may be determined through a preset API interface or function, or may be calculated through a data parameter of the target display data, for example, when the total display data amount of the target display data is the pixel amount of data, the following steps may be performed to determine:
determining a total data size amount of target display data and a unit data size amount of each data unit;
calculating the ratio of the total data size to the unit data size to obtain the number of the display units;
determining a unit pixel quantity of each data unit of the target display data;
and calculating the product of the number of the display units and the unit pixel quantity to obtain the total display data quantity of the target display data.
103. And judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result.
Optionally, the data amount threshold condition is used to define whether the data amount exceeds a data amount threshold that may cause the device to be stuck, and is proportional to the maximum display data amount of the interface of the target display interface. Optionally, the maximum interface display data amount of the target display interface may be a data unit amount or a data pixel amount. Optionally, when the maximum interface display data size of the target display interface is a data unit size, the maximum interface display data size may be determined through the following steps:
determining the maximum interface display pixel quantity of a target display interface;
determining a unit pixel quantity of each data unit of the target display data;
and calculating the ratio of the maximum display pixel quantity of the interface to the unit pixel quantity to obtain the maximum display data quantity of the interface of the target display interface.
Optionally, the data size threshold condition is that the data movement amount is greater than a product of the maximum interface display data size of the target display interface and a preset multiple. Alternatively, the preset multiple may be 1 or other positive integer, which may be determined by an operator through an experimental value or an empirical value, and adjusted according to the actual effect.
104. And determining a data sliding display function and a function parameter according to the first judgment result.
Optionally, the data sliding display function may be a positioning sliding function or an offset sliding function, where the positioning sliding function operates according to a position to be slid to directly display the position, so that an intermediate display step may be effectively omitted, and data processing pressure of a display card or a memory of the device is reduced, and the offset sliding function is used to operate according to a data amount to be slid to display a sliding process, and may be adapted to a situation where a data movement amount is small, and may improve a display effect and user experience.
105. And performing display operation on the target display data on a target display interface according to the data sliding display function and the function parameter.
Optionally, the function parameter may be directly transferred to the data sliding display function, and the data sliding display function is executed to perform a display operation on the target display data on the target display interface.
Therefore, the method described in the embodiment of the present invention can determine whether the movement amount of the display data meets the data threshold condition, to determine whether the data amount of the display operation may exceed the processing capability of the device, and determine the sliding function to be used according to the determination result, to flexibly implement the sliding display of the data with better effect according to the data movement amount, to reduce the stutter and even the deadlock of the data display, and to improve the user experience and the display effect.
As an alternative embodiment, in the step 104, determining the data sliding display function and the function parameter according to the first determination result includes:
if the first judgment result is yes, determining target display position parameters of the target display data according to the data movement amount, determining the positioning sliding function as a data sliding function, and determining function parameters according to the target display position parameters;
if the first judgment result is negative, determining the offset sliding function as a data sliding function, and determining the data movement amount as a function parameter.
Optionally, the positioning sliding function in the present invention may be a scrolltotispositionwithoffset function or scrolltotposition function in a recycleview component, or a ListView. Preferably, when a scrolltopitionwithoffset function or a scrollToPosition function in a recycleview component is adopted, the data processing pressure of a display card or a memory of the device can be effectively reduced under the condition of large data movement amount, so that the condition that the device is stuck or stuck is reduced.
Optionally, the offset sliding function in the present invention may be a scrollBy function in a recycleview component, or a scrollBy function in a ListView component, and it should be noted that other programming languages or programming components can implement a function for sliding the presentation data according to the offset, and the function should also be considered to be included in the scope of the present invention.
Therefore, by implementing the optional embodiment, the data sliding display function and the function parameters can be determined according to the first judgment result, so that the display pressure of the equipment is reduced by adopting the positioning sliding function when the data movement amount is overlarge, or the sliding display of the data is normally performed by adopting the offset sliding function when the data movement amount is normal, the data sliding display with better effect is flexibly realized according to the data movement amount, the blockage of the data display is reduced, and the user experience and the display effect are improved.
As an alternative embodiment, the determining the target display position of the target display data according to the data movement amount in the above step includes:
determining the unit data display amount of the target display data;
determining the corresponding relation between the unit position of the target display data and the data volume according to the unit data display volume of the target display data;
and determining target display position parameters of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount.
Optionally, the unit data display amount of the target display data is a data display amount of one data unit, such as one line or one grid, of the target display data, which may be a data size amount or a data pixel amount.
Optionally, the data unit according to the present invention may be an area definition for distinguishing different data display areas for the object display data, and in some specific schemes, it may be an item (component) in the object display data.
Optionally, the correspondence between the unit position of the target presentation data and the data size is used to indicate different data sizes corresponding to different unit positions in the target presentation data, and the correspondence may be represented by a data structure used to represent a mapping relationship, such as a key value peer, for example, in a specific embodiment of the present invention, the correspondence may be a map data structure. Specifically, the correspondence between the unit position of the target display data and the data size includes a correspondence between a plurality of unit position values and a position data size, where the position data size is equal to a product between the unit position value and the unit data display size. Optionally, the cell location value is a positive integer, which may be used to indicate the location above the region of any data cell. In a specific embodiment, the correspondence between the unit position of the target display data and the data amount is Map<Int 1 ,Int 2 >Since the target display data is mesh data, in each mesh thereof2 data cells are shown, and the data pixel height of each grid is 200, so the cell data display amount of each data cell is 200/2-100, Int 2 =Int 1 100, it actually includes a plurality of mapping relationships of (0,0), (1,100), (2,200), (3,300), and so on.
Optionally, determining the target display position parameter of the target display data according to the data movement amount and the corresponding relationship between the unit position and the data amount may include:
calculating the sum of the currently displayed data quantity and the data movement quantity of the target display data to obtain a target position data quantity;
and inputting the data quantity of the target position into the corresponding relation between the unit position and the data quantity, and determining the corresponding unit position to obtain the target display position parameter of the target display data.
Therefore, by implementing the optional embodiment, the target display position parameter of the target display data can be determined according to the data movement amount and the corresponding relation between the unit position and the data amount, so that the target display position parameter can be displayed to an accurate position when a positioning sliding function is executed, and the user experience and the display effect are improved.
As an alternative embodiment, in the step, determining a unit data display amount of the data unit of the target display data includes:
determining the data display amount of at least one data unit of the target display data displayed on the target display interface;
and determining the unit data display amount of the data unit of the target display data according to the data display amount of at least one data unit.
Optionally, the data display amount of the first data unit of the target display data displayed on the target display interface may be determined to obtain the unit data display amount of the data unit of the target display data, or the data display amounts of a plurality of data units of the target display data displayed on the target display interface may be determined, and an average value of the data display amounts of the plurality of data units is calculated.
Preferably, the optional embodiment is used to solve a problem that may occur in an application scenario where the display data amount of the data unit is not fixed, for example, the data display height of each row of data of some list-type display data is not determined, in such a case, because the display data amount of the data unit is not fixed, the corresponding relationship between the unit position and the data amount cannot be determined, and determination of a subsequent data display position may be affected.
As an alternative embodiment, the target display position parameter includes a display position and a position deviation, and accordingly, in the step, determining the target display position parameter of the target display data according to the data movement amount and the corresponding relationship between the unit position and the data amount includes:
calculating a corresponding unit position value according to the data movement amount and the corresponding relation between the unit position and the data amount;
determining the unit position closest to the unit position value in the target display data as a display position;
determining corresponding display data volume according to the display position and the corresponding relation between the unit position and the data volume;
the difference between the amount of data movement and the amount of presentation data is determined as a positional deviation.
Optionally, subsequently, the display position and the position deviation may be input as a function parameter of the positioning sliding function to implement the positioning sliding display.
Taking the above embodiment as an example, the correspondence between the unit position of the target display data and the data amount is Map<Int 1 ,Int 2 >And Int 2 =Int 1 100, the data movement amount is 8200, the maximum interface display data amount of the target display interface is 1800, and at this time, the data movement amount 8200 is greater than 1800, and is judged to satisfy the data amount threshold condition, which may be according to Int 2 =Int 1 100 ═ 8200, the cell position value Int is calculated 1 At the end of the run-time period, 82,here, the Y coordinate value of the record just found to show the position 82 corresponds to the sliding distance that we need to slide, and the position deviation is itemfetmap [82 ]]If the data movement amount is 8210, and the cell position value is 82.1, the display position is determined to be 82, and the calculated display number is 8200, the position deviation is 8200-10, that is, the position slide display is realized by using the scoreltopositionwithoff offset (82, -10).
Therefore, by the optional embodiment, the display position and the position deviation can be calculated, so that the target display data can be displayed to a more accurate position by the subsequent positioning sliding function, and the user experience and the display effect are improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another data sliding displaying method according to an embodiment of the present invention. The method described in fig. 2 may be applied to a corresponding data sliding display device, such as a processing terminal, a processing device, or a processing server for performing display data processing, where the server may be a cloud server or a local server, and the embodiment of the present invention is not limited thereto. Specifically, as shown in fig. 2, the data slide display method may include the following operations:
201. and responding to the sliding operation aiming at the target display data triggered by the user on the target display interface, and determining the operation movement amount corresponding to the sliding operation.
Wherein the sliding operation is an operation of moving the sliding marker to the first position along the sliding region.
202. And determining the data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data.
203. And judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result.
204. And determining a data sliding display function and a function parameter according to the first judgment result.
205. And performing display operation on the target display data on a target display interface according to the data sliding display function and the function parameter.
In the embodiment of the present invention, the technical details of the relevant technical features in the steps 201-205 may refer to the detailed parameters of the steps 101-105 in the first embodiment, and the details are not repeated herein.
206. And determining the actual sliding quantity of the target display data corresponding to the display operation.
Optionally, the actual slippage of the target display data may be directly determined through a preset API interface or function, or may be determined by calculating a data difference between a display position of the target display data before the display operation is performed and a display position after the display operation is performed.
207. And determining a second position of the sliding marker in the sliding area according to the actual sliding amount and the area parameter of the sliding area.
Alternatively, the region parameter of the sliding region may be a maximum slidable distance of the sliding region.
Optionally, step 207 may include:
calculating a second ratio of the actual slippage to the total display data amount of the target display data;
calculating the product of the second ratio and the maximum slidable distance of the sliding area to obtain the corresponding sliding distance of the sliding marker;
and determining the initial position of the sliding marker in the sliding area, and calculating the sum of the initial position and the distance to be slid to obtain the second position of the sliding marker in the sliding area.
208. The sliding marker is adjusted from the first position to the second position.
One of the objectives of the embodiment of the present invention is to implement the sliding display method described in the first embodiment, because a step of estimating data parameters of predicted target display data may be adopted in some steps, as in the first embodiment, the unit data display amount of the data unit of the target display data is determined according to the data display amount of at least one data unit, so that the actual sliding amount of the finally implemented display operation has a deviation, and therefore, through the above steps, the position of the sliding marker is adjusted by the actual sliding amount in the reverse direction, and accurate display is achieved.
Therefore, by implementing the method described in the embodiment of the present invention, the second position of the sliding marker in the sliding region can be determined according to the actual sliding amount and the region parameter of the sliding region, so that the position of the sliding marker can be adjusted, the display position of the sliding marker is accurate, the execution of the subsequent sliding operation is facilitated, and the user experience and the display effect are improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data sliding display device according to an embodiment of the present invention. The apparatus described in fig. 3 may be applied to a corresponding data processing apparatus, such as a processing terminal, a processing device, or a processing server for performing display data processing, where the server may be a cloud server or a local server. As shown in fig. 3, the apparatus may include:
the sliding determining module 301 is configured to determine, in response to a sliding operation, triggered on the target display interface by the user, for the target display data, an operation movement amount corresponding to the sliding operation.
Optionally, the target display interface in the present invention may be a display screen or a projection display interface of various types of terminals, such as a computer, a mobile phone, or a tablet terminal.
Optionally, the manner in which the user triggers the sliding operation may be that the user directly performs touch triggering on a touch screen device corresponding to the target display interface, or may also perform triggering through other devices, such as a keyboard or a mouse, or a human-computer interaction device, or an image recognition device or a brain wave communication device for capturing the user operation, which is not limited in the present invention.
Optionally, the target display data may be a text, a picture, or a combination of the text and the picture, and may be data in a form of grid data or a form of list data, which is not limited in the present invention.
Optionally, the operation movement amount corresponding to the sliding operation may be used to indicate a movement length of the sliding operation, for example, a distance that a finger of the user slides on the target touch screen, or a distance that the user slides a specific sliding marker on a specific sliding area, for example, in some specific embodiments, the user may manipulate a slider on one side of the display interface to slide on the sliding bar to implement the sliding operation. Alternatively, the operation movement amount may be determined by a preset API interface or function, or may be determined by calculating a distance between the position of the sliding marker before the sliding operation is triggered and the position of the sliding marker after the sliding operation is executed.
And a movement determining module 302, configured to determine, according to the operation movement amount and the total display data amount of the target display data, a data movement amount corresponding to the target display data.
Optionally, the manner of determining, by the movement determining module 302, the data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data may specifically include:
calculating a first ratio of the operation movement amount and the operation maximum possible movement amount;
and calculating the product of the first ratio and the total display data amount of the target display data to obtain the data movement amount corresponding to the target display data.
Alternatively, the maximum possible operation moving amount may be used to indicate a maximum operation moving amount that the sliding operation of the user may perform, and may be a data amount or a pixel amount, for example, when the sliding operation is an operation in which the user slides on a specific sliding region for a specific sliding marker, the maximum possible operation moving amount may be a difference between a total length of the sliding region and a length of the sliding marker itself, for example, a difference between a maximum length of a sliding bar where the slider is located and a length of the slider itself. For another example, when the sliding operation is any sliding operation performed by the user on the target display interface, the maximum possible movement amount of the operation may be the maximum slidable distance of the target display interface, for example, the direction in which the user slides may be obtained, and the maximum intersection length of the straight line corresponding to the direction and the target display interface may be calculated to determine the maximum possible movement amount of the operation.
Optionally, both the data movement amount corresponding to the target display data and the total display data amount of the target display data may be a size amount of data, or a pixel amount of data, which may be determined through a preset API interface or function, or may be calculated through a data parameter of the target display data, for example, when the total display data amount of the target display data is the pixel amount of data, the following steps may be performed to determine:
determining a total data size amount of target display data and a unit data size amount of each data unit;
calculating the ratio of the total data size to the unit data size to obtain the number of the display units;
determining a unit pixel quantity of each data unit of the target display data;
and calculating the product of the number of the display units and the unit pixel quantity to obtain the total display data quantity of the target display data.
The condition determining module 303 is configured to determine whether the data movement amount satisfies a data amount threshold condition related to a maximum interface display data amount of the target display interface, so as to obtain a first determination result.
Optionally, the data amount threshold condition is used to define whether the data amount exceeds a data amount threshold that may cause the device to be stuck, and is proportional to the maximum display data amount of the interface of the target display interface. Optionally, the maximum interface display data amount of the target display interface may be a data unit amount or a data pixel amount. Optionally, when the maximum interface display data size of the target display interface is a data unit size, the maximum interface display data size may be determined through the following steps:
determining the maximum interface display pixel quantity of a target display interface;
determining a unit pixel quantity of each data unit of the target display data;
and calculating the ratio of the maximum display pixel quantity of the interface to the unit pixel quantity to obtain the maximum display data quantity of the interface of the target display interface.
Optionally, the data size threshold condition is that the data movement amount is greater than a product of the maximum interface display data size of the target display interface and a preset multiple. Alternatively, the preset multiple may be 1 or other positive integer, which may be determined by an operator through an experimental value or an empirical value, and adjusted according to the actual effect.
And the function determining module 304 is configured to determine a data sliding display function and a function parameter according to the first determination result.
Optionally, the data sliding display function may be a positioning sliding function or an offset sliding function, where the positioning sliding function operates according to a position to be slid to directly display the position, so that an intermediate display step may be effectively omitted, and data processing pressure of a display card or a memory of the device is reduced, and the offset sliding function is used to operate according to a data amount to be slid to display a sliding process, and is applicable to a case where a data movement amount is small, so as to improve a display effect and user experience.
And the display execution module 305 is configured to execute a display operation on the target display data on the target display interface according to the data sliding display function and the function parameter.
Optionally, the function parameter may be directly transferred to the data sliding display function, and the data sliding display function is executed to perform a display operation on the target display data on the target display interface.
Therefore, the device described in the embodiment of the present invention can determine whether the movement amount of the display data meets the data threshold condition, to determine whether the data amount of the display operation may exceed the processing capability of the device, and determine the sliding function to be used according to the determination result, to flexibly implement the sliding display of the data with better effect according to the data movement amount, to reduce the stutter and even the deadlock of the data display, and to improve the user experience and the display effect.
As an alternative embodiment, as shown in fig. 4, the function determination module 304 includes:
a first determining unit 3041, configured to determine, when the first determination result is yes, a target display position parameter of the target display data according to the data movement amount, determine the positioning sliding function as a data sliding function, and determine a function parameter according to the target display position parameter;
a second determining unit 3042, configured to determine the offset sliding function as the data sliding function and the data movement amount as the function parameter when the first determination result is no.
Optionally, the positioning sliding function in the present invention may be a scrolltotispositionwithoffset function or scrolltotposition function in a recycleview component, or a ListView. Preferably, when a scrolltopitionwithoffset function or a scrollToPosition function in a recycleview component is adopted, the data processing pressure of a display card or a memory of the device can be effectively reduced under the condition of large data movement amount, so that the condition that the device is stuck or stuck is reduced.
Optionally, the offset sliding function in the present invention may be a scrollBy function in a recycleview component, or a scrollBy function in a ListView component, and it should be noted that other programming languages or programming components can implement a function for sliding the presentation data according to the offset, and the function should also be considered to be included in the scope of the present invention.
Therefore, by implementing the optional embodiment, the data sliding display function and the function parameters can be determined according to the first judgment result, so that the display pressure of the equipment is reduced by adopting the positioning sliding function when the data movement amount is overlarge, or the sliding display of the data is normally performed by adopting the offset sliding function when the data movement amount is normal, the data sliding display with better effect is flexibly realized according to the data movement amount, the blockage of the data display is reduced, and the user experience and the display effect are improved.
As an alternative embodiment, a specific manner in which the first determining unit 3041 determines the target displaying position of the target displaying data according to the data moving amount includes:
determining the unit data display amount of the target display data;
determining the corresponding relation between the unit position of the target display data and the data volume according to the unit data display volume of the target display data;
and determining target display position parameters of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount.
Optionally, the unit data display amount of the target display data is a data display amount of one data unit, such as one line or one grid, of the target display data, which may be a data size amount or a data pixel amount.
Optionally, the data unit according to the present invention may be an area definition for distinguishing different data display areas for the object display data, and in some specific schemes, it may be an item (component) in the object display data.
Optionally, the correspondence between the unit position of the target presentation data and the data size is used to indicate different data sizes corresponding to different unit positions in the target presentation data, and the correspondence may be represented by a data structure used to represent a mapping relationship, such as a key value peer, for example, in a specific embodiment of the present invention, the correspondence may be a map data structure. Specifically, the correspondence between the unit position of the target display data and the data size includes a correspondence between a plurality of unit position values and a position data size, where the position data size is equal to a product between the unit position value and the unit data display size. Optionally, the cell location value is a positive integer, which may be used to indicate the location above the region of any data cell. In a specific embodiment, the correspondence between the unit position of the target display data and the data amount is Map<Int 1 ,Int 2 >Since the target display data is the mesh data, each mesh thereof displays 2 data units, and each mesh has a data pixel height of 200, the unit data display amount of each data unit is 200/2 ═ 100, Int 2 =Int 1 100, so it actually includes (0,0), (1,100), (2,200), (3,300), and so onAnd (4) mapping relation.
Optionally, determining the target display position parameter of the target display data according to the data movement amount and the corresponding relationship between the unit position and the data amount may include:
calculating the sum of the currently displayed data quantity and the data movement quantity of the target display data to obtain a target position data quantity;
and inputting the data quantity of the target position into the corresponding relation between the unit position and the data quantity, and determining the corresponding unit position to obtain the target display position parameter of the target display data.
Therefore, by implementing the optional embodiment, the target display position parameter of the target display data can be determined according to the data movement amount and the corresponding relation between the unit position and the data amount, so that the target display position parameter can be displayed to an accurate position when a positioning sliding function is executed, and the user experience and the display effect are improved.
As an alternative embodiment, the specific manner of determining the unit data display amount of the data unit of the target display data by the first determining unit 3041 includes:
determining the data display amount of at least one data unit of the target display data displayed on the target display interface;
and determining the unit data display amount of the data unit of the target display data according to the data display amount of at least one data unit.
Optionally, the data display amount of the first data unit of the target display data displayed on the target display interface may be determined to obtain the unit data display amount of the data unit of the target display data, or the data display amounts of a plurality of data units of the target display data displayed on the target display interface may be determined, and an average value of the data display amounts of the plurality of data units is calculated.
Preferably, the optional embodiment is used to solve a problem that may occur in an application scenario where the display data amount of the data unit is not fixed, for example, the data display height of each row of data of some list-type display data is not determined, in such a case, because the display data amount of the data unit is not fixed, the corresponding relationship between the unit position and the data amount cannot be determined, and determination of a subsequent data display position may be affected.
As an alternative embodiment, the target display position parameter includes a display position and a position deviation, and accordingly, the specific manner in which the first determining unit 3041 determines the target display position parameter of the target display data according to the data movement amount and the corresponding relationship between the unit position and the data amount includes:
calculating a corresponding unit position value according to the data movement amount and the corresponding relation between the unit position and the data amount;
determining the unit position closest to the unit position value in the target display data as a display position;
determining corresponding display data volume according to the display position and the corresponding relation between the unit position and the data volume;
the difference between the amount of data movement and the amount of presentation data is determined as a positional deviation.
Optionally, subsequently, the display position and the position deviation may be input as a function parameter of the positioning sliding function to implement the positioning sliding display.
Therefore, by the optional embodiment, the display position and the position deviation can be calculated, so that the target display data can be displayed to a more accurate position by the subsequent positioning sliding function, and the user experience and the display effect are improved.
As an alternative embodiment, the sliding operation is an operation of moving the sliding marker to the first position along the sliding area, as shown in fig. 4, the apparatus further comprises a position adjusting module 306 for performing the following steps:
determining the actual sliding quantity of target display data corresponding to the display operation;
determining a second position of the sliding marker in the sliding area according to the actual sliding amount and the area parameter of the sliding area;
the sliding marker is adjusted from the first position to the second position.
Optionally, the actual slippage of the target display data may be directly determined through a preset API interface or function, or may be determined by calculating a data difference between a display position of the target display data before the display operation is performed and a display position after the display operation is performed.
Alternatively, the region parameter of the sliding region may be a maximum slidable distance of the sliding region.
Optionally, the position adjusting module 306 determines a specific manner of the second position of the sliding marker in the sliding region according to the actual sliding amount and the region parameter of the sliding region, and the specific manner may include:
calculating a second ratio of the actual slippage to the total display data amount of the target display data;
calculating the product of the second ratio and the maximum slidable distance of the sliding area to obtain the corresponding sliding distance of the sliding marker;
and determining the initial position of the sliding marker in the sliding area, and calculating the sum of the initial position and the distance to be slid to obtain the second position of the sliding marker in the sliding area.
Therefore, according to the optional embodiment, the second position of the sliding marker in the sliding area can be determined according to the actual sliding amount and the area parameter of the sliding area, so that the position of the sliding marker can be adjusted, the display position of the sliding marker is accurate, the execution of subsequent sliding operation is facilitated, and the user experience and the display effect are improved.
Example four
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. As shown in fig. 4, the electronic device may include:
a memory 401 storing executable program code;
a processor 402 coupled with the memory 401;
the processor 402 calls the executable program code stored in the memory 401 to execute part or all of the steps of the data sliding display method disclosed in the first and second embodiments of the present invention.
The specific technical details for implementing the data sliding display when the electronic device executes the computer program are discussed in detail in the foregoing method steps, and therefore are not described in detail herein.
EXAMPLE five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions, and when the computer instructions are called, the computer storage medium is used for executing part or all of the steps in the data sliding display method disclosed in the first embodiment and the second embodiment of the invention.
EXAMPLE six
The embodiment of the invention discloses a computer program product which comprises a computer program/instruction, wherein the computer program/instruction realizes part or all steps of the data sliding display method disclosed in the first embodiment and the second embodiment of the invention when being executed by a processor.
While certain embodiments of the present disclosure have been described above, other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily have to be in the particular order shown or in sequential order to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus, device, and non-volatile computer-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the description of the method embodiments.
The apparatus, the device, the nonvolatile computer readable storage medium, and the method provided in the embodiments of the present specification correspond to each other, and therefore, the apparatus, the device, and the nonvolatile computer storage medium also have similar advantageous technical effects to the corresponding method.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should be noted that: the data sliding display method, apparatus, device, storage medium and program product disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; 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 (12)

1. A data sliding display method is characterized by comprising the following steps:
responding to a sliding operation aiming at target display data triggered by a user on a target display interface, and determining an operation movement amount corresponding to the sliding operation;
determining a data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data;
judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result;
determining a data sliding display function and a function parameter according to the first judgment result;
and performing display operation on the target display data on the target display interface according to the data sliding display function and the function parameter.
2. The data sliding display method according to claim 1, wherein the data amount threshold condition is that the data movement amount is greater than a product of a maximum interface display data amount of the target display interface and a preset multiple.
3. The data sliding display method according to claim 1, wherein the determining a data sliding display function and a function parameter according to the first determination result includes:
if the first judgment result is yes, determining a target display position parameter of the target display data according to the data movement amount, determining a positioning sliding function as a data sliding function, and determining a function parameter according to the target display position parameter;
and if the first judgment result is negative, determining the offset sliding function as a data sliding function and determining the data movement amount as a function parameter.
4. The data sliding display method according to claim 3, wherein the determining the target display position of the target display data according to the data movement amount includes:
determining the unit data display amount of the target display data;
determining the corresponding relation between the unit position of the target display data and the data volume according to the unit data display volume of the target display data;
and determining a target display position parameter of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount.
5. The data sliding display method of claim 4, wherein the determining of the unit data display amount of the data unit of the target display data comprises:
determining a data display amount of at least one data unit of the target display data displayed by the target display interface;
and determining the unit data display amount of the data unit of the target display data according to the data display amount of the at least one data unit.
6. The data sliding display method according to claim 4, wherein the target display position parameters include a display position and a position deviation; determining a target display position parameter of the target display data according to the data movement amount and the corresponding relation between the unit position and the data amount, wherein the determining comprises the following steps:
calculating a corresponding unit position value according to the data movement amount and the corresponding relation between the unit position and the data amount;
determining a unit position in the target display data that is closest to the unit position value as the display position;
determining corresponding display data volume according to the display position and the corresponding relation between the unit position and the data volume;
and determining the difference between the data movement amount and the display data amount as the position deviation.
7. The sliding display method of data according to claim 1, wherein the sliding operation is an operation of moving a sliding marker to a first position along a sliding area; the method further comprises the following steps:
determining an actual sliding amount of the target display data corresponding to the display operation;
determining a second position of the sliding marker in the sliding area according to the actual sliding amount and the area parameter of the sliding area;
adjusting the sliding marker from the first position to the second position.
8. The method for data sliding presentation according to any one of claims 3-7, wherein the positioning sliding function is a scrolltopitionWithOffset function or scrollToPosition function, and/or the offset sliding function is a scrollBy function.
9. A data slide show apparatus, the apparatus comprising:
the sliding determining module is used for responding to sliding operation aiming at target display data triggered by a user on a target display interface and determining operation moving amount corresponding to the sliding operation;
the movement determining module is used for determining a data movement amount corresponding to the target display data according to the operation movement amount and the total display data amount of the target display data;
the condition judgment module is used for judging whether the data movement amount meets a data amount threshold condition related to the maximum interface display data amount of the target display interface to obtain a first judgment result;
the function determining module is used for determining a data sliding display function and function parameters according to the first judgment result;
and the display execution module is used for executing display operation on the target display data on the target display interface according to the data sliding display function and the function parameter.
10. An electronic device, characterized in that the electronic device comprises:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the data sliding display method according to any one of claims 1-8.
11. A computer storage medium storing computer instructions which, when invoked, perform a data slide presentation method according to any one of claims 1 to 8.
12. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the data slide show method according to any one of claims 1-8.
CN202210422734.3A 2022-04-21 2022-04-21 Data sliding display method and device and electronic equipment Pending CN114879892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210422734.3A CN114879892A (en) 2022-04-21 2022-04-21 Data sliding display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210422734.3A CN114879892A (en) 2022-04-21 2022-04-21 Data sliding display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114879892A true CN114879892A (en) 2022-08-09

Family

ID=82672550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210422734.3A Pending CN114879892A (en) 2022-04-21 2022-04-21 Data sliding display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114879892A (en)

Similar Documents

Publication Publication Date Title
CN109164964B (en) Content sharing method and device, terminal and storage medium
CN108228050B (en) Picture scaling method and device and electronic equipment
US11132101B2 (en) Icon moving method, terminal and storage medium
WO2019041779A1 (en) Terminal interface switching, moving and gesture processing method and device and terminal
US20170221242A1 (en) Automatic overdraw reduction before rendering
CN110442267B (en) Touch operation response method and device, mobile terminal and storage medium
CN107831965B (en) Information display method and device
TW201918865A (en) Page information display method and device and client
CN112416236A (en) Gesture packaging and interaction method and device based on web page and storage medium
CN107766703B (en) Watermark adding processing method and device and client
CN114115643A (en) Component display method and device, electronic equipment and readable medium
WO2018176843A1 (en) Method and apparatus for searching for focus across boundary, intelligent device and readable storage medium
CN109582424B (en) Interface closing method, system and related device
CN114879892A (en) Data sliding display method and device and electronic equipment
CN115061618A (en) Method and device for displaying list data in sliding mode and electronic equipment
WO2019024507A1 (en) Touch control method and device, and terminal
CN112861042B (en) Information display method, device, equipment and readable medium
CN110262732B (en) Picture moving method and device
CN111782381A (en) Task management method and device, mobile terminal and storage medium
CN111813408A (en) View display processing method and device, terminal equipment and storage medium
EP4060470A1 (en) Display method and device, and computer readable storage medium
KR20130141259A (en) Method for processing executing image by separating screen and recording-medium recorded program thereof
CN116028697B (en) Page rendering method and device, storage medium and electronic equipment
CN114296585A (en) Interface management method, device, equipment and medium
CN113407029B (en) Page object state information determining method, device, equipment and readable medium

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