CN113655926B - Display control method, device, equipment and storage medium - Google Patents
Display control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113655926B CN113655926B CN202110955190.2A CN202110955190A CN113655926B CN 113655926 B CN113655926 B CN 113655926B CN 202110955190 A CN202110955190 A CN 202110955190A CN 113655926 B CN113655926 B CN 113655926B
- Authority
- CN
- China
- Prior art keywords
- view
- sliding
- page
- list
- list view
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000005096 rolling process Methods 0.000 claims description 26
- 238000005516 engineering process Methods 0.000 abstract description 13
- 238000012545 processing Methods 0.000 abstract description 11
- 230000003993 interaction Effects 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 32
- 238000010586 diagram Methods 0.000 description 17
- 238000004590 computer program Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 238000013473 artificial intelligence Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000007704 transition Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 2
- 238000007670 refining Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000003924 mental process Effects 0.000 description 1
- 230000003278 mimic effect Effects 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0485—Scrolling or panning
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides a display control method, a device, equipment and a storage medium, relates to the technical field of data processing, and particularly relates to the technical field of man-machine interaction. The specific implementation scheme is as follows: determining state information of a head view in the scroll view; the scrolling view also comprises a list view; acquiring a page sliding direction and a page sliding position; and performing sliding control on the list view or the scrolling view according to the state information, the page sliding direction and the page sliding position. The technology provides a new idea for page display control, and improves convenience and universality of display control.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a human-computer interaction technology.
Background
The scroll view means a window that can be slid for providing a scroll operation when information is too much to be displayed on one screen, and performing display of hidden door contents in response to the slide operation.
When a paginated list includes at least one list and a common header, content presentation can be performed by setting a header view for displaying the common header and a list view for displaying list contents in a scroll view, and by alternate sliding of the views.
Disclosure of Invention
The present disclosure provides a display control method, apparatus, device, and storage medium.
According to an aspect of the present disclosure, there is provided a display control method including:
determining state information of a head view in the scroll view; the scrolling view also comprises a list view;
acquiring a page sliding direction and a page sliding position;
and performing sliding control on the list view or the scrolling view according to the state information, the page sliding direction and the page sliding position.
According to another aspect of the present disclosure, there is also provided a display control apparatus including:
a state information determining module for determining state information of a head view in the scroll view; the scrolling view also comprises a list view;
the page sliding direction acquisition module is used for acquiring the page sliding direction and the page sliding position;
and the sliding control module is used for carrying out sliding control on the list view or the rolling view according to the state information, the page sliding direction and the page sliding position.
According to another aspect of the present disclosure, there is also provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the display control methods provided by the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute any one of the display control methods provided by the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements any one of the display control methods provided by the embodiments of the present disclosure.
According to the technology disclosed by the disclosure, a new idea is provided for page display control.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1A is a flow chart of a display control method provided by an embodiment of the present disclosure;
FIG. 1B is a schematic diagram of a display page provided by an embodiment of the present disclosure;
FIG. 2A is a flow chart of another display control method provided by an embodiment of the present disclosure;
FIG. 2B is a schematic diagram of a display page sliding process provided by an embodiment of the present disclosure;
FIG. 2C is a schematic diagram of another display page sliding process provided by embodiments of the present disclosure;
FIG. 2D is a schematic diagram of a display page provided by an embodiment of the present disclosure;
FIG. 2E is a schematic diagram of another display page provided by an embodiment of the present disclosure;
FIG. 2F is a schematic diagram of another display page provided by an embodiment of the present disclosure;
FIG. 2G is a schematic diagram of another display page provided by an embodiment of the present disclosure;
FIG. 2H is a schematic diagram of another display page sliding process provided by embodiments of the present disclosure;
FIG. 2I is a schematic diagram of another display page sliding process provided by embodiments of the present disclosure;
FIG. 3 is a flow chart of another display control method provided by an embodiment of the present disclosure;
fig. 4 is a block diagram of a display control apparatus provided in an embodiment of the present disclosure;
fig. 5 is a block diagram of an electronic device for implementing a display control method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The display control method and the display control device provided by the disclosure are suitable for scenes in which content is displayed for scrolling views including a head view and a list view. The display control methods provided by the embodiments of the present disclosure may be executed by a display control apparatus, where the apparatus may be implemented by software and/or hardware and specifically configured in an electronic device.
For ease of understanding, the display control methods provided by the present disclosure will be described in detail first.
Referring to fig. 1A, a display control method includes:
s101, determining state information of a head view in a scrolling view; wherein the scroll view also includes a list view.
See the schematic of the display page shown in fig. 1B. The display page is displayed through a display screen (corresponding to a black solid rectangular frame in the drawing, it should be noted that the black solid rectangular frame in the schematic diagram of the subsequent display page or the schematic diagram of the sliding process of the display page also represents the display screen, and will not be described in detail later), and the display page comprises a scrolling view for sliding display page contents. Wherein the scrolling view includes a head view for displaying head content; the scroll view also includes a list view for presenting list content. The list view may be provided with at least one sub-list view in parallel, and the sub-list view may be switched by sliding left and right. The slideable content may be scroll-presented in full-size by a slide up and down operation (the arrow shown in the figure indicates the direction of the slide) by the operator.
It should be noted that, when the list view is provided with at least two sub-list views, the list view related in the disclosure is the currently displayed sub-list view. For ease of understanding, the present disclosure is described by way of example with one list view disposed in a scroll view, and should not be construed as limiting the present disclosure.
Alternatively, the head view may slide with the scrolling view and the list view may slide with the head view. When the head view hovers over the presentation, the list view may slide itself to present hidden content in the slidable content.
Wherein the state information of the head view may include at least one of a head state, an intermediate state, and a bottom state for characterizing a current location of the view.
For example, the status information of the head view may be directly acquired; or, acquiring state reference information of the head view, and determining the state information of the head view according to the state reference information.
In an alternative embodiment, the state reference information may include a sliding position of the head view, and the corresponding determination of the state information of the head view in the scroll view may be: acquiring a sliding position of a head view; status information of the head view is determined according to the sliding position of the head view.
Wherein the sliding position of the head view may be determined by the operating system invoking the setup interface.
For example, if the sliding position of the head view satisfies the head state condition, determining that the head view is in the head state; if the sliding position of the head view meets the bottom state condition, determining that the head view is in a bottom state; if the sliding position of the head view meets the intermediate state condition, determining that the head view is in the intermediate state. The head state condition, the bottom state condition and the intermediate state condition can be set by a technician according to experience values or can be determined through a large number of experimental adjustment, and only the condition that the state conditions are not overlapped is ensured.
Specifically, if the sliding position of the head view is not smaller than the head threshold of the scrolling view, determining that the head view is in a head state; if the sliding position of the head view is not greater than the bottom threshold value of the scrolling view, determining that the head view is in a bottom state; if the head view is greater than the bottom threshold of the scroll view and less than the head threshold of the scroll view, then the head view is determined to be in an intermediate state. When the head threshold of the scrolling view slides up and down (namely slides along the content display direction), the maximum coordinate value of the sliding position of the scrolling view; the bottom threshold of the scroll view is the minimum coordinate value of the sliding position of the scroll view when sliding up and down.
It can be understood that the determination of the state information of the head view is performed by acquiring the sliding position of the head view, so that the state information determination mechanism of the head view is perfected. In addition, the existing operation system is not required to be changed, the sliding position acquisition function interface is directly multiplexed, and convenience in the display control process is improved.
S102, acquiring a page sliding direction and a page sliding position.
The page sliding direction is used for representing the operation direction when the operation party slides and displays the page.
By way of example, the speed acquisition interface may be invoked to acquire a sliding speed, and characterize the page sliding direction according to the positive or negative of the sliding speed.
Wherein the page sliding direction includes an upward sliding and a downward sliding. The upward sliding is the sliding along the content display direction and the direction close to the head view; the downward sliding is the sliding along the content display direction and away from the head view direction.
The page sliding position is used for representing the relative position relation between the display page and the initial sliding position. The page sliding position may include position relation data of an initial sliding position of the list view relative to the list view, which is used for representing a change condition of the list view relative to an initial sliding position of the list view, and/or position relation data of an initial sliding position of the scroll view relative to the scroll view, which is used for representing a change condition of the scroll view relative to an initial sliding position of the scroll view. Wherein the initial sliding position of the list view and the initial sliding position of the scroll view may be the same or different. For ease of calculation, the initial sliding positions of both are usually set to (0, 0).
S103, performing sliding control on the list view or the scrolling view according to the state information, the page sliding direction and the page sliding position.
Optionally, the sliding control on the list view or the scroll view may include selecting a target view from the list view and the scroll view, and performing the sliding control on the target view.
Optionally, the sliding control on the list view or the scroll view may include determining a sliding start timing or a sliding end timing of the list view or the scroll view.
Illustratively, according to the state information, the page sliding direction and the page sliding position, selecting a target view from the list view and the scroll view, and performing sliding control on the selected target view to prohibit sliding of the non-target view.
In a specific implementation manner, the target view corresponding to the state information, the page sliding direction and the page sliding position can be determined based on a preset view matching relationship. The view matching relationship can be set by a technician according to the needs or experience values or can be determined through a plurality of experimental adjustment.
Illustratively, the sliding position of the reset list view or the scroll view is controlled according to the state information, the page sliding direction, and the page sliding position, thereby determining the sliding termination timing.
In a specific implementation manner, the sliding termination time corresponding to the state information, the page sliding direction and the page sliding position may be determined based on a preset sliding termination time matching relationship. The sliding termination timing matching relationship can be set by a technician according to the needs or experience values or can be determined through a large number of experimental adjustments.
According to the embodiment of the disclosure, the state information of the head view, the page sliding direction and the page sliding position are introduced to perform sliding control on the list view or the rolling view, so that sliding display of page contents is realized, the state determination of the list view is not needed, and a new idea is provided for display control. In addition, the state determination process of the list view is complicated, so that the state determination process of the list view is not required to be carried out, and the operation amount of the display control process is simplified, so that the convenience of the display control process is improved. Meanwhile, the technical scheme disclosed by the invention is also suitable for the situation that a plurality of parallel list views exist, different list views are subjected to display control in the same mode, other redundant operations are not required when the list views are switched, and the display control process of each list view is not affected, so that the display control method disclosed by the invention has more universality.
Based on the technical schemes, the present disclosure also provides an alternative embodiment. In this alternative embodiment, the process of sliding control of the list view or scroll view is optimized and improved to perfect the sliding control mechanism of the list view or scroll view.
It should be noted that, in the embodiments of the present disclosure, details are not described, and reference may be made to the descriptions of the foregoing embodiments, which are not described herein.
Referring to fig. 2A, a display control method includes:
s201, determining state information of a head view in a scrolling view; wherein the scroll view also includes a list view.
S202, acquiring a page sliding direction and a page sliding position.
S203, selecting a target view from the list view and the scroll view according to the state information, the page sliding direction and the page sliding position, controlling the target view to slide according to the page sliding direction, and prohibiting the non-target view from sliding.
Optionally, a target view corresponding to the state information, the page sliding direction and the page sliding position can be determined from the list view and the head view based on a preset view matching relationship; and controlling target views in the list view and the head view to slide according to the page sliding direction, and prohibiting non-target views in the list view and the head view from sliding. The view matching relationship can be set by a technician according to the needs or experience values or can be determined through a plurality of experimental adjustment.
In a specific implementation manner, if the state information is in a bottom state, the sliding position of the list view is not lower than the bottom threshold of the list view, and the page sliding direction is sliding upwards, the scrolling view is controlled to slide upwards, and the list view is forbidden to slide.
Referring to the schematic diagram of the sliding process of the display page shown in fig. 2B, if the head view is in the bottom state, the sliding position of the list view is not lower than the bottom threshold value (generally equal to the bottom threshold value) of the list view, which indicates that there is still an upward sliding space of the head content in the head view, at this time, if sliding upward, the scrolling view may be controlled to slide upward, so as to drive the head view and the list view to slide upward in association, and the list view is prohibited from sliding upward independently, in this process, the head view transitions from the bottom state to the intermediate state; the sliding position of the scroll view changes and the sliding position of the list view does not change.
In another specific implementation, if the state information is a bottom state, the sliding position of the list view is not lower than the bottom threshold of the list view, and the page sliding direction is a downward sliding, the list view is controlled to slide downward, the head content in the head view hovers over a preset hovering area, and scrolling view sliding is prohibited.
Referring to the schematic diagram of the display page sliding process shown in fig. 2C, when the head view is in the bottom state and the sliding position of the list view is not lower than the bottom threshold value (generally equal to the bottom threshold value) of the list view, it indicates that there is no downward sliding space of the head content in the head view, and at this time, if the scrolling view responds to the sliding, the head content overflows downward, so that the head content in the head view can be controlled to hover in a preset hover region in the head view, and the list view is controlled to slide downward, so that the scrolling view is prohibited from sliding. In this process, the head view is always in the bottom state, the sliding position of the scroll view is unchanged, and the sliding position of the list view is changed.
In another specific implementation, if the state information is in a bottom state and the sliding position of the list view is lower than the bottom threshold of the list view, the list view is controlled to slide according to the page sliding direction, and the scrolling view is prohibited from sliding.
Referring to a schematic view of a display page shown in fig. 2D, when the head view is in a bottom state and the sliding position of the list view is lower than the bottom threshold of the list view, it indicates that the list view has left the initial sliding position, and at this time, if the scrolling view is controlled to slide, the situation that the head content and the list content slide in an overlapping manner will occur, so as to affect the viewing experience of the user, therefore, the scrolling view can be controlled to slide up or down according to the page sliding direction, and the scrolling view is prohibited from sliding, so that the situation that the list view and the scrolling view slide together is avoided. At this time, the sliding position of the scroll view is unchanged, and the sliding position of the list view is changed.
In another specific implementation, if the state information is a head state, the sliding position of the list view is not higher than the bottom threshold of the list view, and the page sliding direction is sliding downward, the scrolling view is controlled to slide downward, and the list view is prohibited from sliding.
Referring to a schematic view of a display page shown in fig. 2E, if the head view is in a head state and the sliding position of the list view is not higher than the bottom threshold of the list view, it indicates that there is a downward sliding space of the head content in the head view, and at this time, if sliding downward, the scroll view may be controlled to slide downward, so as to drive the head view and the list view to slide downward in association, and prohibit the list view from sliding downward independently. In the process, the head view transitions from the head state to an intermediate state; the sliding position of the scroll view changes and the sliding position of the list view does not change.
In another alternative embodiment, if the status information is a head status, the sliding position of the list view is not higher than the bottom threshold of the list view, and the page sliding direction is sliding upwards, the list view is controlled to slide upwards, the head content in the head view hovers over the preset hovering area, and scrolling view sliding is prohibited.
Referring to a schematic view of a display page in fig. 2F, if the head view is in the head state, the sliding position of the list view is not higher than the bottom threshold value (generally equal to the bottom threshold value) of the list view, which indicates that there is no upward sliding space of the head content in the scroll view, and if the scroll view responds to the sliding, the head content overflows upward, at this time, the head content in the head view is controlled to hover over a preset hover area in the head view, and the list view is controlled to slide upward, so that the scroll is prohibited from attempting to slide. In this process, the head view is always in the head state, the sliding position of the scroll view is unchanged, and the sliding position of the list view is changed.
In yet another specific implementation, if the status information is a head status and the sliding position of the list view is higher than the bottom threshold of the list view, the list view is controlled to slide according to the page sliding direction, and the scrolling view is prohibited from sliding.
Referring to a schematic view of a display page shown in fig. 2G, when the head view is in the head state and the sliding position of the list view is higher than the bottom threshold of the list view, it indicates that the list view has left the initial sliding position, and at this time, if the scrolling view is controlled to slide, the situation that the head content and the list content slide in an overlapping manner will occur, which affects the viewing experience of the user. Therefore, the list view can be controlled to slide upwards or downwards according to the page sliding direction, and the scrolling view is forbidden to slide, so that the situation that the list view and the scrolling view slide together is avoided. At this time, the sliding position of the scroll view is unchanged, and the sliding position of the list view is changed.
In yet another specific implementation, if the state information is an intermediate state, the scrolling view is controlled to slide in the page sliding direction and the list view is prohibited from sliding.
Referring to a schematic view of a display page sliding process shown in fig. 2H, when the head view is in an intermediate state, it indicates that there is still an upward sliding space of the head content in the head view, and at this time, if the list view is controlled to slide, a situation that the head content and the list content slide in an overlapping manner will occur, which affects the viewing experience of the user. Therefore, the scrolling view can be controlled to slide upwards in response to the page sliding direction, so that the head view and the list view are driven to slide upwards in an associated mode, and the list view is prevented from sliding autonomously. In the process, the head view transitions from the intermediate state to the head state; the sliding position of the scroll view changes and the sliding position of the list view does not change.
Referring to a schematic view of a display page sliding process shown in fig. 2I, when the head view is in an intermediate state, it indicates that there is still a downward sliding space of the head content in the head view, and at this time, if the list view is controlled to slide, a situation that the head content and the list content slide in an overlapping manner will occur, which affects the viewing experience of the user. Therefore, the scrolling view can be controlled to slide downwards in response to the page sliding direction, so that the head view and the list view are driven to slide downwards in an associated mode, and the list view is prevented from sliding autonomously. In the process, the head view transitions from the intermediate state to the bottom state; the sliding position of the scroll view changes and the sliding position of the list view does not change.
It can be understood that under the condition of different state information, page sliding directions and sliding positions of the list views, the above technical schemes select different target views from the list views and the scroll views, enrich and perfect selection mechanisms of the target views, realize orderly alternate control of the list views and the scroll views, avoid the situation that head contents and the list contents are overlapped and scrolled, ensure that the head contents of the head views can naturally slide up and down along with the list contents, and improve the use experience of users.
According to the method and the device, sliding control operation on the list view or the rolling view is refined into selection of the target view from the list view and the rolling view according to the state information, the page sliding direction and the page sliding position, and further the target view is controlled to slide according to the page sliding direction, and non-target view sliding is forbidden, so that dimensions are selected from the views, and display control on a page display process is achieved.
Based on the above technical solutions, the present disclosure further provides an optional embodiment, in which the sliding position of the list view or the sliding position of the scroll view in the sliding display process is reset, so as to avoid occurrence of a sliding out-of-bounds condition.
Referring to fig. 3, a display control method includes:
s301, determining state information of a head view in a scrolling view; wherein the scroll view also includes a list view.
S302, acquiring a page sliding direction and a page sliding position.
S303, controlling the sliding position of the reset list view or the sliding position of the scroll view according to the state information, the page sliding direction and the page sliding position.
Optionally, controlling the sliding position of the reset list view according to the status information, the page sliding direction and the page sliding position may include: and if the target view is a list view, controlling to reset the sliding position of the rolling view to the edge sliding position corresponding to the page sliding direction according to the sliding position or the page sliding direction of the list view.
In a specific implementation, if the sliding position of the list view is greater than the bottom threshold of the list view or the page sliding direction is sliding upwards in the state that the state information is the head state, the sliding position of the scroll view is reset to the head threshold of the scroll view.
When the head view is in the head state, if the sliding position of the list view is greater than the bottom threshold value of the list view, the list view is indicated to slide down, and at this time, if the scrolling view is controlled to slide, the situation that the head content and the list content slide in an aliasing manner will occur, so that the viewing experience of a user is affected. Therefore, it is necessary to achieve the purpose of prohibiting the scroll view from sliding up by controlling the sliding position of the scroll view to be reset to the head threshold of the scroll view.
For example, if the initial sliding position of the scroll view is (x, y_bottom), the maximum sliding position of the scroll view is (x, y_top); the bottom threshold of the corresponding scroll view is y_bottom, and the head threshold of the scroll view is y_top (i.e., y_bottom+h). For example, x may be 0, y_bottom may be 0, and y_top may be h. If the initial slide position of the list view is (X, Y_bottom). For example, X may be 0 and Y_bottom may be 0.
If the sliding position current_y > y_bottom of the list view, the sliding position contentOffset of the scroll view is reset to (x, y_top). Since the present disclosure relates to only up-and-down sliding, only the y coordinate in the sliding position (x, y) of the scroll view is reset, and the x coordinate is not reset.
When the head view is in the head state, at this time, no upward sliding space of the head content exists in the scrolling view, and if the page sliding direction is upward sliding, the head content will overflow upward. Therefore, it is necessary to achieve the purpose of prohibiting the scroll view from sliding up by controlling the sliding position of the scroll view to be reset to the head threshold of the scroll view.
Continuing the previous example, the sliding direction is characterized by the positive and negative of the sliding speed of the operator, and v <0 is defined as sliding up, v >0 is sliding down. If v <0, the sliding position contentOffset of the scroll view is reset to (x, y_top).
In another specific implementation, if the sliding position of the list view is smaller than the bottom threshold or the page sliding direction is sliding downward in the state that the state information is in the bottom state, the sliding position of the scroll view is reset to the bottom threshold of the scroll view.
When the head view is in the bottom state, if the sliding position of the list view is smaller than the bottom threshold value, the list view is indicated to slide down, and at this time, if the scrolling view is controlled to slide, the situation that the head content and the list content slide in an aliasing manner will occur, so that the viewing experience of the user is affected. Therefore, the purpose of prohibiting the scroll view from sliding down needs to be achieved by controlling the sliding position of the scroll view to be reset to the bottom threshold of the scroll view.
Continuing the previous example, if the sliding position current_y < y_bottom of the list view, the sliding position contentOffset of the scroll view is reset to (x, y_bottom).
When the head view is in the bottom state and no downward sliding control of the head content exists in the scrolling view, if the page sliding direction is downward sliding, the head content will overflow downward. Therefore, the purpose of prohibiting the scroll view from sliding down needs to be achieved by controlling the sliding position of the scroll view to be reset to the bottom threshold of the scroll view.
Continuing with the previous example, if v >0, the sliding position contentOffset of the scroll view is reset to (x, y_bottom).
Or alternatively, controlling the sliding position of the reset list view according to the status information, the page sliding direction and the page sliding position may include: and if the page slides to the edge area of the rolling view, controlling the sliding position of the rolling view to be reset to the edge sliding position corresponding to the page sliding direction according to the sliding position of the rolling view.
Continuing the previous example, if y.gtoreq.y_top of the sliding position contentOffset of the scroll view is in the head state, the sliding position contentOffset of the scroll view is reset to (x, y_top). If y of the sliding position contentOffset of the scroll view is less than or equal to y_bottom, the head view is in a bottom state, and the sliding position contentOffset of the scroll view is reset to (x, y_bottom).
It can be understood that by refining the reset operation of the sliding position of the scrolling view under different conditions, the control mechanism of the sliding position of the scrolling view is perfected and enriched, and the situation that the content in the head view and the list view are in aliasing sliding is avoided, so that the head content in the head view can naturally slide up and down along with the list view, hover is achieved when the edge area is reached, and the use experience of a user is improved.
Optionally, controlling the sliding position of the reset list view according to the status information, the page sliding direction and the page sliding position may include: and if the state information is in the bottom state, controlling to reset the sliding position of the list view to the initial sliding position of the list view according to the sliding position of the list view and the page sliding direction.
In a specific implementation manner, if the sliding position of the list view is not less than the bottom threshold value and the page sliding direction is sliding upwards in the state that the state information is in the bottom state, the sliding position of the list view is reset to the initial sliding position of the list view.
In the head view in the bottom state, indicating that there is no downward sliding space for the head content in the head view, thus prohibiting the scrolling view from responding to the downward sliding and responding to the upward sliding; if the sliding position of the list view is greater than the bottom threshold, indicating that the list view has been slid up; in order to avoid the situation that the head content and the list content slide in an overlapping way, the watching experience of a user is affected, and when the page sliding direction is upward sliding, the sliding position of the list view is reset to the initial sliding position of the list view, so that the aim of prohibiting the list view from sliding upwards is fulfilled.
Continuing the previous example, if the sliding position current_y of the list view is greater than or equal to y_bottom, and the operator sliding speed v <0, the sliding position sub_contentoffset of the list view is reset to (X, y_bottom). Since the present disclosure relates to only up-and-down sliding, only the Y coordinate in the sliding position (X, Y) of the list view is reset, and the X coordinate is not reset.
Or alternatively, controlling the sliding position of the reset list view according to the status information, the page sliding direction and the page sliding position may include: and if the state information is in the intermediate state, resetting the sliding position of the list view to the initial sliding position of the list view.
If the head view is in the middle state, it indicates that there are an upward sliding space and a downward sliding space of the head content in the head view, and at this time, if the list view is controlled to slide, the situation that the head content and the list content slide in an aliasing manner will occur, which affects the viewing experience of the user, and the sliding position of the list view is reset to the initial sliding position of the list view, so as to achieve the purpose of prohibiting the list view from sliding upwards.
Continuing the previous example, if the head view is in the intermediate state, i.e. the y-coordinate contentoffset_y in the sliding position contentOffset of the scroll view, the following condition is satisfied: y_bottom < contentoffset_y < y_top, the slide position sub_contentoffset of the list view is reset to (X, y_bottom).
It can be understood that by refining the reset operation of the sliding position of the list view under different conditions, the control mechanism of the sliding position of the list view is perfected and enriched, and the situation that the head view and the content in the list view slide in an aliasing manner is avoided, so that the head content in the head view can naturally slide up and down along with the list view and hover when reaching an edge area, and the use experience of a user is improved.
According to the embodiment of the disclosure, the sliding control operation on the list view or the rolling view is refined into the control of resetting the sliding position of the list view or the sliding position of the rolling view according to the state information, the page sliding direction and the page sliding position, so that the dimension is controlled from the view sliding position, the display control on the page display process is realized, the single sliding control on the list view and the rolling view is facilitated, and the occurrence of the head content in the head view and the list content aliasing sliding of the list view is avoided, so that poor use experience is brought to a user.
As an implementation of the above display control methods, the present disclosure further provides an alternative embodiment of an execution apparatus that implements the above display control methods. Referring to fig. 4, a display control apparatus 400 includes: a status information determination module 401, a page swipe direction acquisition module 402, and a swipe control module 403. Wherein,
a state information determining module 401 for determining state information of a head view in the scroll view; wherein, the scroll view also comprises a list view;
a page sliding direction obtaining module 402, configured to obtain a page sliding direction and a page sliding position;
And a sliding control module 403, configured to perform sliding control on the list view or the scroll view according to the status information, the page sliding direction, and the page sliding position.
According to the embodiment of the disclosure, the state information of the head view, the page sliding direction and the page sliding position are introduced to perform sliding control on the list view or the rolling view, so that sliding display of page contents is realized, the state determination of the list view is not needed, and a new idea is provided for display control. In addition, the state determination process of the list view is complicated, so that the state determination process of the list view is not required to be carried out, and the operation amount of the display control process is simplified, so that the convenience of the display control process is improved. Meanwhile, the technical scheme disclosed by the invention is also suitable for the situation that a plurality of parallel list views exist, different list views are subjected to display control in the same mode, other redundant operations are not required when the list views are switched, and the display control process of each list view is not affected, so that the display control method disclosed by the invention has more universality.
In an alternative embodiment, the sliding control module 403 includes:
a view sliding control unit, configured to select a target view from the list view and the head view according to the state information and the page sliding direction, control the target view to slide according to the page sliding direction, and prohibit non-target view from sliding; and/or the number of the groups of groups,
and a sliding position resetting unit for controlling and resetting the sliding position of the list view or the sliding position of the scroll view according to the state information, the page sliding direction and the page sliding position.
In an alternative embodiment, the view sliding control unit includes:
the first sliding control unit is used for controlling the scrolling view to slide upwards and prohibiting the list view from sliding if the state information is in a bottom state, the sliding position of the list view is not lower than a bottom threshold value of the list view, and the page sliding direction is sliding upwards;
the second sliding control unit is used for controlling the list view to slide downwards if the state information is in a bottom state, the sliding position of the list view is not lower than the bottom threshold value of the list view, the page sliding direction is downwards sliding, the head content in the head view is hovered in a preset hovering area, and the scrolling view is forbidden to slide;
And the third sliding control unit is used for controlling the list view to slide according to the page sliding direction and prohibiting the scrolling view from sliding if the state information is in the bottom state and the sliding position of the list view is lower than the bottom threshold value of the list view.
In an alternative embodiment, the view sliding control unit includes:
a fourth sliding control unit, configured to control, if the state information is a head state, the sliding position of the list view is not higher than a bottom threshold of the list view and the page sliding direction is sliding downward, the scrolling view to slide downward and prohibit the list view from sliding;
a fifth sliding control unit, configured to control, if the state information is a head state, the sliding position of the list view is not higher than a bottom threshold of the list view, and the page sliding direction is an upward sliding, to slide the list view upward, wherein the head content in the head view hovers over a preset hovering area, and the scrolling view is prohibited from sliding;
and a sixth sliding control unit, configured to control, if the state information is a head state and the sliding position of the list view is higher than the bottom threshold of the list view, to slide the list view according to the page sliding direction, and to prohibit the sliding of the scroll view.
In an alternative embodiment, the view sliding control unit includes:
and a seventh sliding control unit, configured to control the scrolling view to slide according to the page sliding direction and prohibit the list view from sliding if the state information is in the intermediate state.
In an alternative embodiment, the sliding position resetting unit includes:
the first scrolling reset subunit is configured to, if the target view is a list view, control resetting the sliding position of the scrolling view to an edge sliding position corresponding to the page sliding direction according to the sliding position of the list view or the page sliding direction; or,
and the second rolling reset subunit is used for controlling the sliding position of the rolling view to be reset to the edge sliding position corresponding to the page sliding direction according to the sliding position of the rolling view if the page slides to the edge region of the rolling view.
In an alternative embodiment, the first rolling reset subunit includes:
a first scroll reset slave unit, configured to reset, when the state information is in a head state, a sliding position of the scroll view to a head threshold of the scroll view if the sliding position of the list view is greater than a bottom threshold of the list view or the page sliding direction is sliding upwards;
And the second scrolling reset slave unit is used for resetting the sliding position of the scrolling view to the bottom threshold of the scrolling view if the sliding position of the list view is smaller than the bottom threshold of the list view or the page sliding direction is downward sliding in the state that the state information is in the bottom state.
In an alternative embodiment, the sliding position resetting unit includes:
a first list resetting subunit, configured to control, if the state information is in a bottom state, to reset the sliding position of the list view to an initial sliding position of the list view according to the sliding position of the list view and the page sliding direction; or,
and the second list resetting subunit is used for resetting the sliding position of the list view to the initial sliding position of the list view if the state information is in the intermediate state.
In an alternative embodiment, the first list resetting subunit comprises:
the first list resetting slave unit is used for resetting the sliding position of the list view to the initial sliding position of the list view if the sliding position of the list view is not smaller than the bottom threshold value of the list view and the page sliding direction is upward sliding.
In an alternative embodiment, the status information determining module 401 includes:
a sliding position acquisition unit configured to acquire a sliding position of the head view;
a state information determining unit configured to determine state information of the head view according to a sliding position of the head view; wherein the state information includes a head state, an intermediate state, and a bottom state.
The display control device can execute the display control method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the display control method.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related page sliding direction, page sliding position and the like all conform to the regulations of related laws and regulations, and the public order is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 5 illustrates a schematic block diagram of an example electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM502, and RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the respective methods and processes described above, for example, a display control method. For example, in some embodiments, the display control method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM502 and/or the communication unit 509. When a computer program is loaded into the RAM503 and executed by the computing unit 501, one or more steps of the display control method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the display control method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
Artificial intelligence is the discipline of studying the process of making a computer mimic certain mental processes and intelligent behaviors (e.g., learning, reasoning, thinking, planning, etc.) of a person, both hardware-level and software-level techniques. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligent software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge graph technology and the like.
Cloud computing (cloud computing) refers to a technical system that a shared physical or virtual resource pool which is elastically extensible is accessed through a network, resources can comprise servers, operating systems, networks, software, applications, storage devices and the like, and resources can be deployed and managed in an on-demand and self-service mode. Through cloud computing technology, high-efficiency and powerful data processing capability can be provided for technical application such as artificial intelligence and blockchain, and model training.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions provided by the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (20)
1. A display control method, comprising:
determining state information of a head view in the scroll view; wherein, the scroll view also comprises a list view;
acquiring a page sliding direction and a page sliding position;
selecting a target view from the list view and the scroll view according to the state information, the page sliding direction and the page sliding position, controlling the target view to slide according to the page sliding direction, and prohibiting non-target view from sliding;
and controlling to reset the sliding position of the list view or the sliding position of the scrolling view according to the state information, the page sliding direction and the page sliding position.
2. The method of claim 1, wherein the selecting a target view from the list view and the scroll view according to the status information, the page sliding direction, and the page sliding position, and controlling the target view to slide in the page sliding direction, and prohibiting non-target view from sliding, comprises:
If the state information is in a bottom state, the sliding position of the list view is not lower than a bottom threshold value of the list view, and the page sliding direction is upward sliding, controlling the scrolling view to slide upward, and prohibiting the list view from sliding;
if the state information is in a bottom state, the sliding position of the list view is not lower than a bottom threshold value of the list view, and the page sliding direction is downward sliding, the list view is controlled to slide downward, the head content in the head view is hovered in a preset hovering area, and the scrolling view is prohibited from sliding;
and if the state information is in a bottom state and the sliding position of the list view is lower than the bottom threshold value of the list view, controlling the list view to slide according to the page sliding direction, and prohibiting the sliding of the scrolling view.
3. The method of claim 1, wherein the selecting a target view from the list view and the scroll view according to the status information, the page sliding direction, and the page sliding position, and controlling the target view to slide in the page sliding direction, and prohibiting non-target view from sliding, comprises:
If the state information is in a head state, the sliding position of the list view is not higher than the bottom threshold value of the list view, and the page sliding direction is downward sliding, the scrolling view is controlled to slide downward, and the list view is forbidden to slide;
if the state information is a head state, the sliding position of the list view is not higher than the bottom threshold value of the list view, and the page sliding direction is upward sliding, the list view is controlled to slide upward, the head content in the head view is hovered in a preset hovering area, and the scrolling view is prohibited from sliding;
and if the state information is in a head state and the sliding position of the list view is higher than the bottom threshold value of the list view, controlling the list view to slide according to the page sliding direction, and prohibiting the sliding of the scrolling view.
4. The method of claim 1, wherein the selecting a target view from the list view and the scroll view according to the status information, the page sliding direction, and the page sliding position, and controlling the target view to slide in the page sliding direction, and prohibiting non-target view from sliding, comprises:
And if the state information is in the intermediate state, controlling the scrolling view to slide according to the page sliding direction, and prohibiting the list view from sliding.
5. The method of claim 1, wherein the controlling the sliding position of the scroll view to be reset according to the status information, the page sliding direction, and the page sliding position comprises:
if the target view is a list view, controlling to reset the sliding position of the rolling view to an edge sliding position corresponding to the page sliding direction according to the sliding position of the list view or the page sliding direction; or,
and if the page slides to the edge area of the rolling view, controlling to reset the sliding position of the rolling view to the edge sliding position corresponding to the page sliding direction according to the sliding position of the rolling view.
6. The method of claim 5, wherein the controlling the resetting of the sliding position of the scroll view to the edge sliding position corresponding to the page sliding direction according to the sliding position of the list view or the page sliding direction comprises:
if the state information is in a head state, if the sliding position of the list view is greater than the bottom threshold of the list view or the page sliding direction is sliding upwards, resetting the sliding position of the scrolling view as the head threshold of the scrolling view;
And if the sliding position of the list view is smaller than the bottom threshold value of the list view or the page sliding direction is downward sliding in the state information is in the bottom state, resetting the sliding position of the scrolling view as the bottom threshold value of the scrolling view.
7. The method of claim 1, wherein the controlling the sliding position of the list view to be reset according to the status information, the page sliding direction, and the page sliding position comprises:
if the state information is in the bottom state, controlling to reset the sliding position of the list view to the initial sliding position of the list view according to the sliding position of the list view and the page sliding direction; or,
and if the state information is in the intermediate state, resetting the sliding position of the list view to the initial sliding position of the list view.
8. The method of claim 7, wherein the controlling the resetting of the slide position of the list view to the initial slide position of the list view according to the slide position of the list view and the page slide direction comprises:
and if the sliding position of the list view is not smaller than the bottom threshold value of the list view and the page sliding direction is upward sliding, resetting the sliding position of the list view to the initial sliding position of the list view.
9. The method of any of claims 1-8, wherein the determining status information of a head view in a scroll view comprises:
acquiring a sliding position of the head view;
determining state information of the head view according to the sliding position of the head view; wherein the state information includes a head state, an intermediate state, and a bottom state.
10. A display control apparatus comprising:
a state information determining module for determining state information of a head view in the scroll view; wherein, the scroll view also comprises a list view;
the page sliding direction acquisition module is used for acquiring the page sliding direction and the page sliding position;
a slip control module comprising:
a view sliding control unit, configured to select a target view from the list view and the scroll view according to the status information, the page sliding direction, and the page sliding position, and control the target view to slide according to the page sliding direction, and prohibit sliding of a non-target view;
and a sliding position resetting unit for controlling and resetting the sliding position of the list view or the sliding position of the scroll view according to the state information, the page sliding direction and the page sliding position.
11. The apparatus of claim 10, wherein the view sliding control unit comprises:
the first sliding control unit is used for controlling the scrolling view to slide upwards and prohibiting the list view from sliding if the state information is in a bottom state, the sliding position of the list view is not lower than a bottom threshold value of the list view, and the page sliding direction is sliding upwards;
the second sliding control unit is used for controlling the list view to slide downwards if the state information is in a bottom state, the sliding position of the list view is not lower than the bottom threshold value of the list view, the page sliding direction is downwards sliding, the head content in the head view is hovered in a preset hovering area, and the scrolling view is forbidden to slide;
and the third sliding control unit is used for controlling the list view to slide according to the page sliding direction and prohibiting the scrolling view from sliding if the state information is in the bottom state and the sliding position of the list view is lower than the bottom threshold value of the list view.
12. The apparatus of claim 10, wherein the view sliding control unit comprises:
A fourth sliding control unit, configured to control, if the state information is a head state, the sliding position of the list view is not higher than a bottom threshold of the list view and the page sliding direction is a downward sliding, the scroll view to slide downward and prohibit the list view from sliding;
a fifth sliding control unit, configured to control, if the state information is a head state, the sliding position of the list view is not higher than a bottom threshold of the list view and the page sliding direction is an upward sliding, the list view to slide upward, and the head content in the head view hovers in a preset hovering area and prohibits the scrolling view from sliding;
and a sixth sliding control unit, configured to control, if the state information is a head state and the sliding position of the list view is higher than the bottom threshold of the list view, to slide the list view according to the page sliding direction, and to prohibit the sliding of the scroll view.
13. The apparatus of claim 10, wherein the view sliding control unit comprises:
and a seventh sliding control unit, configured to control the scrolling view to slide according to the page sliding direction and prohibit the list view from sliding if the state information is in the intermediate state.
14. The apparatus of claim 10, wherein the sliding position resetting unit comprises:
the first scrolling reset subunit is configured to, if the target view is a list view, control resetting the sliding position of the scrolling view to an edge sliding position corresponding to the page sliding direction according to the sliding position of the list view or the page sliding direction; or,
and the second rolling reset subunit is used for controlling the sliding position of the rolling view to be reset to the edge sliding position corresponding to the page sliding direction according to the sliding position of the rolling view if the page slides to the edge region of the rolling view.
15. The apparatus of claim 14, wherein the first rolling reset subunit comprises:
a first scroll reset slave unit, configured to reset, when the state information is a head state, a sliding position of the scroll view to be a head threshold of the scroll view if the sliding position of the list view is greater than a bottom threshold of the list view or the page sliding direction is sliding upward;
and the second scrolling reset slave unit is used for resetting the sliding position of the scrolling view to the bottom threshold of the scrolling view if the sliding position of the list view is smaller than the bottom threshold of the list view or the page sliding direction is downward sliding in the state that the state information is in the bottom state.
16. The apparatus of claim 10, wherein the sliding position resetting unit comprises:
a first list resetting subunit, configured to control, if the state information is in a bottom state, to reset the sliding position of the list view to an initial sliding position of the list view according to the sliding position of the list view and the page sliding direction; or,
and the second list resetting subunit is used for resetting the sliding position of the list view to the initial sliding position of the list view if the state information is in the intermediate state.
17. The apparatus of claim 16, wherein the first list reset subunit comprises:
the first list resetting slave unit is used for resetting the sliding position of the list view to the initial sliding position of the list view if the sliding position of the list view is not smaller than the bottom threshold value of the list view and the page sliding direction is upward sliding.
18. The apparatus of any of claims 10-17, wherein the status information determination module comprises:
a sliding position acquisition unit configured to acquire a sliding position of the head view;
A state information determining unit configured to determine state information of the head view according to a sliding position of the head view; wherein the state information includes a head state, an intermediate state, and a bottom state.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the display control method of any one of claims 1-9.
20. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the display control method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110955190.2A CN113655926B (en) | 2021-08-19 | 2021-08-19 | Display control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110955190.2A CN113655926B (en) | 2021-08-19 | 2021-08-19 | Display control method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113655926A CN113655926A (en) | 2021-11-16 |
CN113655926B true CN113655926B (en) | 2024-03-15 |
Family
ID=78481324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110955190.2A Active CN113655926B (en) | 2021-08-19 | 2021-08-19 | Display control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113655926B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657451A (en) * | 2015-02-05 | 2015-05-27 | 百度在线网络技术(北京)有限公司 | Processing method and processing device for page |
CN106406712A (en) * | 2016-10-21 | 2017-02-15 | 广州酷狗计算机科技有限公司 | Information display method and device |
WO2018076533A1 (en) * | 2016-10-31 | 2018-05-03 | 广州视源电子科技股份有限公司 | Quick positioning method and device for list item |
CN108803968A (en) * | 2018-06-29 | 2018-11-13 | 掌阅科技股份有限公司 | Multiview linkage method, computing device and the storage medium of user's display interface |
WO2019052524A1 (en) * | 2017-09-14 | 2019-03-21 | 腾讯科技(深圳)有限公司 | View rendering method and apparatus, medium, and intelligent terminal |
CN109814961A (en) * | 2018-12-26 | 2019-05-28 | 北京城市网邻信息技术有限公司 | List controls method, apparatus, electronic equipment and storage medium |
WO2020057327A1 (en) * | 2018-09-20 | 2020-03-26 | 北京达佳互联信息技术有限公司 | Information list display method and apparatus, and storage medium |
CN112596648A (en) * | 2020-12-21 | 2021-04-02 | 北京百度网讯科技有限公司 | Page processing method and device, electronic equipment and readable storage medium |
CN112783394A (en) * | 2019-11-07 | 2021-05-11 | 北京沃东天骏信息技术有限公司 | List page display method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012008676A (en) * | 2010-06-23 | 2012-01-12 | Panasonic Corp | Electronic book display device |
TWI668625B (en) * | 2012-01-11 | 2019-08-11 | 富智康(香港)有限公司 | Method and system for controlling display of electronic device |
AU2013202944B2 (en) * | 2012-04-26 | 2015-11-12 | Samsung Electronics Co., Ltd. | Method and terminal for displaying a plurality of pages, method and terminal for displaying a plurality of applications being executed on terminal, and method of executing a plurality of applications |
US20190095056A1 (en) * | 2016-04-15 | 2019-03-28 | Huawei Technologies Co., Ltd. | Method and Apparatus for Locking Object in List, and Terminal Device |
KR102464527B1 (en) * | 2018-01-15 | 2022-11-09 | 삼성전자주식회사 | Display Device and the Method for Touch Interface |
-
2021
- 2021-08-19 CN CN202110955190.2A patent/CN113655926B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104657451A (en) * | 2015-02-05 | 2015-05-27 | 百度在线网络技术(北京)有限公司 | Processing method and processing device for page |
CN106406712A (en) * | 2016-10-21 | 2017-02-15 | 广州酷狗计算机科技有限公司 | Information display method and device |
WO2018076533A1 (en) * | 2016-10-31 | 2018-05-03 | 广州视源电子科技股份有限公司 | Quick positioning method and device for list item |
WO2019052524A1 (en) * | 2017-09-14 | 2019-03-21 | 腾讯科技(深圳)有限公司 | View rendering method and apparatus, medium, and intelligent terminal |
CN108803968A (en) * | 2018-06-29 | 2018-11-13 | 掌阅科技股份有限公司 | Multiview linkage method, computing device and the storage medium of user's display interface |
WO2020057327A1 (en) * | 2018-09-20 | 2020-03-26 | 北京达佳互联信息技术有限公司 | Information list display method and apparatus, and storage medium |
CN109814961A (en) * | 2018-12-26 | 2019-05-28 | 北京城市网邻信息技术有限公司 | List controls method, apparatus, electronic equipment and storage medium |
CN112783394A (en) * | 2019-11-07 | 2021-05-11 | 北京沃东天骏信息技术有限公司 | List page display method and device |
CN112596648A (en) * | 2020-12-21 | 2021-04-02 | 北京百度网讯科技有限公司 | Page processing method and device, electronic equipment and readable storage medium |
Non-Patent Citations (1)
Title |
---|
模板化的Web列表页面信息自动抽取方法的研究;王琛;《现代计算机》;20130831;第第2013年卷(第第8期期);第77-80页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113655926A (en) | 2021-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3606081A1 (en) | On-screen comment display method and electronic device | |
CN112148160B (en) | Floating window display method and device, electronic equipment and computer readable storage medium | |
US20230325062A1 (en) | Method for adjusting interface display state, and electronic device | |
CN113359995A (en) | Man-machine interaction method, device, equipment and storage medium | |
CN113392660B (en) | Page translation method and device, electronic equipment and storage medium | |
EP3805985A1 (en) | Method and apparatus for recognizing target object, electronic device and storage medium | |
CN112162800B (en) | Page display method, page display device, electronic equipment and computer readable storage medium | |
CN113655926B (en) | Display control method, device, equipment and storage medium | |
US10254940B2 (en) | Modifying device content to facilitate user interaction | |
CN116866661A (en) | Video prerendering method, device, equipment and storage medium | |
CN113495621A (en) | Interactive mode switching method and device, electronic equipment and storage medium | |
CN113448668B (en) | Method and device for skipping popup window and electronic equipment | |
CN113873323B (en) | Video playing method, device, electronic equipment and medium | |
CN115529486B (en) | Suspension window type APP presentation method and device | |
CN113360074B (en) | Soft keyboard display method, related device and computer program product | |
CN115660092B (en) | Quantum gate assembly rendering method, device, equipment, storage medium and program product | |
CN116071422B (en) | Method and device for adjusting brightness of virtual equipment facing meta-universe scene | |
CN114546199B (en) | Image processing method, device, electronic equipment and storage medium | |
CN114217889B (en) | Display method, device, equipment and storage medium | |
CN114398130B (en) | Page display method, device, equipment and storage medium | |
CN114428646B (en) | Data processing method and device, electronic equipment and storage medium | |
US12014019B2 (en) | Display method, apparatus and computer readable storage medium | |
CN113963181A (en) | Color recognition method, device, equipment and storage medium | |
CN113342442A (en) | Information display method and device based on intelligent screen, intelligent screen equipment and medium | |
CN116088720A (en) | Blue light filtering method, equipment and storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |