WO2019134344A1 - Interface operation processing method and apparatus, electronic device, and storage medium - Google Patents

Interface operation processing method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2019134344A1
WO2019134344A1 PCT/CN2018/090296 CN2018090296W WO2019134344A1 WO 2019134344 A1 WO2019134344 A1 WO 2019134344A1 CN 2018090296 W CN2018090296 W CN 2018090296W WO 2019134344 A1 WO2019134344 A1 WO 2019134344A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
content
display
display unit
preset
Prior art date
Application number
PCT/CN2018/090296
Other languages
French (fr)
Chinese (zh)
Inventor
李凯达
张文明
陈少杰
Original Assignee
武汉斗鱼网络科技有限公司
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 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2019134344A1 publication Critical patent/WO2019134344A1/en

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
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Definitions

  • the present disclosure relates to the field of display technologies, and in particular, to an interface operation processing method, apparatus, electronic device, and storage medium.
  • the display interface displays the first area at the top, the structure of the second area at the bottom, and the structure of displaying more than three areas on the display interface.
  • the other areas change positions synchronously, so that each area scrolls simultaneously with the scrolling area.
  • each time scrolling requires multiple parameters to be synchronized to achieve synchronization between the regions and the scrolling region. For poorly performing electronic devices, frame dropping may occur, and scrolling in the display interface may be uncoordinated.
  • the present disclosure provides an interface operation processing method, apparatus, electronic device, and storage medium.
  • the present disclosure provides an interface operation processing method, which is applied to an electronic device, the method comprising: displaying a first display interface on a touch display unit of the electronic device, wherein the touch The display unit includes a first display area for displaying a head area on the first display interface, and a second display area for displaying a first content area corresponding to the first content in the first display interface; a first sliding operation performed on the touch display unit; determining, in response to the first sliding operation, whether the first display area is in a first preset area on the touch display unit; In the process of keeping the head region displayed in the first preset area, a second content area corresponding to the second content different from the first content is displayed in the second display area.
  • determining whether the first display area is in the first preset area on the touch display unit comprises:
  • the method further includes:
  • the area of the second preset area is larger than the area of the first preset area.
  • the method further includes:
  • the method further includes:
  • the load data is retrieved and stored in the data source.
  • the method further includes:
  • the second content area is stored, and a fifth content area corresponding to the fifth content different from the second content is displayed in the second display area.
  • displaying the first display interface on the touch display unit of the electronic device includes:
  • the ScrollableTabView is nested in the ScrollView in the React Native list, and a custom header and a ScrollableTabView are placed in the ScrollView, where the header is the header area and the ScrollableTabView is the content area.
  • the first display area is not in the first preset area on the touch display unit, perform the following settings:
  • the ScrollView is a state in which the scrolling is unlocked, and the ScrollableTabView is a state in which the scrolling is locked, and when the operation performed on the touch display unit is obtained, the entire ScrollView is scrolled.
  • the first display area is in the first preset area on the touch display unit, perform the following settings:
  • the ScrollView locks the scroll
  • the ScrollableTabView unlocks the scroll to make the head area fixed in the first preset area display, and realizes scrolling browsing of the content area.
  • the method further includes:
  • the ScrollableTabView In the state of scrolling from the ScrollView, the ScrollableTabView is locked and scrolled, and the ScrollView is locked and scrolled.
  • the ScrollableTabView is unlocked, the ScrollableTabView is scrolled to the position of the ScrollableTabView in the initial display interface.
  • the second display area includes a plurality of content areas
  • the method further includes: displaying, by the horizontal scrolling, each of the content areas to be displayed on the second display area.
  • the present disclosure provides an interface operation processing device, which is applied to an electronic device, where the device includes: an interface display module, a first operation acquisition module, a first operation response module, and a first execution module, where The interface display module is configured to display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a first portion for displaying a head region on the first display interface a display area, and a second display area for displaying a first content area corresponding to the first content in the first display interface; the first operation obtaining module is configured to obtain a first performed on the touch display unit a sliding operation; the first operation response module is configured to determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit; When the first display area is in the first preset area on the touch display unit, in the process of maintaining the display of the head area in the first preset area, The second display area different from the first content and a second content corresponding to the second content region.
  • the interface display module is configured to display
  • the first operation response module includes a first determining unit and a determining executing unit, where
  • the first determining unit is configured to determine, according to the first sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a third height and a first display area of the first display interface a difference of four heights, wherein a sum of a first height of the first display area and a second height of the second display area is the third height;
  • the determination execution unit is configured to determine that the first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface a first preset area of the display area on the touch display unit;
  • the determination execution unit is further configured to determine that the first sliding distance corresponding to the first sliding operation is not greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface The first display area is not in the first preset area.
  • the device further includes a second execution module, where the second execution module is configured to maintain the first display area when the first display area is not in the first preset area on the touch display unit a third content area corresponding to the third content different from the first content is displayed in the second display area in the process of displaying the head area in the second preset area, wherein the second preset area The area is larger than the area of the first predetermined area.
  • the second execution module is configured to maintain the first display area when the first display area is not in the first preset area on the touch display unit a third content area corresponding to the third content different from the first content is displayed in the second display area in the process of displaying the head area in the second preset area, wherein the second preset area The area is larger than the area of the first predetermined area.
  • the device further includes a third execution module and a fourth execution module, wherein the third execution module is configured to be when the first display area is not in a preset area on the touch display unit Determining whether a distance of an upper edge of the first content area from an upper edge of the first display interface is greater than a preset distance; the fourth execution module is configured to be located at an upper edge of the first content area When the distance of the upper edge of the first display interface is greater than the preset distance, the fourth content area corresponding to the fourth content different from the first content is displayed in the second display area.
  • the third execution module is configured to be when the first display area is not in a preset area on the touch display unit Determining whether a distance of an upper edge of the first content area from an upper edge of the first display interface is greater than a preset distance
  • the fourth execution module is configured to be located at an upper edge of the first content area When the distance of the upper edge of the first display interface is greater than the preset distance, the fourth content area corresponding to the fourth content different from the first
  • the device further includes a fifth execution module and a sixth execution module, wherein the fifth execution module is configured to determine whether the second content is currently stored and configured to be displayed in the second display area The content of the bottom of the data source; the sixth execution module is configured to acquire the loading data when the second content is the currently stored content configured to be displayed at the bottom of the data source of the second display area And storing the load data in the data source.
  • the fifth execution module is configured to determine whether the second content is currently stored and configured to be displayed in the second display area The content of the bottom of the data source
  • the sixth execution module is configured to acquire the loading data when the second content is the currently stored content configured to be displayed at the bottom of the data source of the second display area And storing the load data in the data source.
  • the device further includes a second operation obtaining module, a second operation response module, and a seventh execution module, wherein the second operation obtaining module is configured to obtain a second performed on the touch display unit a sliding operation; the second operation response module is configured to determine, according to the second sliding operation, whether the second content area is in a third preset area on the touch display unit; When the second content area is in the third preset area on the touch display unit, storing the second content area, and displaying a second content different from the second content in the second display area The fifth content area corresponding to the five contents.
  • the second operation obtaining module is configured to obtain a second performed on the touch display unit a sliding operation
  • the second operation response module is configured to determine, according to the second sliding operation, whether the second content area is in a third preset area on the touch display unit; When the second content area is in the third preset area on the touch display unit, storing the second content area, and displaying a second content different from the second content in the second display area
  • the fifth content area corresponding
  • the present disclosure provides an electronic device including a memory and a processor, the memory storing computer instructions that, when the computer instructions are read and executed by the processor, cause the The processor executes the interface operation processing method provided by the above first aspect.
  • the present disclosure provides a storage medium having stored therein computer instructions, wherein the computer instructions, when being read and executed, perform the interface operation processing method provided by the first aspect.
  • the present disclosure provides an interface operation processing method, which is applied to an electronic device, where the method includes:
  • the touch display unit is configured to display a first display interface, wherein the touch display unit comprises a first display for displaying a first display area of the head area on the interface, and a second display area for displaying a content area corresponding to the content in the first display interface;
  • the first display area of the touch display unit is in the first preset area on the touch display unit, keep the head area displayed in the first preset area, and in the second The display area displays a content area corresponding to content different from the previous content.
  • the first display interface is displayed on the touch display unit of the electronic device, wherein the touch display unit comprises a head for displaying the first display interface a first display area of the portion area, and a second display area for displaying the first content area corresponding to the first content in the first display interface, and then obtaining a first sliding operation performed on the touch display unit, and then responding a first sliding operation, determining whether the first display area is in the first preset area on the touch display unit, and finally, when YES, in the process of maintaining the head area displayed in the first preset area, in the second The display area displays a second content area corresponding to the second content different from the first content.
  • the interface operation processing method, the device, the electronic device, and the storage medium display the head region in the preset region when the head region in the display interface is in the preset region, and display the content corresponding to the content different from the previous content.
  • the area so as to avoid the parameter being transmitted multiple times each time the content area is scrolled to achieve synchronization between the head area and the content area, causing the electronic device with poor performance to drop frames, and the scrolling in the display interface is not coordinated.
  • FIG. 1 is a block schematic diagram of an electronic device provided by the present disclosure
  • FIG. 2 is a flow chart showing an interface operation processing method provided by the present disclosure
  • FIG. 3 is a flowchart of step S130 in the interface operation processing method provided by the present disclosure.
  • FIG. 4 is a block diagram of an interface operating device provided by the present disclosure.
  • FIG. 5 is a block diagram showing a first operational response module in the interface operating device provided by the present disclosure.
  • FIG. 1 shows a structural block diagram of an electronic device applicable to the present disclosure.
  • the electronic device 100 includes a memory 102 , a memory controller 104 , one or more (only one shown) processor 106 , a peripheral interface 108 , a radio frequency module 110 , an audio module 112 , and a touch display .
  • the memory 102 can be used to store software programs and modules, such as interface operation processing methods and apparatus corresponding to the program instructions/modules in the present disclosure, and the processor 106 executes various functional applications by running software programs and modules stored in the memory 102. And data processing, such as the interface operation processing method provided by the present disclosure.
  • Memory 102 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. Access to the memory 102 by the processor 106 and other possible components can be performed under the control of the memory controller 104.
  • non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. Access to the memory 102 by the processor 106 and other possible components can be performed under the control of the memory controller 104.
  • Peripheral interface 108 couples various input/output devices to processor 106 and memory 102.
  • peripheral interface 108, processor 106, and memory controller 104 can be implemented in a single chip. In other instances, they can be implemented by separate chips.
  • the radio frequency module 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electric signals, thereby communicating with a communication network or other devices.
  • the audio module 112 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
  • the touch display unit 114 provides a display interface between the electronic device 100 and the user. Specifically, the touch display unit 114 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof; and the touch display unit 114 further receives a sliding operation performed by the user.
  • FIG. 1 is merely illustrative, and the electronic device 100 may further include more or less components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the components shown in Figure 1 can be implemented in hardware, software, or a combination thereof.
  • RN React Native
  • only a fixed-top view can be used as the head header, and the lower list is hollowed out as the header height.
  • RN is an open source cross-platform mobile application development framework.
  • the upper view synchronizes to change position, so that the head scrolls with the list at the same time.
  • this structure framework is not in the same frame as the list, such scrolling requires multiple parameters to be passed, resulting in synchronous scrolling off frames, scrolling images being uncoordinated, and the like.
  • FIG. 2 shows a flow chart of an interface operation processing method provided by the present disclosure.
  • the interface operation processing method can be applied to the electronic device 100 shown in FIG. 1. Referring to Figure 2, the method includes:
  • Step S110 Display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a first display area for displaying a head area on the first display interface, and And a second display area for displaying a first content area corresponding to the first content in the first display interface.
  • a ScrollableTabView (sub-list) can be nested in the ScrollView (parent list) in the RN list, the target effect can be achieved by processing the gesture, the pull-down refresh is implemented in the ScrollView, and the scrollView is placed in the ScrollView.
  • the custom header and ScrollableTabView implement a pull-up refresh in each child tab of the ScrollableTabView.
  • the header can be understood as the header area
  • the ScrollableTabView can be understood as the content area. Thereby, the head area and the content area are placed in the same structural frame.
  • the framework can be built using the npm (Node Package Manager) plugin to introduce the ScrollableTabView, and the following structure is established:
  • the first display interface can be displayed on the touch display unit of the electronic device.
  • the touch display unit is configured to display a first display area of the head area on the first display interface, and a second display area for displaying the first content area corresponding to the first content in the first display interface.
  • the header area and the first content area can be understood as the header and the ScrollableTabView described above, respectively.
  • Step S120 Obtain a first sliding operation performed on the touch display unit.
  • the touch display unit can sense the first sliding operation performed by the user.
  • the first sliding operation is a functional naming, not an action limitation.
  • the user can continuously slide in the set direction on the touch display unit to implement the first sliding operation.
  • the user can perform a continuous click of the set number of times on the touch display unit to complete the first sliding operation.
  • the user can operate a setting button on the touch display unit to implement the first sliding operation.
  • Step S130 Determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit.
  • determining whether the first display area of the display head region is in the first preset area on the touch display unit that is, determining whether the head area in the first display interface is The specified first preset area.
  • the first preset area may be an area near the top of the touch display unit.
  • step S130 may include:
  • Step S131 determining, according to the first sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface, The sum of the first height of the first display area and the second height of the second display area is the third height.
  • variable offsetY can be defined, and e.nativeEvent.contentOffset.y is assigned an offsetY.
  • the offsetY is used to indicate the sliding distance of the ScrollView, that is, the sliding distance corresponding to the sliding operation performed by the user.
  • the variable ontentHeight represents the height of the entire ScrollView, that is, the sum of the height of the first display area and the height of the second display area (the third height).
  • the first sliding distance corresponding to the first sliding operation that is, the value of the variable offsetY
  • the sum of the first height of the first display area and the second height of the second display area may be acquired. That is, the value of the above variable contentHeight; the fourth height of the actual display area in the first display interface, that is, the value of the above-mentioned variable showScrollViewHeight can be obtained.
  • the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, that is, whether the offsetY is greater than or equal to the contentHeight minus the showScrollViewHeight. value.
  • Step S132 When YES, the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, indicating the first display area a first preset area on the touch display unit; if not, the first sliding distance corresponding to the first sliding operation is less than the third height and the fourth height of the actual display area in the first display interface The difference indicates that the first display area is not in the first preset area.
  • step S131 when the result of the determination in step S131 is that the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height, the first display area is displayed on the touch display unit. a predetermined area; when the result of the determination in step S131 is that the first sliding distance corresponding to the first sliding operation is smaller than the difference between the third height and the fourth height, the first display area is not the first on the touch display unit. Preset area. Thereby, a determination result of whether the first display area is on the first preset area on the touch display unit is obtained.
  • Step S140 When YES, the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, while maintaining the head area In the process of displaying in the first preset area, a second content area corresponding to the second content different from the first content is displayed in the second display area.
  • step S130 when the result of the determination in step S130 is that the first display area is in the first preset area of the touch display unit, it may indicate that the head area in the first display interface has been scrolled up to the designated area. Therefore, the head area can be maintained in the first preset area, and the second content area corresponding to the second content different from the first content is displayed in the second display area, that is, the content of the ScrollableTabView is displayed. Therefore, when the head region is located in the first preset area, the head area is kept displayed in the first preset area, and the synchronization of the head area and the content area is not performed every time the content area is scrolled, and the content area is scrolled each time.
  • the ScrollView when the head region does not reach the first preset area, the ScrollView is in a state of unlocking scrolling, and the ScrollableTabView is in a state of locking scrolling, and at this time, for the scrolling operation, scrolling for the entire ScrollView.
  • the ScrollView locks the scroll, and the ScrollableTabView unlocks the scroll, so that the head area is fixed in the first preset area, and the user can scroll the content area to implement scrolling of the content area.
  • the ScrollableTabView is locked and scrolled, and the ScrollView is locked and scrolled.
  • the ScrollableTabView is unlocked, the ScrollableTabView is scrolled to the position of the ScrollableTabView in the initial display interface. Prevents anomalies in gesture interception.
  • the interface operation processing method may further include:
  • the first sliding distance corresponding to the first sliding operation is smaller than the difference between the third height and the fourth height of the actual display area in the first display interface, while maintaining the head area at the second preset a third content area corresponding to the third content different from the first content is displayed in the second display area, wherein an area of the second preset area is greater than the first pre- Set the area of the area.
  • the Scroll view is returned to the unlocked state, and the ScrollableTabView is the locked scrolling state.
  • e.nativeEvent.contentOffset.y is assigned lastOneOffsetY, which represents the scrolling height of the content area.
  • the interface operation processing method may further include:
  • the boundary operation processing method may further include:
  • each content region when there are a plurality of content regions in the second display region, each content region can be switched and displayed on the second display region by using horizontal scrolling.
  • the interface operation processing method may further include: obtaining a second sliding operation performed on the touch display unit; and determining, in response to the second sliding operation, whether the second content area is in the touch Controlling a third preset area on the display unit; when YES, storing the second content area, and displaying a fifth content area corresponding to the fifth content different from the second content in the second display area .
  • the third preset area is a display area near the left and right sides, and when the second content area is horizontally to the third preset area, the content area is switched, and the second content is implemented.
  • the area storage allows the user to continue browsing in the previous location when switching back to the second content area.
  • the interface operation processing method provided by the first embodiment of the present disclosure constructs the above-mentioned framework by the nesting of the list and the processing of the gesture, so that the scrolling in the display interface becomes the scrolling of the entire display interface or only the scrolling of the content area.
  • the head area in the display interface is in the preset area, the head area is kept displayed in the preset area, and the content area corresponding to the content different from the previous content is displayed, and there is no frequent data transmission, and no sliding is caused. Unsynchronized and other issues. Therefore, each time the content area is scrolled, the parameter is transmitted multiple times to synchronize the head area with the content area, which may cause the electronic device with poor performance to drop frames, and the scrolling in the display interface is uncoordinated.
  • the second embodiment of the present disclosure provides an interface operation processing apparatus that can be applied to the electronic device 100 shown in FIG. 1.
  • the interface operation processing apparatus 200 includes an interface display module 210 , a first operation acquisition module 220 , a first operation response module 230 , and a first execution module 240 .
  • the interface display module 210 is configured to display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a head region for displaying the first display interface.
  • the first operation obtaining module 220 is configured to obtain the touch display unit Performing a first sliding operation
  • the first operation response module 230 is configured to determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit
  • the first execution module 240 is configured to keep the display of the head region in the first preset region when the first display area is in the first preset area on the touch display unit. And displaying, in the second display area, a second content area corresponding to the second content different from the first content.
  • the first operation response module 230 may include a first determining unit 231 and a decision executing unit 232.
  • the first determining unit 231 is configured to determine, according to the sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a third height and an actual display area in the first display interface.
  • the determination execution unit 232 is configured to When the first sliding distance corresponding to a sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, indicating that the first display area is on the touch display unit a first preset area; the determination execution unit 232 is further configured to: in the first sliding distance corresponding to the first sliding operation, not greater than or equal to a third height and an actual display area in the first display interface When the difference in height is four, it indicates that the first display area is not in the first preset area.
  • the interface operation processing device 200 may further include a second execution module, when the first display area is not in the first preset area on the touch display unit, a third content area corresponding to the third content different from the first content is displayed in the second display area while the display of the head area is displayed in the second preset area, wherein the second The area of the preset area is larger than the area of the first preset area.
  • the interface operation processing apparatus 200 may further include a third execution module and a fourth execution module.
  • the third execution module is configured to determine that an upper edge of the first content area is from an upper edge of the first display interface when the first display area is not in a preset area on the touch display unit. Whether the distance is greater than the preset distance; the fourth execution module is configured to display in the second display area when the distance of the upper edge of the first content area from the upper edge of the first display interface is greater than a preset distance a fourth content area corresponding to the fourth content different from the first content.
  • the interface operation processing apparatus 200 may further include a fifth execution module and a sixth execution module.
  • the fifth execution module is configured to determine whether the second content is the currently stored content for displaying the bottom of the data source in the second display area
  • the sixth execution module is configured to use the second content.
  • the load data is acquired and stored in the data source.
  • the interface operation processing apparatus 200 may further include a second operation obtaining module, a second operation response module, and a seventh execution module.
  • the second operation obtaining module is configured to obtain a second sliding operation performed on the touch display unit; and the second operation response module is configured to determine, according to the second sliding operation, whether the second content area is in the a third preset area on the touch display unit; the seventh execution module is configured to store the second content area when the second content area is in the third preset area on the touch display unit, And displaying, in the second display area, a fifth content area corresponding to the fifth content different from the second content.
  • a third embodiment of the present disclosure provides an electronic device 100.
  • the electronic device 100 includes a memory 102 and a processor 106, the memory 102 storing computer instructions when the computer instructions are processed by the When the processor 106 reads and executes, the processor 106 is caused to execute the interface operation processing method provided by the first embodiment of the present disclosure.
  • a fourth embodiment of the present disclosure provides a storage medium in which computer instructions are stored, wherein the computer instructions, when being read and executed, perform the interface operation processing method provided by the first embodiment of the present disclosure.
  • the fifth embodiment of the present disclosure provides an interface operation processing method, which is applied to an electronic device, and the method includes: obtaining a first sliding operation performed on a touch display unit of the electronic device, where the touch The display unit is configured to display a first display interface, wherein the touch display unit includes a first display area for displaying a head area on the first display interface, and is configured to display the first display interface A second display area of the content area corresponding to the content.
  • the interface operation processing method, device, electronic device, and storage medium provided by the present disclosure display the first display interface on the touch display unit of the electronic device, wherein the touch display unit includes the first display a first display area of the head area on the display interface, and a second display area for displaying the first content area corresponding to the first content in the first display interface, and then obtaining the first performed on the touch display unit a sliding operation, in response to the first sliding operation, determining whether the first display area is in the first preset area on the touch display unit, and finally, in the case of YES, maintaining the head area in the first preset area The second content area corresponding to the second content different from the first content is displayed in the second display area.
  • the interface operation processing method, the device, the electronic device, and the storage medium display the head region in the preset region when the head region in the display interface is in the preset region, and display the content corresponding to the content different from the previous content.
  • the area so as to avoid the parameter being transmitted multiple times each time the content area is scrolled to achieve synchronization between the head area and the content area, causing the electronic device with poor performance to drop frames, and the scrolling in the display interface is not coordinated.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in various embodiments of the present disclosure may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
  • the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • a computer readable storage medium including: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
  • the interface operation processing method, device, electronic device and storage medium provided by the present disclosure prevent the parameter area from being transmitted multiple times each time the content area is scrolled to realize synchronization between the head area and the content area, and the sliding is solved because there is no frequent data transmission. Unsynchronized issues improve display coordination.

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)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to the technical field of display, and provides an interface operation processing method and apparatus, an electronic device, and a storage medium. The interface operation processing method is applied to an electronic device. The interface operation processing method comprises: displaying a first display interface on a touch display unit of the electronic device, wherein the touch display unit comprises a first display region used for displaying a header region on the first display interface, and a second display region used for displaying a first content region corresponding to a first content in the first display interface; obtaining a first sliding operation performed on the touch display unit; determining, in response to the first sliding operation, whether the first display region is in a first preset region on the touch display unit; and if yes, displaying a second content region corresponding to a second content different from the first content in the second display region in the process of maintaining the header region to be displayed in the first preset region. By means of the interface operation processing method, the sliding operation in the display interface can be well processed.

Description

界面操作处理方法、装置、电子设备及存储介质Interface operation processing method, device, electronic device and storage medium
相关申请的交叉引用Cross-reference to related applications
本公开要求于2018年01月02日提交中国专利局的申请号为CN2018100011803,名称为“界面操作处理方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. CN2018100011803, entitled "Interface Operation Processing Method, Apparatus, Electronic Device and Storage Medium", filed on January 2, 2018, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本公开涉及显示技术领域,具体而言,涉及一种界面操作处理方法、装置、电子设备及存储介质。The present disclosure relates to the field of display technologies, and in particular, to an interface operation processing method, apparatus, electronic device, and storage medium.
背景技术Background technique
在一些软件中,其显示界面为上方显示第一区域,下方显示第二区域的结构,也有显示界面上显示三个以上区域的结构。用户对其中一个区域(滚动区域)进行滚动时,其他区域都会同步的改变位置,以实现各区域随着滚动区域的滚动而同时滚动。而这种实现方式中,每次的滚动都需要多次传递参数来实现各区域与滚动区域的同步,对于性能不佳的电子设备则可能出现掉帧,显示界面中的滚动不协调的现象。In some softwares, the display interface displays the first area at the top, the structure of the second area at the bottom, and the structure of displaying more than three areas on the display interface. When the user scrolls one of the areas (scrolling area), the other areas change positions synchronously, so that each area scrolls simultaneously with the scrolling area. In this implementation, each time scrolling requires multiple parameters to be synchronized to achieve synchronization between the regions and the scrolling region. For poorly performing electronic devices, frame dropping may occur, and scrolling in the display interface may be uncoordinated.
发明内容Summary of the invention
有鉴于此,本公开提供了一种界面操作处理方法、装置、电子设备及存储介质。In view of this, the present disclosure provides an interface operation processing method, apparatus, electronic device, and storage medium.
为了实现上述目的中的至少一个或部分,本公开采用的技术方案如下:In order to achieve at least one or part of the above objects, the technical solution adopted by the present disclosure is as follows:
第一方面,本公开提供了一种界面操作处理方法,应用于一电子设备中,所述方法包括:在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域;获得在所述触控显示单元上进行的第一滑动操作;响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域;在为是时,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。In a first aspect, the present disclosure provides an interface operation processing method, which is applied to an electronic device, the method comprising: displaying a first display interface on a touch display unit of the electronic device, wherein the touch The display unit includes a first display area for displaying a head area on the first display interface, and a second display area for displaying a first content area corresponding to the first content in the first display interface; a first sliding operation performed on the touch display unit; determining, in response to the first sliding operation, whether the first display area is in a first preset area on the touch display unit; In the process of keeping the head region displayed in the first preset area, a second content area corresponding to the second content different from the first content is displayed in the second display area.
可选地,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域,包括:Optionally, in response to the first sliding operation, determining whether the first display area is in the first preset area on the touch display unit comprises:
响应所述第一滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度;Determining, in response to the first sliding operation, whether a first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between a third height and a fourth height of an actual display area in the first display interface, wherein a sum of a first height of the first display area and a second height of the second display area is the third height;
在为是时,表示所述第一显示区域在所述触控显示单元上的第一预设区域;When yes, indicating that the first display area is on the first preset area on the touch display unit;
在为否时,表示所述第一显示区域未在所述第一预设区域。When it is no, it indicates that the first display area is not in the first preset area.
可选地,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域之后,所述方法还包括:Optionally, in the responsive to the first sliding operation, determining whether the first display area is after the first preset area on the touch display unit, the method further includes:
在为否时,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。In the case of NO, in the process of keeping the head region displayed in the second preset region, displaying a third content region corresponding to the third content different from the first content in the second display region, The area of the second preset area is larger than the area of the first preset area.
可选地,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域之后,所述方法还包括:Optionally, in the responsive to the first sliding operation, determining whether the first display area is after the first preset area on the touch display unit, the method further includes:
在为否时,判断所述第二显示区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;When it is no, determining whether a distance of an upper edge of the second display area from an upper edge of the first display interface is greater than a preset distance;
在为是时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。When YES, a fourth content area corresponding to the fourth content different from the first content is displayed in the second display area.
可选地,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域之后,所述方法还包括:Optionally, in the process of maintaining the display of the head region in the first preset region, displaying, in the second display region, a second content region corresponding to the second content different from the first content Thereafter, the method further includes:
判断所述第二内容是否为当前存储的用于显示于所述第二显示区域的数据源中的底部的内容;Determining whether the second content is the currently stored content for the bottom of the data source displayed in the second display area;
在为是时,获取加载数据并将所述加载数据存储于所述数据源中。When YES, the load data is retrieved and stored in the data source.
可选地,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域之后,所述方法还包括:Optionally, in the process of maintaining the display of the head region in the first preset region, displaying, in the second display region, a second content region corresponding to the second content different from the first content Thereafter, the method further includes:
获得在所述触控显示单元上进行的第二滑动操作;Obtaining a second sliding operation performed on the touch display unit;
响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区域;Determining, in response to the second sliding operation, whether the second content area is in a third preset area on the touch display unit;
在为是时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。When YES, the second content area is stored, and a fifth content area corresponding to the fifth content different from the second content is displayed in the second display area.
可选地,在所述电子设备的触控显示单元上显示第一显示界面,包括:Optionally, displaying the first display interface on the touch display unit of the electronic device includes:
于React Native列表中在ScrollView中嵌套ScrollableTabView,并在ScrollView中放入自定义的header和ScrollableTabView,其中,header为所述头部区域,ScrollableTabView为所述内容区域。The ScrollableTabView is nested in the ScrollView in the React Native list, and a custom header and a ScrollableTabView are placed in the ScrollView, where the header is the header area and the ScrollableTabView is the content area.
可选地,若所述第一显示区域不在所述触控显示单元上的第一预设区域,则进行以下设定:Optionally, if the first display area is not in the first preset area on the touch display unit, perform the following settings:
ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,获得在所述触控显示单元上进行的操作时,滚动整个ScrollView。The ScrollView is a state in which the scrolling is unlocked, and the ScrollableTabView is a state in which the scrolling is locked, and when the operation performed on the touch display unit is obtained, the entire ScrollView is scrolled.
可选地,若所述第一显示区域在所述触控显示单元上的第一预设区域,则进行以下设定:Optionally, if the first display area is in the first preset area on the touch display unit, perform the following settings:
ScrollView锁定滚动,ScrollableTabView解锁滚动,以使头部区域固定在所述第一预设区域显示,并实现对内容区域的滚动浏览。The ScrollView locks the scroll, and the ScrollableTabView unlocks the scroll to make the head area fixed in the first preset area display, and realizes scrolling browsing of the content area.
可选地,所述方法还包括:Optionally, the method further includes:
在从ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,变为ScrollView为锁定滚动的状态,ScrollableTabView为解锁滚动的状态时,将ScrollableTabView滚动至初始显示界面中ScrollableTabView的位置。In the state of scrolling from the ScrollView, the ScrollableTabView is locked and scrolled, and the ScrollView is locked and scrolled. When the ScrollableTabView is unlocked, the ScrollableTabView is scrolled to the position of the ScrollableTabView in the initial display interface.
可选地,所述第二显示区域中包括多个内容区域,所述方法还包括:通过横向滚动将各所述内容区域切换显示于所述第二显示区域。Optionally, the second display area includes a plurality of content areas, and the method further includes: displaying, by the horizontal scrolling, each of the content areas to be displayed on the second display area.
第二方面,本公开提供了一种界面操作处理装置,应用于一电子设备中,所述装置包括:界面显示模块、第一操作获取模块、第一操作响应模块以及第一执行模块,其中,所述界面显示模块用于在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域;所述第一操作获取模块用于获得在所述触控显示单元上进行的第一滑动操作;所述第一操作响应模块用于响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域;所述第一执行模块用于在所述第一显示区域在所述触控显示单元上的第一预设区域时,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。In a second aspect, the present disclosure provides an interface operation processing device, which is applied to an electronic device, where the device includes: an interface display module, a first operation acquisition module, a first operation response module, and a first execution module, where The interface display module is configured to display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a first portion for displaying a head region on the first display interface a display area, and a second display area for displaying a first content area corresponding to the first content in the first display interface; the first operation obtaining module is configured to obtain a first performed on the touch display unit a sliding operation; the first operation response module is configured to determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit; When the first display area is in the first preset area on the touch display unit, in the process of maintaining the display of the head area in the first preset area, The second display area different from the first content and a second content corresponding to the second content region.
可选地,所述第一操作响应模块包括第一判断单元以及判定执行单元,其中,Optionally, the first operation response module includes a first determining unit and a determining executing unit, where
所述第一判断单元配置成响应所述第一滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度;The first determining unit is configured to determine, according to the first sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a third height and a first display area of the first display interface a difference of four heights, wherein a sum of a first height of the first display area and a second height of the second display area is the third height;
所述判定执行单元配置成在所述第一滑动操作对应的第一滑动距离大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,判定所述第一显示区域在所述触控显示单元上的第一预设区域;The determination execution unit is configured to determine that the first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface a first preset area of the display area on the touch display unit;
所述判定执行单元还配置成在所述第一滑动操作对应的第一滑动距离未大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,判定所述第一显示区域未在所述的第一预设区域。The determination execution unit is further configured to determine that the first sliding distance corresponding to the first sliding operation is not greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface The first display area is not in the first preset area.
可选地,所述装置还包括第二执行模块,所述第二执行模块配置成在所述第一显示区域未在所述触控显示单元上的第一预设区域时,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显 示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。Optionally, the device further includes a second execution module, where the second execution module is configured to maintain the first display area when the first display area is not in the first preset area on the touch display unit a third content area corresponding to the third content different from the first content is displayed in the second display area in the process of displaying the head area in the second preset area, wherein the second preset area The area is larger than the area of the first predetermined area.
可选地,所述装置还包括第三执行模块以及第四执行模块,其中,所述第三执行模块配置成在所述第一显示区域未在所述触控显示单元上的预设区域时,判断所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;所述第四执行模块配置成在所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离大于预设距离时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。Optionally, the device further includes a third execution module and a fourth execution module, wherein the third execution module is configured to be when the first display area is not in a preset area on the touch display unit Determining whether a distance of an upper edge of the first content area from an upper edge of the first display interface is greater than a preset distance; the fourth execution module is configured to be located at an upper edge of the first content area When the distance of the upper edge of the first display interface is greater than the preset distance, the fourth content area corresponding to the fourth content different from the first content is displayed in the second display area.
可选地,所述装置还包括第五执行模块以及第六执行模块,其中,所述第五执行模块配置成判断所述第二内容是否为当前存储的配置成显示于所述第二显示区域的数据源中的底部的内容;所述第六执行模块配置成在所述第二内容为当前存储的配置成显示于所述第二显示区域的数据源中的底部的内容时,获取加载数据并将所述加载数据存储于所述数据源中。Optionally, the device further includes a fifth execution module and a sixth execution module, wherein the fifth execution module is configured to determine whether the second content is currently stored and configured to be displayed in the second display area The content of the bottom of the data source; the sixth execution module is configured to acquire the loading data when the second content is the currently stored content configured to be displayed at the bottom of the data source of the second display area And storing the load data in the data source.
可选地,所述装置还包括第二操作获得模块、第二操作响应模块以及第七执行模块,其中,所述第二操作获得模块配置成获得在所述触控显示单元上进行的第二滑动操作;所述第二操作响应模块配置成响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区域;所述第七执行模块配置成在所述第二内容区域在所述触控显示单元上的第三预设区域时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。Optionally, the device further includes a second operation obtaining module, a second operation response module, and a seventh execution module, wherein the second operation obtaining module is configured to obtain a second performed on the touch display unit a sliding operation; the second operation response module is configured to determine, according to the second sliding operation, whether the second content area is in a third preset area on the touch display unit; When the second content area is in the third preset area on the touch display unit, storing the second content area, and displaying a second content different from the second content in the second display area The fifth content area corresponding to the five contents.
第三方面,本公开提供了一种电子设备,所述电子设备包括存储器和处理器,所述存储器存储有计算机指令,当所述计算机指令由所述处理器读取并执行时,使所述处理器执行上述第一方面提供的界面操作处理方法。In a third aspect, the present disclosure provides an electronic device including a memory and a processor, the memory storing computer instructions that, when the computer instructions are read and executed by the processor, cause the The processor executes the interface operation processing method provided by the above first aspect.
第四方面,本公开提供了一种存储介质,所述存储介质中存储有计算机指令,其中,所述计算机指令在被读取并运行时执行上述第一方面提供的界面操作处理方法。In a fourth aspect, the present disclosure provides a storage medium having stored therein computer instructions, wherein the computer instructions, when being read and executed, perform the interface operation processing method provided by the first aspect.
第五方面,本公开提供了一种界面操作处理方法,应用于一电子设备中,所述方法包括:In a fifth aspect, the present disclosure provides an interface operation processing method, which is applied to an electronic device, where the method includes:
获得在所述电子设备的触控显示单元上进行的第一滑动操作,所述触控显示单元用于显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示所述第一显示界面中与内容对应的内容区域的第二显示区域;Obtaining a first sliding operation on the touch display unit of the electronic device, the touch display unit is configured to display a first display interface, wherein the touch display unit comprises a first display for displaying a first display area of the head area on the interface, and a second display area for displaying a content area corresponding to the content in the first display interface;
响应所述第一滑动操作,判断所述触控显示单元的第一显示区域是否在所述触控显示单元上的第一预设区域;Determining, in response to the first sliding operation, whether the first display area of the touch display unit is in a first preset area on the touch display unit;
若所述触控显示单元的第一显示区域在所述触控显示单元上的第一预设区域,保持所述头部区域在所述第一预设区域中显示,并在所述第二显示区域显示与之前内容不同的内容对应的内容区域。If the first display area of the touch display unit is in the first preset area on the touch display unit, keep the head area displayed in the first preset area, and in the second The display area displays a content area corresponding to content different from the previous content.
本公开提供的界面操作处理方法、装置、电子设备及存储介质,通过在电子设备的触控显示单元上显示第一显示界面,其中,触控显示单元包括用于显示第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域,然后获得在触控显示单元上进行的第一滑动操作,再响应第一滑动操作,判断第一显示区域是否在触控显示单元上的第一预设区域,最后在为是时,在保持头部区域在第一预设区域中显示的过程中,在第二显示区域显示与第一内容不同的第二内容对应的第二内容区域。该界面操作处理方法、装置、电子设备及存储介质通过显示界面中的头部区域在预设区域时,将头部区域保持在预设区域中显示,并显示与之前内容不同的内容对应的内容区域,从而避免每次内容区域滚动时都会多次传递参数来实现头部区域与内容区域的同步,造成性能不佳的电子设备可能出现掉帧,显示界面中的滚动不协调的问题。The interface operation processing method, device, electronic device and storage medium provided by the present disclosure, the first display interface is displayed on the touch display unit of the electronic device, wherein the touch display unit comprises a head for displaying the first display interface a first display area of the portion area, and a second display area for displaying the first content area corresponding to the first content in the first display interface, and then obtaining a first sliding operation performed on the touch display unit, and then responding a first sliding operation, determining whether the first display area is in the first preset area on the touch display unit, and finally, when YES, in the process of maintaining the head area displayed in the first preset area, in the second The display area displays a second content area corresponding to the second content different from the first content. The interface operation processing method, the device, the electronic device, and the storage medium display the head region in the preset region when the head region in the display interface is in the preset region, and display the content corresponding to the content different from the previous content. The area, so as to avoid the parameter being transmitted multiple times each time the content area is scrolled to achieve synchronization between the head area and the content area, causing the electronic device with poor performance to drop frames, and the scrolling in the display interface is not coordinated.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features, and advantages of the present invention will become more apparent from the description of the appended claims.
附图说明DRAWINGS
为使本公开的目的、技术方案和优点更加清楚,下面将结合本公开中的附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The present invention will be clearly and completely described in the following with reference to the accompanying drawings in the present disclosure. Instead of all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without departing from the inventive scope are the scope of the disclosure.
图1示出了本公开提供的电子设备的方框示意图;FIG. 1 is a block schematic diagram of an electronic device provided by the present disclosure;
图2示出了本公开提供的界面操作处理方法的流程图;2 is a flow chart showing an interface operation processing method provided by the present disclosure;
图3示出了本公开提供的界面操作处理方法中步骤S130的流程图;FIG. 3 is a flowchart of step S130 in the interface operation processing method provided by the present disclosure;
图4示出了本公开提供的界面操作装置的模块图;4 is a block diagram of an interface operating device provided by the present disclosure;
图5示出了本公开提供的界面操作装置中第一操作响应模块的模块图。FIG. 5 is a block diagram showing a first operational response module in the interface operating device provided by the present disclosure.
具体实施方式Detailed ways
下面将结合本公开中附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the present disclosure are clearly and completely described in the following with reference to the accompanying drawings in the present disclosure. It is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The components of the present disclosure, which are generally described and illustrated in the figures herein, can be arranged and designed in a variety of different configurations. The detailed description of the embodiments of the present disclosure, which is set forth in the claims All other embodiments obtained by a person skilled in the art based on the embodiments of the present disclosure without creative efforts are within the scope of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本公开的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Meanwhile, in the description of the present disclosure, the terms "first", "second", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
图1示出了一种可应用于本公开中的电子设备的结构框图。如图1所示,电子设备100包括存储器102、存储控制器104,一个或多个(图中仅示出一个)处理器106、外设接口108、射频模块110、音频模块112、触控显示单元114等。这些组件通过一条或多条通讯总线/信号线116相互通讯。FIG. 1 shows a structural block diagram of an electronic device applicable to the present disclosure. As shown in FIG. 1 , the electronic device 100 includes a memory 102 , a memory controller 104 , one or more (only one shown) processor 106 , a peripheral interface 108 , a radio frequency module 110 , an audio module 112 , and a touch display . Unit 114 and the like. These components communicate with one another via one or more communication bus/signal lines 116.
存储器102可用于存储软件程序以及模块,如本公开中的界面操作处理方法及装置对应的程序指令/模块,处理器106通过运行存储在存储器102内的软件程序以及模块,从而执行各种功能应用以及数据处理,如本公开提供的界面操作处理方法。The memory 102 can be used to store software programs and modules, such as interface operation processing methods and apparatus corresponding to the program instructions/modules in the present disclosure, and the processor 106 executes various functional applications by running software programs and modules stored in the memory 102. And data processing, such as the interface operation processing method provided by the present disclosure.
存储器102可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。处理器106以及其他可能的组件对存储器102的访问可在存储控制器104的控制下进行。 Memory 102 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. Access to the memory 102 by the processor 106 and other possible components can be performed under the control of the memory controller 104.
外设接口108将各种输入/输出装置耦合至处理器106以及存储器102。在一些实施例中,外设接口108,处理器106以及存储控制器104可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。 Peripheral interface 108 couples various input/output devices to processor 106 and memory 102. In some embodiments, peripheral interface 108, processor 106, and memory controller 104 can be implemented in a single chip. In other instances, they can be implemented by separate chips.
射频模块110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。The radio frequency module 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electric signals, thereby communicating with a communication network or other devices.
音频模块112向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。The audio module 112 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry.
触控显示单元114在电子设备100与用户之间提供一个显示界面。具体地,触控显示单元114向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频及其任意组合;触控显示单元114还接收用户进行的滑动操作。The touch display unit 114 provides a display interface between the electronic device 100 and the user. Specifically, the touch display unit 114 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof; and the touch display unit 114 further receives a sliding operation performed by the user.
可以理解,图1所示的结构仅为示意,电子设备100还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It will be understood that the structure shown in FIG. 1 is merely illustrative, and the electronic device 100 may further include more or less components than those shown in FIG. 1, or have a different configuration than that shown in FIG. The components shown in Figure 1 can be implemented in hardware, software, or a combination thereof.
在RN(React Native)中只能通过一个固顶的view来当作头部header,下侧列表中空出header高度。其中,RN是开源的跨平台移动应用开发框架。当列表滚动时上方的view同步改变位置,以此来达到头部随着列表同时滚动。但是这种结构框架由于头部与列表不在同一框架,所以这样的滚动需要多次传递参数,导致同步滚动掉帧,滚动画面不协调等。In RN (React Native), only a fixed-top view can be used as the head header, and the lower list is hollowed out as the header height. Among them, RN is an open source cross-platform mobile application development framework. When the list scrolls, the upper view synchronizes to change position, so that the head scrolls with the list at the same time. However, since this structure framework is not in the same frame as the list, such scrolling requires multiple parameters to be passed, resulting in synchronous scrolling off frames, scrolling images being uncoordinated, and the like.
第一实施例First embodiment
如图2示出了本公开提供的界面操作处理方法的流程图。该界面操作处理方法可以应用于图1所示电子设备100中。请参见图2,该方法包括:FIG. 2 shows a flow chart of an interface operation processing method provided by the present disclosure. The interface operation processing method can be applied to the electronic device 100 shown in FIG. 1. Referring to Figure 2, the method includes:
步骤S110:在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域。Step S110: Display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a first display area for displaying a head area on the first display interface, and And a second display area for displaying a first content area corresponding to the first content in the first display interface.
在本公开中,可以通过于RN列表中在ScrollView(父列表)中嵌套一个ScrollableTabView(子列表),通过对手势的处理来实现目标效果,在ScrollView中实现下拉刷新,并在ScrollView中放入自定义的header和ScrollableTabView,在ScrollableTabView的每一个子tab中实现上拉刷新。其中,header可以理解为头部区域,ScrollableTabView可以理解为内容区域。从而,使头部区域和内容区域位于同一结构框架中。In the present disclosure, a ScrollableTabView (sub-list) can be nested in the ScrollView (parent list) in the RN list, the target effect can be achieved by processing the gesture, the pull-down refresh is implemented in the ScrollView, and the scrollView is placed in the ScrollView. The custom header and ScrollableTabView implement a pull-up refresh in each child tab of the ScrollableTabView. Among them, the header can be understood as the header area, and the ScrollableTabView can be understood as the content area. Thereby, the head area and the content area are placed in the same structural frame.
具体的,搭建框架可以是使用npm(Node Package Manager)插件引入ScrollableTabView,建立如下结构:Specifically, the framework can be built using the npm (Node Package Manager) plugin to introduce the ScrollableTabView, and the following structure is established:
Figure PCTCN2018090296-appb-000001
Figure PCTCN2018090296-appb-000001
首先,可以在电子设备的触控显示单元上显示第一显示界面。其中,触控显示单元用于显示第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域。头部区域以及第一内容区域可以分别理解为上述的header以及ScrollableTabView。First, the first display interface can be displayed on the touch display unit of the electronic device. The touch display unit is configured to display a first display area of the head area on the first display interface, and a second display area for displaying the first content area corresponding to the first content in the first display interface. The header area and the first content area can be understood as the header and the ScrollableTabView described above, respectively.
步骤S120:获得在所述触控显示单元上进行的第一滑动操作。Step S120: Obtain a first sliding operation performed on the touch display unit.
用户在对第一显示界面进行操作时,可以于触控显示单元上进行滑动操作。从而,触控显示单元可以感应获得用户进行的第一滑动操作。其中,第一滑动操作的实现方式有多种,本公开中,第一滑动操作为功能性命名,而非动作限定。例如,用户可以在触控显示单元上沿设定的方向连续滑动,从而实现第一滑动操作。又例如,用户可以在触控显示单元上进行设定次数的连续点击,从而完成第一滑动操作。又例如,用户可以操作触控显示单元上一设定按键,从而实现第一滑动操作。When the user operates the first display interface, the user can perform a sliding operation on the touch display unit. Therefore, the touch display unit can sense the first sliding operation performed by the user. There are a plurality of implementations of the first sliding operation. In the present disclosure, the first sliding operation is a functional naming, not an action limitation. For example, the user can continuously slide in the set direction on the touch display unit to implement the first sliding operation. For another example, the user can perform a continuous click of the set number of times on the touch display unit to complete the first sliding operation. For another example, the user can operate a setting button on the touch display unit to implement the first sliding operation.
步骤S130:响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域。Step S130: Determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit.
在获得上述用户进行的第一滑动操作后,再判断显示头部区域的第一显示区域是否在触控显示单元上的第一预设区域,即判断第一显示界面中的头部区域是否在指定的第一预设区域。After obtaining the first sliding operation performed by the user, determining whether the first display area of the display head region is in the first preset area on the touch display unit, that is, determining whether the head area in the first display interface is The specified first preset area.
在本公开中,第一预设区域可以是靠近触控显示单元的顶部的区域。In the present disclosure, the first preset area may be an area near the top of the touch display unit.
在本公开中,请参见图3,在第一滑动操作为沿设定的方向连续滑动的情况下,步骤S130可以包括:In the present disclosure, referring to FIG. 3, in a case where the first sliding operation is continuously sliding in a set direction, step S130 may include:
步骤S131:响应所述第一滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度。Step S131: determining, according to the first sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface, The sum of the first height of the first display area and the second height of the second display area is the third height.
在本公开中,可以定义变量offsetY,将e.nativeEvent.contentOffset.y赋值offsetY。offsetY用于表示ScrollView的滑动距离,即用户进行的滑动操作对应的滑动距离。In the present disclosure, the variable offsetY can be defined, and e.nativeEvent.contentOffset.y is assigned an offsetY. The offsetY is used to indicate the sliding distance of the ScrollView, that is, the sliding distance corresponding to the sliding operation performed by the user.
在本公开中,可以定义变量showScrollViewHeight,将e.nativeEvent.layoutMeasurement.height赋值showScrollViewHeight。contentHeight用于表示ScrollView的展示高度,即第一显示界面中的实际显示区域的高度。In this disclosure, you can define the variable showScrollViewHeight and assign e.nativeEvent.layoutMeasurement.height to showScrollViewHeight. The contentHeight is used to indicate the display height of the ScrollView, that is, the height of the actual display area in the first display interface.
在本公开中,可以定义变量ontentHeight,将e.nativeEvent.contentSize.height赋值contentHeight。contentHeight表示整个ScrollView的高度,即第一显示区域的高度与第二显示区域的高度的和(第三高度)。In this disclosure, you can define the variable ontentHeight and assign e.nativeEvent.contentSize.height to contentHeight. The contentHeight represents the height of the entire ScrollView, that is, the sum of the height of the first display area and the height of the second display area (the third height).
在响应上述第一滑动操作时,可以获取第一滑动操作对应的第一滑动距离,即上述变量offsetY的值;可以获取第一显示区域的第一高度与第二显示区域的第二高度之和,即上述变量contentHeight的值;可以获取第一显示界面中的实际显示区域的第四高度,即上述变量showScrollViewHeight的值。In response to the first sliding operation, the first sliding distance corresponding to the first sliding operation, that is, the value of the variable offsetY, may be acquired; and the sum of the first height of the first display area and the second height of the second display area may be acquired. That is, the value of the above variable contentHeight; the fourth height of the actual display area in the first display interface, that is, the value of the above-mentioned variable showScrollViewHeight can be obtained.
然后,再判断第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与第一显示界面中的实际显示区域的第四高度的差,即判断offsetY是否大于或者等于contentHeight减去showScrollViewHeight的值。Then, it is determined whether the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, that is, whether the offsetY is greater than or equal to the contentHeight minus the showScrollViewHeight. value.
步骤S132:在为是时,第一滑动操作对应的第一滑动距离大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,表示所述第一显示区域在所述触控显示单元上的第一预设区域;在为否时,第一滑动操作对应的第一滑动距离小于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,表示所述第一显示区域未在所述的第一预设区域。Step S132: When YES, the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, indicating the first display area a first preset area on the touch display unit; if not, the first sliding distance corresponding to the first sliding operation is less than the third height and the fourth height of the actual display area in the first display interface The difference indicates that the first display area is not in the first preset area.
可以理解的是,在步骤S131中的判断结果为第一滑动操作对应的第一滑动距离大于或者等于第三高度与第四高度的差时,表示第一显示区域在触控显示单元上的第一预设区域;在步骤S131中的判断结果为第一滑动操作对应的第一滑动距离小于第三高度与第四高度的差时,表示第一显示区域未在触控显示单元上的第一预设区域。从而,获得第一显示区域是否在触控显示单元上的第一预设区域的判断结果。It can be understood that, when the result of the determination in step S131 is that the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height, the first display area is displayed on the touch display unit. a predetermined area; when the result of the determination in step S131 is that the first sliding distance corresponding to the first sliding operation is smaller than the difference between the third height and the fourth height, the first display area is not the first on the touch display unit. Preset area. Thereby, a determination result of whether the first display area is on the first preset area on the touch display unit is obtained.
步骤S140:在为是时,第一滑动操作对应的第一滑动距离大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。Step S140: When YES, the first sliding distance corresponding to the first sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, while maintaining the head area In the process of displaying in the first preset area, a second content area corresponding to the second content different from the first content is displayed in the second display area.
在本公开中,当步骤S130的判断结果为上述第一显示区域在触控显示单元的第一预设区域时,可 以表示第一显示界面中头部区域已经往上滚动达到指定的区域。因此,可以将头部区域保持在该第一预设区域,并在第二显示区域显示与第一内容不同的第二内容对应的第二内容区域,即显示ScrollableTabView往下的内容。从而在头部区域位于第一预设区域时,将头部区域保持在第一预设区域中显示,在每次内容区域滚动时无需执行头部区域与内容区域的同步,每次内容区域滚动时无需多次传递参数来实现头部区域与内容区域的同步,无需针对第一显示区域进行频繁的数据传递,仅需在第二显示区域显示与之前内容不同的内容对应的内容区域即可,从而避免了频繁的数据传递,避免了滑动不同步等问题。In the present disclosure, when the result of the determination in step S130 is that the first display area is in the first preset area of the touch display unit, it may indicate that the head area in the first display interface has been scrolled up to the designated area. Therefore, the head area can be maintained in the first preset area, and the second content area corresponding to the second content different from the first content is displayed in the second display area, that is, the content of the ScrollableTabView is displayed. Therefore, when the head region is located in the first preset area, the head area is kept displayed in the first preset area, and the synchronization of the head area and the content area is not performed every time the content area is scrolled, and the content area is scrolled each time. When the parameter is not required to be transmitted multiple times to synchronize the head area and the content area, it is not necessary to perform frequent data transfer for the first display area, and only the content area corresponding to the content different from the previous content is displayed in the second display area. Thereby avoiding frequent data transfer and avoiding problems such as sliding out of sync.
在本公开中,在头部区域未达到第一预设区域时,ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,此时对于滚动操作时,为整个ScrollView滚动。In the present disclosure, when the head region does not reach the first preset area, the ScrollView is in a state of unlocking scrolling, and the ScrollableTabView is in a state of locking scrolling, and at this time, for the scrolling operation, scrolling for the entire ScrollView.
在头部区域达到第一预设区域后,则ScrollView锁定滚动,ScrollableTabView解锁滚动,以使头部区域固定在第一预设区域显示,用户可以对内容区域进行滚动,实现对内容区域的滚动浏览。另外,还可以在从ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,变为ScrollView为锁定滚动的状态,ScrollableTabView为解锁滚动的状态时,将ScrollableTabView滚动至初始显示界面中ScrollableTabView的位置,以防止手势拦截的异常现象。After the head area reaches the first preset area, the ScrollView locks the scroll, and the ScrollableTabView unlocks the scroll, so that the head area is fixed in the first preset area, and the user can scroll the content area to implement scrolling of the content area. . In addition, in the state of scrolling from the ScrollView, the ScrollableTabView is locked and scrolled, and the ScrollView is locked and scrolled. When the ScrollableTabView is unlocked, the ScrollableTabView is scrolled to the position of the ScrollableTabView in the initial display interface. Prevents anomalies in gesture interception.
在本公开中,在用户进行上滑时,但头部区域未达到第一预设区域的过程中,可以保持ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,使整个ScrollView往上滚动,并对第二显示区域中的内容区域进行更新。因此,该界面操作处理方法还可以包括:In the present disclosure, when the user performs the upsliding, but the head area does not reach the first preset area, the ScrollView can be kept in the unlocked state, and the ScrollableTabView is in the locked scrolling state, so that the entire ScrollView is scrolled up. And updating the content area in the second display area. Therefore, the interface operation processing method may further include:
在为否时,第一滑动操作对应的第一滑动距离小于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。In the case of no, the first sliding distance corresponding to the first sliding operation is smaller than the difference between the third height and the fourth height of the actual display area in the first display interface, while maintaining the head area at the second preset a third content area corresponding to the third content different from the first content is displayed in the second display area, wherein an area of the second preset area is greater than the first pre- Set the area of the area.
可以理解的是,使整个ScrollView往上滚动,第一显示区域的面积会逐渐减小,但是第一显示区域未达到第一预设区域,因此第二预设区域的面积大于第一预设区域的面积。另外,使内容区域的面积变大,内容区域显示更多的内容。It can be understood that, when the entire ScrollView is scrolled upward, the area of the first display area is gradually reduced, but the first display area does not reach the first preset area, and therefore the area of the second preset area is larger than the first preset area. Area. In addition, the area of the content area is increased, and the content area displays more content.
在本公开中,在第一显示区域达到第一预设区域后,向下滚动到一定位置时,则回到ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态。具体可以是,将e.nativeEvent.contentOffset.y赋值lastOneOffsetY,代表内容区域的滚动高度。在下滑时判断出lastOneOffsetY的值为0时,则表示内容区域滚动到初始显示界面的位置,则ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态。In the present disclosure, after the first display area reaches the first preset area, when scrolling down to a certain position, the scroll view is returned to the unlocked state, and the ScrollableTabView is the locked scrolling state. Specifically, e.nativeEvent.contentOffset.y is assigned lastOneOffsetY, which represents the scrolling height of the content area. When it is determined that the value of lastOneOffsetY is 0 when the slide is down, it indicates that the content area is scrolled to the position of the initial display interface, then the ScrollView is the state of unlocking the scroll, and the ScrollableTabView is the state of the lock scrolling.
对于用户的下滑操作,并下拉到一定位置时,可以对第一显示界面中的第二显示区域的内容区域进行刷新。因此,该界面操作处理方法还可以包括:When the user's sliding operation is performed and pulled down to a certain position, the content area of the second display area in the first display interface may be refreshed. Therefore, the interface operation processing method may further include:
在所述第一显示区域未在所述触控显示单元上的第一预设区域时,判断所述第二显示区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;在所述第二显示区域的上边缘距离所述第一显示界面的上边缘的距离大于预设距离时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。When the first display area is not in the first preset area on the touch display unit, determining whether the distance of the upper edge of the second display area from the upper edge of the first display interface is greater than a preset And displaying a fourth content different from the first content in the second display area when a distance from an upper edge of the second display area to an upper edge of the first display interface is greater than a preset distance The fourth content area.
可以理解的是,当下拉到第二内容区域的上边缘距离第一显示界面的上边缘一定距离时,则调用ScrollView中的refreshControl,在该方法中处理下拉刷新,并且,只对当前的内容区域进行刷新。It can be understood that when the upper edge of the second content area is pulled down to a certain distance from the upper edge of the first display interface, the refreshControl in the ScrollView is called, and the pull-down refresh is processed in the method, and only the current content area is processed. Refresh.
在用户在步骤S140之后,继续上滑使第二显示区域中的内容区域滚动到底部时,则需要对内容区域的数据进行加载。因此,该界操作处理方法还可以包括:After the user continues to slide up and then scrolls the content area in the second display area to the bottom after step S140, the data of the content area needs to be loaded. Therefore, the boundary operation processing method may further include:
判断所述第二内容是否为当前存储的用于显示于所述第二显示区域的数据源中的底部的内容;在为是时,获取加载数据并将所述加载数据存储于所述数据源中。Determining whether the second content is the currently stored content for the bottom of the data source displayed in the second display area; when YES, acquiring the loading data and storing the loading data in the data source in.
可以理解的是,在ScrollView为锁定滚动的状态,ScrollableTabView为解锁滚动的状态时,如果用户下滑使第二显示区域中的内容区域对应的数据源已经到底部,则需要对数据源的数据进行加载。可以是调用onEndReached,来分页加载数据,以使继续向下滚动时,能展示内容于第二显示区域。It can be understood that when the ScrollView is in the state of locked scrolling, and the ScrollableTabView is in the state of unlocking the scrolling, if the user slides down so that the data source corresponding to the content area in the second display area has reached the bottom, the data of the data source needs to be loaded. . It is possible to call onEndReached to page load the data so that when scrolling down, the content can be displayed in the second display area.
在本公开中,在第二显示区域中有多个内容区域时,可以利用横向滚动将各内容区域切换显示于第二显示区域。In the present disclosure, when there are a plurality of content regions in the second display region, each content region can be switched and displayed on the second display region by using horizontal scrolling.
在本公开中,该界面操作处理方法还可以包括:获得在所述触控显示单元上进行的第二滑动操作;响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区域;在为是时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。In the present disclosure, the interface operation processing method may further include: obtaining a second sliding operation performed on the touch display unit; and determining, in response to the second sliding operation, whether the second content area is in the touch Controlling a third preset area on the display unit; when YES, storing the second content area, and displaying a fifth content area corresponding to the fifth content different from the second content in the second display area .
作为一种可选的实现方式,第三预设区域为靠近左右两侧的显示区域,表示第二内容区域横向到该第三预设区域时,则实现内容区域的切换,并且将第二内容区域存储,使用户切换回第二内容区域时,可以使用户于之前的位置继续浏览。As an optional implementation manner, the third preset area is a display area near the left and right sides, and when the second content area is horizontally to the third preset area, the content area is switched, and the second content is implemented. The area storage allows the user to continue browsing in the previous location when switching back to the second content area.
本公开第一实施例提供的界面操作处理方法,通过列表的嵌套结合对手势的处理,搭建了上述的框架,使显示界面中的滚动变为整个显示界面的滚动或者仅内容区域的滚动,可以实现显示界面中的头部区域在预设区域时,将头部区域保持在预设区域中显示,并显示与之前内容不同的内容对应的内容区域,没有频繁的数据传递,不会造成滑动不同步等问题。从而避免每次内容区域滚动时都会多次传递参数来实现头部区域与内容区域的同步,造成性能不佳的电子设备可能出现掉帧,显示界面中的滚动不协调的问题。The interface operation processing method provided by the first embodiment of the present disclosure constructs the above-mentioned framework by the nesting of the list and the processing of the gesture, so that the scrolling in the display interface becomes the scrolling of the entire display interface or only the scrolling of the content area. When the head area in the display interface is in the preset area, the head area is kept displayed in the preset area, and the content area corresponding to the content different from the previous content is displayed, and there is no frequent data transmission, and no sliding is caused. Unsynchronized and other issues. Therefore, each time the content area is scrolled, the parameter is transmitted multiple times to synchronize the head area with the content area, which may cause the electronic device with poor performance to drop frames, and the scrolling in the display interface is uncoordinated.
第二实施例Second embodiment
本公开第二实施例提供了一种界面操作处理装置,可以应用于图1所示电子设备100中。请参见图4,该界面操作处理装置200包括:界面显示模块210、第一操作获取模块220、第一操作响应模块230 以及第一执行模块240。其中,所述界面显示模块210用于在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域;所述第一操作获取模块220用于获得在所述触控显示单元上进行的第一滑动操作;所述第一操作响应模块230用于响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域;所述第一执行模块240用于在所述第一显示区域在所述触控显示单元上的第一预设区域时,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。The second embodiment of the present disclosure provides an interface operation processing apparatus that can be applied to the electronic device 100 shown in FIG. 1. Referring to FIG. 4 , the interface operation processing apparatus 200 includes an interface display module 210 , a first operation acquisition module 220 , a first operation response module 230 , and a first execution module 240 . The interface display module 210 is configured to display a first display interface on the touch display unit of the electronic device, where the touch display unit includes a head region for displaying the first display interface. a first display area, and a second display area for displaying a first content area corresponding to the first content in the first display interface; the first operation obtaining module 220 is configured to obtain the touch display unit Performing a first sliding operation; the first operation response module 230 is configured to determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit; The first execution module 240 is configured to keep the display of the head region in the first preset region when the first display area is in the first preset area on the touch display unit. And displaying, in the second display area, a second content area corresponding to the second content different from the first content.
在本公开中,请参见图5,所述第一操作响应模块230可以包括第一判断单元231以及判定执行单元232。其中,所述第一判断单元231用于响应所述滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度;所述判定执行单元232用于在所述第一滑动操作对应的第一滑动距离大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,表示所述第一显示区域在所述触控显示单元上的第一预设区域;所述判定执行单元232还用于在所述第一滑动操作对应的第一滑动距离未大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,表示所述第一显示区域未在所述的第一预设区域。In the present disclosure, referring to FIG. 5, the first operation response module 230 may include a first determining unit 231 and a decision executing unit 232. The first determining unit 231 is configured to determine, according to the sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a third height and an actual display area in the first display interface. a difference in a fourth height, wherein a sum of a first height of the first display area and a second height of the second display area is the third height; the determination execution unit 232 is configured to When the first sliding distance corresponding to a sliding operation is greater than or equal to the difference between the third height and the fourth height of the actual display area in the first display interface, indicating that the first display area is on the touch display unit a first preset area; the determination execution unit 232 is further configured to: in the first sliding distance corresponding to the first sliding operation, not greater than or equal to a third height and an actual display area in the first display interface When the difference in height is four, it indicates that the first display area is not in the first preset area.
在本公开中,该界面操作处理装置200还可以包括第二执行模块,第二执行模块用于在所述第一显示区域未在所述触控显示单元上的第一预设区域时,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。In the present disclosure, the interface operation processing device 200 may further include a second execution module, when the first display area is not in the first preset area on the touch display unit, a third content area corresponding to the third content different from the first content is displayed in the second display area while the display of the head area is displayed in the second preset area, wherein the second The area of the preset area is larger than the area of the first preset area.
在本公开中,该界面操作处理装置200还可以包括第三执行模块以及第四执行模块。其中,第三执行模块用于在所述第一显示区域未在所述触控显示单元上的预设区域时,判断所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;第四执行模块用于在所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离大于预设距离时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。In the present disclosure, the interface operation processing apparatus 200 may further include a third execution module and a fourth execution module. The third execution module is configured to determine that an upper edge of the first content area is from an upper edge of the first display interface when the first display area is not in a preset area on the touch display unit. Whether the distance is greater than the preset distance; the fourth execution module is configured to display in the second display area when the distance of the upper edge of the first content area from the upper edge of the first display interface is greater than a preset distance a fourth content area corresponding to the fourth content different from the first content.
在本公开中,该界面操作处理装置200还可以包括第五执行模块以及第六执行模块。其中,第五执行模块用于判断所述第二内容是否为当前存储的用于显示于所述第二显示区域的数据源中的底部的内容;第六执行模块用于在所述第二内容为当前存储的用于显示于所述第二显示区域的数据源中的底部的内容时,获取加载数据并将所述加载数据存储于所述数据源中。In the present disclosure, the interface operation processing apparatus 200 may further include a fifth execution module and a sixth execution module. The fifth execution module is configured to determine whether the second content is the currently stored content for displaying the bottom of the data source in the second display area, and the sixth execution module is configured to use the second content. When the currently stored content for the bottom of the data source displayed in the second display area is acquired, the load data is acquired and stored in the data source.
在本公开中,该界面操作处理装置200还可以包括第二操作获得模块、第二操作响应模块以及第七执行模块。其中,第二操作获得模块用于获得在所述触控显示单元上进行的第二滑动操作;第二操作响应模块用于响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区 域;第七执行模块用于在所述第二内容区域在所述触控显示单元上的第三预设区域时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。In the present disclosure, the interface operation processing apparatus 200 may further include a second operation obtaining module, a second operation response module, and a seventh execution module. The second operation obtaining module is configured to obtain a second sliding operation performed on the touch display unit; and the second operation response module is configured to determine, according to the second sliding operation, whether the second content area is in the a third preset area on the touch display unit; the seventh execution module is configured to store the second content area when the second content area is in the third preset area on the touch display unit, And displaying, in the second display area, a fifth content area corresponding to the fifth content different from the second content.
本公开中界面操作处理装置200的实现方式和工作原理可以参阅第一实施例中的界面操作处理方法,因而在此不作赘述。For the implementation and working principle of the interface operation processing apparatus 200 in the present disclosure, refer to the interface operation processing method in the first embodiment, and thus no further description is provided herein.
第三实施例Third embodiment
本公开第三实施例提供了一种电子设备100,请参见图1,所述电子设备100包括存储器102和处理器106,所述存储器102存储有计算机指令,当所述计算机指令由所述处理器106读取并执行时,使所述处理器106执行本公开第一实施例提供的界面操作处理方法。A third embodiment of the present disclosure provides an electronic device 100. Referring to FIG. 1, the electronic device 100 includes a memory 102 and a processor 106, the memory 102 storing computer instructions when the computer instructions are processed by the When the processor 106 reads and executes, the processor 106 is caused to execute the interface operation processing method provided by the first embodiment of the present disclosure.
第四实施例Fourth embodiment
本公开第四实施例提供了一种存储介质,所述存储介质中存储有计算机指令,其中,所述计算机指令在被读取并运行时执行本公开第一实施例提供的界面操作处理方法。A fourth embodiment of the present disclosure provides a storage medium in which computer instructions are stored, wherein the computer instructions, when being read and executed, perform the interface operation processing method provided by the first embodiment of the present disclosure.
第五实施例Fifth embodiment
本公开第五实施例提供了一种界面操作处理方法,应用于一电子设备中,所述方法包括:获得在所述电子设备的触控显示单元上进行的第一滑动操作,所述触控显示单元用于显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示所述第一显示界面中与内容对应的内容区域的第二显示区域。响应所述第一滑动操作,判断所述触控显示单元的第一显示区域是否在所述触控显示单元上的第一预设区域。若所述触控显示单元的第一显示区域在所述触控显示单元上的第一预设区域,保持所述头部区域在所述第一预设区域中显示,并在所述第二显示区域显示与之前内容不同的内容对应的内容区域。The fifth embodiment of the present disclosure provides an interface operation processing method, which is applied to an electronic device, and the method includes: obtaining a first sliding operation performed on a touch display unit of the electronic device, where the touch The display unit is configured to display a first display interface, wherein the touch display unit includes a first display area for displaying a head area on the first display interface, and is configured to display the first display interface A second display area of the content area corresponding to the content. In response to the first sliding operation, determining whether the first display area of the touch display unit is in the first preset area on the touch display unit. If the first display area of the touch display unit is in the first preset area on the touch display unit, keep the head area displayed in the first preset area, and in the second The display area displays a content area corresponding to content different from the previous content.
本公开中界面操作处理方法的实现方式和工作原理可以参阅第一实施例中的界面操作处理方法,因而在此不作赘述。For the implementation and working principle of the interface operation processing method in the present disclosure, refer to the interface operation processing method in the first embodiment, and thus no further description is provided herein.
综上所述,本公开提供的界面操作处理方法、装置、电子设备及存储介质,通过在电子设备的触控显示单元上显示第一显示界面,其中,触控显示单元包括用于显示第一显示界面上的头部区域的第一显示区域,和用于显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域,然后获得在触控显示单元上进行的第一滑动操作,再响应第一滑动操作,判断第一显示区域是否在触控显示单元上的第一预设区域,最后在为是时,在保持头部区域在第一预设区域中显示的过程中,在第二显示区域显示与第一内容不同的第二内容对应的第二内容区域。该界面操作处理方法、装置、电子设备及存储介质通过显示界面中的头部区域在预设区域时,将头部区域保持在预设区域中显示,并显示与之前内容不同的内容对应的内容区域,从而避免每次内容区域滚动时都会多次传递参数来实现头部区域与内容区域的同步,造成性能不佳的电子设备可能出现掉帧,显示界面中的滚动不协调的问题。In summary, the interface operation processing method, device, electronic device, and storage medium provided by the present disclosure display the first display interface on the touch display unit of the electronic device, wherein the touch display unit includes the first display a first display area of the head area on the display interface, and a second display area for displaying the first content area corresponding to the first content in the first display interface, and then obtaining the first performed on the touch display unit a sliding operation, in response to the first sliding operation, determining whether the first display area is in the first preset area on the touch display unit, and finally, in the case of YES, maintaining the head area in the first preset area The second content area corresponding to the second content different from the first content is displayed in the second display area. The interface operation processing method, the device, the electronic device, and the storage medium display the head region in the preset region when the head region in the display interface is in the preset region, and display the content corresponding to the content different from the previous content. The area, so as to avoid the parameter being transmitted multiple times each time the content area is scrolled to achieve synchronization between the head area and the content area, causing the electronic device with poor performance to drop frames, and the scrolling in the display interface is not coordinated.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其 他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in the specification is described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the embodiments are referred to each other. can. For the device type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本公开的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and functionality of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present disclosure. operating. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
另外,在本公开各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in various embodiments of the present disclosure may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。The functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the portion of the technical solution of the present disclosure that contributes in essence or to the prior art or the portion of the technical solution may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present disclosure. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above description is only a preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure. It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings.
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域 的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。The above is only the specific embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the disclosure. It should be covered within the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be determined by the scope of the claims.
工业实用性Industrial applicability
本公开提供的界面操作处理方法、装置、电子设备及存储介质,避免每次内容区域滚动时都会多次传递参数来实现头部区域与内容区域的同步,由于没有频繁的数据传输,解决了滑动不同步问题,提高了显示协调性。The interface operation processing method, device, electronic device and storage medium provided by the present disclosure prevent the parameter area from being transmitted multiple times each time the content area is scrolled to realize synchronization between the head area and the content area, and the sliding is solved because there is no frequent data transmission. Unsynchronized issues improve display coordination.

Claims (20)

  1. 一种界面操作处理方法,应用于一电子设备中,其特征在于,所述方法包括:An interface operation processing method is applied to an electronic device, and the method includes:
    在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示所述第一显示界面中与第一内容对应的第一内容区域的第二显示区域;Displaying a first display interface on the touch display unit of the electronic device, wherein the touch display unit includes a first display area for displaying a head area on the first display interface, and for displaying a second display area of the first content area corresponding to the first content in the first display interface;
    获得在所述触控显示单元上进行的第一滑动操作;Obtaining a first sliding operation performed on the touch display unit;
    响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域;Determining, in response to the first sliding operation, whether the first display area is in a first preset area on the touch display unit;
    在为是时,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。When YES, in the process of maintaining the display of the head region in the first preset area, displaying the second content corresponding to the second content different from the first content in the second display area region.
  2. 根据权利要求1所述的方法,其特征在于,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域,包括:The method of claim 1, wherein determining whether the first display area is on the first preset area on the touch display unit, in response to the first sliding operation, comprises:
    响应所述第一滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度;Determining, in response to the first sliding operation, whether a first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between a third height and a fourth height of an actual display area in the first display interface, wherein a sum of a first height of the first display area and a second height of the second display area is the third height;
    在为是时,表示所述第一显示区域在所述触控显示单元上的第一预设区域;When yes, indicating that the first display area is on the first preset area on the touch display unit;
    在为否时,表示所述第一显示区域未在所述第一预设区域。When it is no, it indicates that the first display area is not in the first preset area.
  3. 根据权利要求1或2所述的方法,其特征在于,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域之后,所述方法还包括:The method according to claim 1 or 2, wherein, in response to the first sliding operation, determining whether the first display area is after a first preset area on the touch display unit, the method Also includes:
    在为否时,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。In the case of NO, in the process of keeping the head region displayed in the second preset region, displaying a third content region corresponding to the third content different from the first content in the second display region, The area of the second preset area is larger than the area of the first preset area.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein, in response to the first sliding operation, determining whether the first display area is behind a first preset area on the touch display unit, The method further includes:
    在为否时,判断所述第二显示区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;When it is no, determining whether a distance of an upper edge of the second display area from an upper edge of the first display interface is greater than a preset distance;
    在为是时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。When YES, a fourth content area corresponding to the fourth content different from the first content is displayed in the second display area.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein in the process of maintaining the display of the head region in the first preset region, displaying and After the second content area corresponding to the second content different in the first content, the method further includes:
    判断所述第二内容是否为当前存储的用于显示于所述第二显示区域的数据源中的底部的内容;Determining whether the second content is the currently stored content for the bottom of the data source displayed in the second display area;
    在为是时,获取加载数据并将所述加载数据存储于所述数据源中。When YES, the load data is retrieved and stored in the data source.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域之后,所述方法还包括:The method according to any one of claims 1 to 5, wherein in the process of maintaining the display of the head region in the first preset area, displaying and After the second content area corresponding to the second content different in the first content, the method further includes:
    获得在所述触控显示单元上进行的第二滑动操作;Obtaining a second sliding operation performed on the touch display unit;
    响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区域;Determining, in response to the second sliding operation, whether the second content area is in a third preset area on the touch display unit;
    在为是时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。When YES, the second content area is stored, and a fifth content area corresponding to the fifth content different from the second content is displayed in the second display area.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,在所述电子设备的触控显示单元上显示第一显示界面,包括:The method according to any one of claims 1 to 6, wherein displaying the first display interface on the touch display unit of the electronic device comprises:
    于React Native列表中在ScrollView中嵌套ScrollableTabView,并在ScrollView中放入自定义的header和ScrollableTabView,其中,header为所述头部区域,ScrollableTabView为所述内容区域。The ScrollableTabView is nested in the ScrollView in the React Native list, and a custom header and a ScrollableTabView are placed in the ScrollView, where the header is the header area and the ScrollableTabView is the content area.
  8. 根据权利要求7所述的方法,其特征在于,若所述第一显示区域不在所述触控显示单元上的第一预设区域,则进行以下设定:The method according to claim 7, wherein if the first display area is not in the first preset area on the touch display unit, the following settings are made:
    ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,获得在所述触控显示单元上进行的操作时,滚动整个ScrollView。The ScrollView is a state in which the scrolling is unlocked, and the ScrollableTabView is a state in which the scrolling is locked, and when the operation performed on the touch display unit is obtained, the entire ScrollView is scrolled.
  9. 根据权利要求8所述的方法,其特征在于,若所述第一显示区域在所述触控显示单元上的第一预设区域,则进行以下设定:The method according to claim 8, wherein if the first display area is in the first preset area on the touch display unit, the following settings are made:
    ScrollView锁定滚动,ScrollableTabView解锁滚动,以使头部区域固定在所述第一预设区域显示,并实现对内容区域的滚动浏览。The ScrollView locks the scroll, and the ScrollableTabView unlocks the scroll to make the head area fixed in the first preset area display, and realizes scrolling browsing of the content area.
  10. 根据权利要求7至9任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 7 to 9, wherein the method further comprises:
    在从ScrollView为解锁滚动的状态,ScrollableTabView为锁定滚动的状态,变为ScrollView为锁定滚动的状态,ScrollableTabView为解锁滚动的状态时,将ScrollableTabView滚动至初始显示界面中ScrollableTabView的位置。In the state of scrolling from the ScrollView, the ScrollableTabView is locked and scrolled, and the ScrollView is locked and scrolled. When the ScrollableTabView is unlocked, the ScrollableTabView is scrolled to the position of the ScrollableTabView in the initial display interface.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,所述第二显示区域中包括多个内容区域,所述方法还包括:通过横向滚动将各所述内容区域切换显示于所述第二显示区域。The method according to any one of claims 1 to 10, wherein the second display area comprises a plurality of content areas, the method further comprising: switching each of the content areas to be displayed by horizontal scrolling The second display area is described.
  12. 一种界面操作处理方法,应用于一电子设备中,其特征在于,所述方法包括:An interface operation processing method is applied to an electronic device, and the method includes:
    获得在所述电子设备的触控显示单元上进行的第一滑动操作,所述触控显示单元用于显示第一显示界面,其中,所述触控显示单元包括用于显示所述第一显示界面上的头部区域的第一显示区域,和用于显示所述第一显示界面中与内容对应的内容区域的第二显示区域;Obtaining a first sliding operation on the touch display unit of the electronic device, the touch display unit is configured to display a first display interface, wherein the touch display unit comprises a first display for displaying a first display area of the head area on the interface, and a second display area for displaying a content area corresponding to the content in the first display interface;
    响应所述第一滑动操作,判断所述触控显示单元的第一显示区域是否在所述触控显示单元上的第一 预设区域;Determining, in response to the first sliding operation, whether the first display area of the touch display unit is in a first preset area on the touch display unit;
    若所述触控显示单元的第一显示区域在所述触控显示单元上的第一预设区域,保持所述头部区域在所述第一预设区域中显示,并在所述第二显示区域显示与之前内容不同的内容对应的内容区域。If the first display area of the touch display unit is in the first preset area on the touch display unit, keep the head area displayed in the first preset area, and in the second The display area displays a content area corresponding to content different from the previous content.
  13. 一种界面操作处理装置,应用于一电子设备中,其特征在于,所述装置包括:界面显示模块、第一操作获取模块、第一操作响应模块以及第一执行模块,其中,An interface operation processing device is applied to an electronic device, wherein the device includes: an interface display module, a first operation acquisition module, a first operation response module, and a first execution module, wherein
    所述界面显示模块配置成在所述电子设备的触控显示单元上显示第一显示界面,其中,所述触控显示单元包括配置成显示所述第一显示界面上的头部区域的第一显示区域,和配置成显示第一显示界面中与第一内容对应的第一内容区域的第二显示区域;The interface display module is configured to display a first display interface on the touch display unit of the electronic device, wherein the touch display unit includes a first portion configured to display a head region on the first display interface a display area, and a second display area configured to display a first content area corresponding to the first content in the first display interface;
    所述第一操作获取模块配置成获得在所述触控显示单元上进行的第一滑动操作;The first operation acquiring module is configured to obtain a first sliding operation performed on the touch display unit;
    所述第一操作响应模块配置成响应所述第一滑动操作,判断所述第一显示区域是否在所述触控显示单元上的第一预设区域;The first operation response module is configured to determine, according to the first sliding operation, whether the first display area is in a first preset area on the touch display unit;
    所述第一执行模块配置成在所述第一显示区域在所述触控显示单元上的第一预设区域时,在保持所述头部区域在所述第一预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第二内容对应的第二内容区域。The first execution module is configured to maintain the display of the head region in the first preset area when the first display area is in the first preset area on the touch display unit And displaying, in the second display area, a second content area corresponding to the second content different from the first content.
  14. 根据权利要求13所述的装置,其特征在于,所述第一操作响应模块包括第一判断单元以及判定执行单元,其中,The apparatus according to claim 13, wherein the first operation response module comprises a first determining unit and a determining executing unit, wherein
    所述第一判断单元配置成响应所述第一滑动操作,判断所述第一滑动操作对应的第一滑动距离是否大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差,其中,所述第一显示区域的第一高度与所述第二显示区域的第二高度之和为所述第三高度;The first determining unit is configured to determine, according to the first sliding operation, whether the first sliding distance corresponding to the first sliding operation is greater than or equal to a third height and a first display area of the first display interface a difference of four heights, wherein a sum of a first height of the first display area and a second height of the second display area is the third height;
    所述判定执行单元配置成在所述第一滑动操作对应的第一滑动距离大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,判定所述第一显示区域在所述触控显示单元上的第一预设区域;The determination execution unit is configured to determine that the first sliding distance corresponding to the first sliding operation is greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface a first preset area of the display area on the touch display unit;
    所述判定执行单元还配置成在所述第一滑动操作对应的第一滑动距离未大于或者等于第三高度与所述第一显示界面中的实际显示区域的第四高度的差时,判定所述第一显示区域未在所述的第一预设区域。The determination execution unit is further configured to determine that the first sliding distance corresponding to the first sliding operation is not greater than or equal to a difference between the third height and a fourth height of the actual display area in the first display interface The first display area is not in the first preset area.
  15. 根据权利要求13或14所述的装置,其特征在于,所述装置还包括第二执行模块,所述第二执行模块配置成在所述第一显示区域未在所述触控显示单元上的第一预设区域时,在保持所述头部区域在第二预设区域中显示的过程中,在所述第二显示区域显示与所述第一内容不同的第三内容对应的第三内容区域,其中,所述第二预设区域的面积大于所述第一预设区域的面积。The device according to claim 13 or 14, wherein the device further comprises a second execution module, the second execution module being configured to be not on the touch display unit in the first display area In the first preset area, in the process of keeping the head area displayed in the second preset area, displaying the third content corresponding to the third content different from the first content in the second display area And an area, wherein an area of the second preset area is larger than an area of the first preset area.
  16. 根据权利要求13至15任一项所述的装置,其特征在于,所述装置还包括第三执行模块以及第四执行模块,其中,所述第三执行模块配置成在所述第一显示区域未在所述触控显示单元上的预设区域时, 判断所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离是否大于预设距离;所述第四执行模块配置成在所述第一内容区域的上边缘距离所述第一显示界面的上边缘的距离大于预设距离时,在所述第二显示区域显示与所述第一内容不同的第四内容对应的第四内容区域。The apparatus according to any one of claims 13 to 15, wherein the apparatus further comprises a third execution module and a fourth execution module, wherein the third execution module is configured to be in the first display area When it is not in the preset area on the touch display unit, determining whether the distance of the upper edge of the first content area from the upper edge of the first display interface is greater than a preset distance; the fourth execution module configuration Displaying, in the second display area, a fourth content different from the first content, when a distance from an upper edge of the first content area to an upper edge of the first display interface is greater than a preset distance The fourth content area.
  17. 根据权利要求13至16任一项所述的装置,其特征在于,所述装置还包括第五执行模块以及第六执行模块,其中,所述第五执行模块配置成判断所述第二内容是否为当前存储的配置成显示于所述第二显示区域的数据源中的底部的内容;所述第六执行模块配置成在所述第二内容为当前存储的配置成显示于所述第二显示区域的数据源中的底部的内容时,获取加载数据并将所述加载数据存储于所述数据源中。The apparatus according to any one of claims 13 to 16, wherein the apparatus further comprises a fifth execution module and a sixth execution module, wherein the fifth execution module is configured to determine whether the second content is Configuring, for the current storage, content displayed at a bottom of the data source of the second display area; the sixth execution module configured to display the second content as currently stored for display on the second display When the content of the bottom of the data source of the region is acquired, the load data is acquired and stored in the data source.
  18. 根据权利要求13至17任一项所述的装置,其特征在于,所述装置还包括第二操作获得模块、第二操作响应模块以及第七执行模块,其中,所述第二操作获得模块配置成获得在所述触控显示单元上进行的第二滑动操作;所述第二操作响应模块配置成响应所述第二滑动操作,判断所述第二内容区域是否在所述触控显示单元上的第三预设区域;所述第七执行模块配置成在所述第二内容区域在所述触控显示单元上的第三预设区域时,存储所述第二内容区域,并在所述第二显示区域显示与所述第二内容不同的第五内容对应的第五内容区域。The apparatus according to any one of claims 13 to 17, wherein the apparatus further comprises a second operation obtaining module, a second operation response module, and a seventh execution module, wherein the second operation obtaining module configuration Obtaining a second sliding operation performed on the touch display unit; the second operation response module is configured to determine whether the second content area is on the touch display unit in response to the second sliding operation a third preset area; the seventh execution module is configured to store the second content area when the second content area is in a third preset area on the touch display unit, and in the The second display area displays a fifth content area corresponding to the fifth content different from the second content.
  19. 一种电子设备,其特征在于,所述电子设备包括存储器和处理器,所述存储器存储有计算机指令,当所述计算机指令由所述处理器读取并执行时,使所述处理器执行如权利要求1-12中任一权项所述的方法。An electronic device, comprising: a memory and a processor, the memory storing computer instructions that, when read and executed by the processor, cause the processor to perform The method of any of claims 1-12.
  20. 一种存储介质,其特征在于,所述存储介质中存储有计算机指令,其中,所述计算机指令在被读取并运行时执行如权利要求1-12中任一权项所述的方法。A storage medium, wherein the storage medium stores computer instructions, wherein the computer instructions, when read and executed, perform the method of any of claims 1-12.
PCT/CN2018/090296 2018-01-02 2018-06-07 Interface operation processing method and apparatus, electronic device, and storage medium WO2019134344A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810001180.3 2018-01-02
CN201810001180.3A CN108021323A (en) 2018-01-02 2018-01-02 Interface operation processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019134344A1 true WO2019134344A1 (en) 2019-07-11

Family

ID=62072421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090296 WO2019134344A1 (en) 2018-01-02 2018-06-07 Interface operation processing method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN108021323A (en)
WO (1) WO2019134344A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021323A (en) * 2018-01-02 2018-05-11 武汉斗鱼网络科技有限公司 Interface operation processing method, device, electronic equipment and storage medium
CN109656639B (en) * 2018-12-25 2022-04-15 深圳创维数字技术有限公司 Interface rolling method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5398310A (en) * 1992-04-13 1995-03-14 Apple Computer, Incorporated Pointing gesture based computer note pad paging and scrolling interface
CN104008115A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Title bar displaying method and system of WAP (wireless application protocol) page
CN106406712A (en) * 2016-10-21 2017-02-15 广州酷狗计算机科技有限公司 Information display method and device
CN107247536A (en) * 2017-06-02 2017-10-13 武汉斗鱼网络科技有限公司 Method of adjustment, storage medium, electronic equipment and the system of live interfacial clarity
CN108021323A (en) * 2018-01-02 2018-05-11 武汉斗鱼网络科技有限公司 Interface operation processing method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5398310A (en) * 1992-04-13 1995-03-14 Apple Computer, Incorporated Pointing gesture based computer note pad paging and scrolling interface
CN104008115A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Title bar displaying method and system of WAP (wireless application protocol) page
CN106406712A (en) * 2016-10-21 2017-02-15 广州酷狗计算机科技有限公司 Information display method and device
CN107247536A (en) * 2017-06-02 2017-10-13 武汉斗鱼网络科技有限公司 Method of adjustment, storage medium, electronic equipment and the system of live interfacial clarity
CN108021323A (en) * 2018-01-02 2018-05-11 武汉斗鱼网络科技有限公司 Interface operation processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108021323A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
US11048404B2 (en) Information processing apparatus, information processing method, and program
US20180011818A1 (en) Webpage Update Method And Apparatus
US10712918B2 (en) User terminal device and displaying method thereof
US9733815B2 (en) Split-screen display method and apparatus, and electronic device thereof
CN104508684B (en) Using photos to set operating system colors
EP3093755B1 (en) Mobile terminal and control method thereof
US20130176248A1 (en) Apparatus and method for displaying screen on portable device having flexible display
US10417991B2 (en) Multi-display device user interface modification
EP3198409B1 (en) Partitioned application presentation across devices
WO2021072926A1 (en) File sharing method, apparatus, and system, interactive smart device, source end device, and storage medium
EP3044658B1 (en) Scroll end effects for websites and content
US10204079B2 (en) Method and apparatus for displaying an extended function information area
WO2019134344A1 (en) Interface operation processing method and apparatus, electronic device, and storage medium
EP4357892A1 (en) Desktop management method for terminal device, and terminal device
KR20170026272A (en) Apparatus and method for editing contents
KR20150095536A (en) User terminal device and method for displaying thereof
US20140267816A1 (en) Electronic device and method for processing image
US9805016B2 (en) Techniques to present a dynamic formula bar in a spreadsheet
WO2014161357A1 (en) Method and device for displaying browser resources and computer readable storage medium
US20220221970A1 (en) User interface modification
US9489883B2 (en) Electronic apparatus and method of displaying image thereof
EP3198411B1 (en) View management architecture
EP2857950A2 (en) Adaptive determination of information display
EP2911115B1 (en) Electronic device and method for color extraction
CN105094858B (en) A kind of loading method and device of list control

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18898869

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898869

Country of ref document: EP

Kind code of ref document: A1