[go: up one dir, main page]

CN107506127A - A kind of view control control method, equipment and storage medium - Google Patents

A kind of view control control method, equipment and storage medium Download PDF

Info

Publication number
CN107506127A
CN107506127A CN201710629511.3A CN201710629511A CN107506127A CN 107506127 A CN107506127 A CN 107506127A CN 201710629511 A CN201710629511 A CN 201710629511A CN 107506127 A CN107506127 A CN 107506127A
Authority
CN
China
Prior art keywords
screen
view control
sliding event
screen sliding
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710629511.3A
Other languages
Chinese (zh)
Inventor
朱建
朱建一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201710629511.3A priority Critical patent/CN107506127A/en
Publication of CN107506127A publication Critical patent/CN107506127A/en
Pending legal-status Critical Current

Links

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/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
    • 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

Landscapes

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

Abstract

The invention discloses a kind of view control control method, equipment and storage medium.This method includes:Whether detection screen slip event meets preparatory condition;When detecting that screen slip event meets preparatory condition, judged still to handle screen slip event by the second view control by the first view control according to glide direction of the Shipping Options Page indicator in the position of screen and screen slip event;Wherein, the first view control and the second view control are different controls.The invention enables view control can accurately being handled in screen position relation pair screen slip event according to screen slip event and control, the problem of effectively avoiding controlling because of slide between each control by mistake.

Description

View control method, device and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a method, an apparatus, and a storage medium for controlling a view control.
Background
With the development of computer technology, people rely on mobile terminals more and more, such as smart phones, electronic books, tablet computers and the like, and the mobile terminals gradually become an essential part of work and life of people. Meanwhile, various applications around the mobile terminal are also endless, so that diversified functions are provided for the mobile terminal, and the life of people is enriched.
Most of the current mobile terminals are based on touch operation, which has become the mainstream operation mode of the current mobile terminals, and effectively improves the use experience of users. Based on the limitation of the touch operation mode, the application used in the mobile terminal is presented in a single-window and multi-view mode. However, most of the multiple views of the current application are implemented by using view controls, and when multiple view controls exist in one view, a problem of a slide event conflict is caused.
Disclosure of Invention
The invention provides a view control method, a device and a storage medium, which are used for solving the problem of sliding event conflict caused when multiple controls are simultaneously used in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
according to an aspect of the present invention, there is provided a view control method, including:
detecting whether a screen sliding event meets a preset condition or not;
when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by a first view control or a second view control according to the position of a label page indicator on a screen and the sliding direction of the screen sliding event;
wherein the first view control and the second view control are different controls.
Optionally, the detecting whether the screen sliding event meets a preset condition includes:
detecting the transverse displacement and the vertical displacement of the screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
and when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets the preset condition.
Optionally, the detecting a lateral displacement and a vertical displacement of the screen sliding event, and determining whether the vertical displacement is greater than the lateral displacement specifically includes:
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
and when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement.
Optionally, the method further includes:
when the screen sliding event is detected not to meet the preset condition, processing the screen sliding event by a third view control; wherein the third view control is a toggle view control.
Optionally, the first view control is a scroll view control;
when it is detected that the screen sliding event meets the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the tab indicator on the screen and the sliding direction of the screen sliding event, including:
processing, by the scroll view control, the screen swipe event when the tab page indicator is not at the top of the screen; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page slides to the top of the screen, processing the screen sliding event by the scroll view control.
Optionally, the second view control is a list view control in the current page; when it is detected that the screen sliding event meets the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the tab indicator on the screen and the sliding direction of the screen sliding event, including:
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page does not slide to the top of the screen, processing the screen sliding event by the list view control.
According to an aspect of the present invention, there is provided a view control controlling apparatus, including a processor and a memory; the memory having stored thereon a computer program operable on the processor, the computer program when executed by the processor implementing the steps of:
detecting whether a screen sliding event meets a preset condition or not;
when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by a first view control or a second view control according to the position of a label page indicator on a screen and the sliding direction of the screen sliding event;
wherein the first view control and the second view control are different controls.
Optionally, when the computer program is executed by the processor, the following steps are implemented;
detecting the transverse displacement and the vertical displacement of the screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
and when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets the preset condition.
Optionally, when the computer program is executed by the processor, the following steps are implemented;
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
and when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement.
Optionally, the computer program when executed by the processor further implements the following steps;
when the screen sliding event is detected not to meet the preset condition, processing the screen sliding event by a third view control; wherein the third view control is a toggle view control.
Optionally, the first view control is a scroll view control; when the computer program is executed by the processor, the following steps are implemented;
processing, by the scroll view control, the screen swipe event when the tab page indicator is not at the top of the screen; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page slides to the top of the screen, processing the screen sliding event by the scroll view control.
Optionally, the second view control is a list view control in the current page; when the computer program is executed by the processor, the following steps are implemented;
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page does not slide to the top of the screen, processing the screen sliding event by the list view control.
According to an aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the method as described above.
The invention has the following beneficial effects:
according to the view control method provided by the embodiment of the invention, the control operation of each view control is split, so that the view control can accurately process the screen sliding event according to the screen sliding event and the position relation of the control on the screen, and the problem of error control of each control due to the sliding operation is effectively avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to illustrate the embodiments or prior art of the present invention more clearly, the drawings needed for the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a flowchart of a view control method provided in an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface layout structure according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a view control apparatus provided in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
The mixed use of the multiple view controls is used in the embodiment of the invention, and the embodiment is applicable to the situations that the scroll view control, the view page control, the label page indicator, the list view control and the like exist at the same time. By splitting the control operation of each view control, the view controls can accurately process screen sliding events according to the screen sliding events and the position relation of the controls on the screen, and the problem of error control of the controls due to the sliding operation is effectively avoided. The technical content of the present invention will be described in detail with reference to specific examples.
Method embodiment
An embodiment of the present invention further provides a view control method, as shown in fig. 1, which specifically includes the following steps:
step 101, detecting whether a screen sliding event meets a preset condition.
In this step, when a user makes a touch gesture on the screen, it is automatically detected whether the touch gesture triggers a screen sliding event. The screen sliding event must generate displacement in the horizontal or vertical coordinate, and the screen sliding event is triggered only when the displacement exists.
Here, the preset condition is a condition for judging whether or not the current screen sliding event is a slide up and down operation. Because the view control in the present invention is mainly used for performing corresponding processing according to the screen sliding event of the user, an important feature of the screen sliding event is that the screen sliding event has directionality. Thus, a variety of different operations can be distinguished depending on the sliding direction.
Optionally, when detecting whether the screen sliding event meets the preset condition, the method includes:
detecting the transverse displacement and the vertical displacement of a screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets a preset condition; and when the vertical displacement is judged to be less than or equal to the transverse displacement, judging that the screen sliding event does not meet the preset condition.
It is noted that, in this embodiment, the screen sliding event is mainly an operation including both directions of sliding up and down and sliding left and right. And the vertical sliding and the left-right sliding can be accurately distinguished according to the displacement of the abscissa and the ordinate of the screen sliding event.
Further, when the screen sliding event meets the preset condition, that is, when the screen sliding event is a vertical sliding operation, the determination processing of step 102 may be further performed. And when the screen sliding event does not meet the preset condition, namely, the screen sliding event is processed by the third view control in the left-right sliding operation. The third view control here is a toggle view control. In general, in an application of a mobile terminal, a plurality of pages are included, and switching between the pages is realized through a switching view control controlling a left-right sliding operation.
Optionally, in order to avoid identifying that the false touch operation of the user is a screen sliding event, when detecting the lateral displacement and the vertical displacement of the screen sliding event and determining whether the vertical displacement is greater than the lateral displacement, the method specifically includes the following steps:
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement; otherwise, the screen sliding event is ignored.
Therefore, the screen sliding event can be effectively prevented from being mistakenly identified by clicking and other actions by simultaneously judging the transverse displacement and the vertical displacement.
102, when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the label page indicator on the screen and the sliding direction of the screen sliding event; wherein the first view control and the second view control are different controls.
In this embodiment, the view control that handles the screen sliding event includes, in addition to the above-mentioned switching view control, a first view control and a second view control that are operated by sliding up and down. Specifically, the first view control is a scroll view control, and is used for controlling the whole view page to scroll up and down; and the second view control is a list view control. The list view control here is a list view control in the current page. It is mentioned above that the application of the mobile terminal includes a plurality of pages, and each page may include a list view control. When it is detected that the screen sliding event is up-down sliding, it is further determined whether the sliding operation is up-down scrolling of the entire view or scrolling of the list view in each page.
Specifically, when it is detected that the screen sliding event meets the preset condition, whether the screen sliding event is processed by the first view control or the second view control is judged according to the position of the tab indicator on the screen and the sliding direction of the screen sliding event, which includes the following steps:
when the tab indicator is not at the top of the screen, the scroll view control processes the screen sliding event; or,
when the tab page indicator is at the top of the screen and the screen sliding event is downward sliding, and the list view control in the current page slides to the top of the screen, the screen sliding event is processed by the scroll view control; or,
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
when the tab indicator is at the top of the screen and the screen slide event is a down slide, and the list view control in the current page does not slide to the top of the screen, the list view control handles the screen slide event.
The list view control here is the list view control contained in the page when each page content (Fragment is used here) is implemented.
In this embodiment, the tab page indicator has an initial position in the entire page, and when the display on the screen cannot display its initial position (e.g., when the screen displays 10 lines and the entire page is 100 lines, the entire page can be viewed through a scrolling operation, and when the tab page indicator is on line 9 and the current minimum number of lines is greater than 9 lines), the tab page indicator hovers over to the top of the screen to display the tab of the current page. Therefore, through the position of the tab indicator and the sliding direction of the screen sliding event, whether the screen sliding event is processed by the scroll view control or the list view control can be accurately distinguished.
The present invention will be described in detail with reference to a specific embodiment.
As shown in fig. 2, in this embodiment, first, a ScrollView control at the outermost layer needs to be customized to implement scrolling of a page by sliding up and down. The horizontal listView list view control is a self-defined control in a page, and the control only describes one page layout and is irrelevant to the control method of the invention. And the viewport is used for realizing the switching of the pages through left-right sliding. The tabbed indicator is used to display the tab information of Fragment. The Viewmanager may include a plurality of fragments for implementing specific content of each page, and each Fragment may be implemented by a listView list view control, where the listView has a pull-up loading function.
Whether the screen sliding event meets the preset condition or not can be detected by an onInterceptTouchervent method in ScrollView, and the method specifically comprises the following steps:
and acquiring the horizontal and vertical displacement distance of the gesture as xDistance and yDistance through a MontionEvent. Since ViewPager is a lateral slide, ScrollView is a vertical slide. When the finger of the user slides on the screen, the user needs to judge whether the user slides vertically or horizontally to solve the problem of the sliding conflict between the viewer and the ScrollView. The implementation mode is as follows:
if(xDistance>yDistance){
return false;
}
when a user clicks a screen control, slight movement displacement can be generated, so that some fault-tolerant processing needs to be performed on clicking to prevent a clicking event of the user from being taken as a sliding event, and whether horizontal and vertical movement displacement meets a preset threshold or not is judged, so that the realization mode is as follows:
if(yDistance<10&&xDistance<10){
return false;
}
since ScrollView is a vertical slide, and ListView in Fragment in ViewPager is also a vertical slide, it needs to be solved when the vertical slide is handed to the ScrollView process and when the vertical slide is handed to the Listview process. In this embodiment, this is achieved by:
(1) when the TabPageindicator has hung on the top of the screen and the slide operation is sliding down, and the listview is not on the top of the screen, the screen slide event is directly handed to the listview process.
Specifically, when it is detected that the TabPageIndicator has hung on the top of the screen. This may be accomplished by a flag, which represents whether the TabPageindicator is at the top of the screen. And detecting that listview is not realized at the top of the screen by a viewpagefragment. The method monitors whether listview in the ViewPager slides to the top of the interface through Fragment in the ViewPager. The method comprises the following specific steps:
where, yRawDown represents a y-axis coordinate value at the time of depression acquired by a conditional event. And the ViewPager Fragment islistreachttop listens to whether listview therein slides to the top of the interface through the Fragment in the ViewPager.
Specifically, listening to the sliding change of listview through onScroll in Fragment in ViewPager obtains the value of true or false of ViewPager Fragment.
(2) When the TabPageindicator has hung on the top of the screen and the slide operation is to slide upwards, the screen slide event is directly handed to listview processing. The implementation code is as follows:
else if(flag&&yRawDown>yRawMove){
return false;
}
(3) when the TabPageindicator has not reached the top of the screen, the screen sliding event is handed to the scrollview process. The implementation code is as follows:
else if(!flag){return true;}
(4) when the TabPageindicator has hung on top of the screen and the slide operation is to slide down, and listview is at the top of the screen, then the screen slide event is handed to the scrollview process.
Based on the above, in the embodiment of the present invention, by combining the top of the screen and the sliding direction of the screen sliding event according to the tab indicator, the events controlled by ListView in Fragment in scrollview and ViewPager can be effectively distinguished, so that the situation that multiple view controls collide with each other due to one screen sliding event is avoided.
Apparatus embodiment
An embodiment of the present invention further provides a view control device, which is used to implement the above method, and as shown in fig. 3, the device includes a processor 32 and a memory 31 storing executable instructions of the processor 32;
the processor 32 may be a general-purpose processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
The memory 31 is used for storing the program codes and transmitting the program codes to the CPU. The memory 31 may include a volatile memory (volatile memory), such as a Random Access Memory (RAM); the memory 31 may also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); the memory 31 may also comprise a combination of memories of the kind described above.
Specifically, the view control device provided in the embodiment of the present invention includes a processor 32 and a memory 31; the memory 31 has stored thereon a computer program operable on the processor 32, which when executed by the processor 32, performs the steps of:
detecting whether a screen sliding event meets a preset condition or not;
when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the label page indicator on the screen and the sliding direction of the screen sliding event; the first view control and the second view control are different controls.
Alternatively, the following steps are implemented when the computer program is executed by the processor 32;
detecting the transverse displacement and the vertical displacement of a screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
and when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets a preset condition.
Alternatively, the following steps are implemented when the computer program is executed by the processor 32;
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
and when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement.
Optionally, the following steps are also implemented when the computer program is executed by the processor 32;
when the screen sliding event is detected not to meet the preset condition, processing the screen sliding event by the third view control; and the third view control is a switching view control.
Optionally, the first view control is a scroll view control; the following steps are implemented when the computer program is executed by the processor 32;
when the tab indicator is not at the top of the screen, the scroll view control processes the screen sliding event; or,
when the tab indicator is at the top of the screen and the screen slide event is a down slide, and the list view control in the current page slides to the top of the screen, the screen slide event is handled by the scroll view control.
Optionally, the second view control is a list view control in the current page; the following steps are implemented when the computer program is executed by the processor 32;
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
when the tab indicator is at the top of the screen and the screen slide event is a down slide, and the list view control in the current page does not slide to the top of the screen, the list view control handles the screen slide event.
Storage Medium embodiment
The embodiment of the invention also provides a computer readable storage medium. The computer-readable storage medium herein stores one or more programs. Among other things, computer-readable storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above. When the one or more programs in the computer-readable storage medium are executed by one or more processors, some or all of the steps in the method for controlling the view control in the above-described method embodiments are implemented.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.
Although the present application has been described with reference to embodiments, those skilled in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (13)

1. A view control method, comprising:
detecting whether a screen sliding event meets a preset condition or not;
when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by a first view control or a second view control according to the position of a label page indicator on a screen and the sliding direction of the screen sliding event;
wherein the first view control and the second view control are different controls.
2. The method according to claim 1, wherein the detecting whether the screen sliding event meets a preset condition comprises:
detecting the transverse displacement and the vertical displacement of the screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
and when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets the preset condition.
3. The method according to claim 2, wherein the detecting a lateral displacement and a vertical displacement of the screen sliding event and determining whether the vertical displacement is greater than the lateral displacement specifically comprises:
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
and when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement.
4. The method according to any one of claims 1 to 3, further comprising:
when the screen sliding event is detected not to meet the preset condition, processing the screen sliding event by a third view control; wherein the third view control is a toggle view control.
5. The method according to any one of claims 1 to 3, wherein the first view control is a scroll view control;
when it is detected that the screen sliding event meets the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the tab indicator on the screen and the sliding direction of the screen sliding event, including:
processing, by the scroll view control, the screen swipe event when the tab page indicator is not at the top of the screen; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page slides to the top of the screen, processing the screen sliding event by the scroll view control.
6. The method according to any one of claims 1 to 3, wherein the second view control is a list view control in a current page; when it is detected that the screen sliding event meets the preset condition, judging whether the screen sliding event is processed by the first view control or the second view control according to the position of the tab indicator on the screen and the sliding direction of the screen sliding event, including:
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page does not slide to the top of the screen, processing the screen sliding event by the list view control.
7. A view control apparatus comprising a processor and a memory; the memory having stored thereon a computer program operable on the processor, the computer program when executed by the processor implementing the steps of:
detecting whether a screen sliding event meets a preset condition or not;
when the screen sliding event is detected to meet the preset condition, judging whether the screen sliding event is processed by a first view control or a second view control according to the position of a label page indicator on a screen and the sliding direction of the screen sliding event;
wherein the first view control and the second view control are different controls.
8. The apparatus according to claim 7, characterized in that the computer program realizes the following steps when executed by the processor;
detecting the transverse displacement and the vertical displacement of the screen sliding event, and judging whether the vertical displacement is greater than the transverse displacement;
and when the vertical displacement is larger than the transverse displacement, judging that the screen sliding event meets the preset condition.
9. The apparatus according to claim 8, characterized in that the computer program realizes the following steps when executed by the processor;
judging whether the transverse displacement and the vertical displacement meet a preset threshold value or not;
and when the transverse displacement and the vertical displacement are judged to meet the preset threshold value, further judging whether the vertical displacement is larger than the transverse displacement.
10. An apparatus according to any of claims 7-9, characterized in that the computer program, when being executed by the processor, further realizes the following steps;
when the screen sliding event is detected not to meet the preset condition, processing the screen sliding event by a third view control; wherein the third view control is a toggle view control.
11. The apparatus according to any one of claims 7 to 9, wherein the first view control is a scroll view control; when the computer program is executed by the processor, the following steps are implemented;
processing, by the scroll view control, the screen swipe event when the tab page indicator is not at the top of the screen; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page slides to the top of the screen, processing the screen sliding event by the scroll view control.
12. The device according to any one of claims 7 to 9, wherein the second view control is a list view control in a current page; when the computer program is executed by the processor, the following steps are implemented;
when the tab indicator is at the top of the screen and the screen sliding event slides upwards, the list view control processes the screen sliding event; or,
and when the tab page indicator is at the top of the screen, the screen sliding event is downward sliding, and the list view control in the current page does not slide to the top of the screen, processing the screen sliding event by the list view control.
13. A computer readable storage medium, storing one or more programs, which are executable by one or more processors, to implement the steps in the view control method of any one of claims 1 to 6.
CN201710629511.3A 2017-07-28 2017-07-28 A kind of view control control method, equipment and storage medium Pending CN107506127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710629511.3A CN107506127A (en) 2017-07-28 2017-07-28 A kind of view control control method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710629511.3A CN107506127A (en) 2017-07-28 2017-07-28 A kind of view control control method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN107506127A true CN107506127A (en) 2017-12-22

Family

ID=60690291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710629511.3A Pending CN107506127A (en) 2017-07-28 2017-07-28 A kind of view control control method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107506127A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471835A (en) * 2018-09-17 2019-03-15 咪咕数字传媒有限公司 Application program page display method, device and storage medium
CN109725795A (en) * 2018-12-27 2019-05-07 北京字节跳动网络技术有限公司 A kind of method, apparatus and computer readable medium for Multi-view display
CN110083288A (en) * 2019-04-22 2019-08-02 百度在线网络技术(北京)有限公司 The control method of display interface, system, calculates equipment and readable medium at device
CN110568974A (en) * 2019-09-11 2019-12-13 北京齐尔布莱特科技有限公司 sliding view display method and device and mobile terminal
CN111381666A (en) * 2018-12-27 2020-07-07 北京右划网络科技有限公司 Control method and device based on sliding gesture, terminal equipment and storage medium
CN112379958A (en) * 2020-11-18 2021-02-19 吉林亿联银行股份有限公司 Sliding control method and device for application program page
CN112783394A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 List page display method and device
CN115061604A (en) * 2022-08-01 2022-09-16 聚好看科技股份有限公司 Terminal device and display method of negative one-screen interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838502A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Sliding identification method and device
CN104281374A (en) * 2013-07-01 2015-01-14 博雅网络游戏开发(深圳)有限公司 Method and system for achieving sliding list module
CN106354404A (en) * 2016-08-15 2017-01-25 合网络技术(北京)有限公司 Page operation method and device
CN106648333A (en) * 2016-12-15 2017-05-10 天脉聚源(北京)传媒科技有限公司 Interface treatment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838502A (en) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 Sliding identification method and device
CN104281374A (en) * 2013-07-01 2015-01-14 博雅网络游戏开发(深圳)有限公司 Method and system for achieving sliding list module
CN106354404A (en) * 2016-08-15 2017-01-25 合网络技术(北京)有限公司 Page operation method and device
CN106648333A (en) * 2016-12-15 2017-05-10 天脉聚源(北京)传媒科技有限公司 Interface treatment method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471835A (en) * 2018-09-17 2019-03-15 咪咕数字传媒有限公司 Application program page display method, device and storage medium
CN109725795A (en) * 2018-12-27 2019-05-07 北京字节跳动网络技术有限公司 A kind of method, apparatus and computer readable medium for Multi-view display
CN111381666A (en) * 2018-12-27 2020-07-07 北京右划网络科技有限公司 Control method and device based on sliding gesture, terminal equipment and storage medium
CN111381666B (en) * 2018-12-27 2023-08-01 北京右划网络科技有限公司 Control method and device based on sliding gesture, terminal equipment and storage medium
CN110083288A (en) * 2019-04-22 2019-08-02 百度在线网络技术(北京)有限公司 The control method of display interface, system, calculates equipment and readable medium at device
CN110083288B (en) * 2019-04-22 2021-04-16 百度在线网络技术(北京)有限公司 Display interface control method, device and system, computing equipment and readable medium
CN110568974A (en) * 2019-09-11 2019-12-13 北京齐尔布莱特科技有限公司 sliding view display method and device and mobile terminal
CN110568974B (en) * 2019-09-11 2021-04-23 北京齐尔布莱特科技有限公司 Sliding view display method and device and mobile terminal
CN112783394A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 List page display method and device
CN112379958A (en) * 2020-11-18 2021-02-19 吉林亿联银行股份有限公司 Sliding control method and device for application program page
CN115061604A (en) * 2022-08-01 2022-09-16 聚好看科技股份有限公司 Terminal device and display method of negative one-screen interface
CN115061604B (en) * 2022-08-01 2023-09-29 聚好看科技股份有限公司 Terminal equipment and display method of negative one-screen interface

Similar Documents

Publication Publication Date Title
CN107506127A (en) A kind of view control control method, equipment and storage medium
US11314393B2 (en) Method for performing operation to select entries on touchscreen and terminal
US10175852B2 (en) Information processing methods and electronic devices for classifying applications
US8633909B2 (en) Information processing apparatus, input operation determination method, and input operation determination program
CN103309561B (en) Method and device for processing information
US10649644B2 (en) Controlling multitasking application displays using gestures
AU2017203910B2 (en) Glove touch detection
CN103365570B (en) A kind of method and device selecting content
US10055118B2 (en) Information processing method and electronic device
EP2560086B1 (en) Method and apparatus for navigating content on screen using pointing device
CN104991696B (en) A kind of information processing method and electronic equipment
WO2017202287A1 (en) Page swiping method and device
CN106708399A (en) Touch method for electronic terminal with double-side curved surface screens and device
CN104461312A (en) Display control method and electronic equipment
US20150199058A1 (en) Information processing method and electronic device
CN104536643A (en) Icon dragging method and terminal
CN105335089A (en) Page switch method and device based on intelligent terminal
CN107179859A (en) The display methods and mobile terminal of a kind of detail information
WO2014190862A1 (en) Method and apparatus for controlling application on intelligent terminal
CN106527937B (en) Method for adding mobile terminal widget and mobile terminal
CN106201308A (en) A kind of pressing operation method and electronic equipment
CN103399711A (en) Display control method of pop-up window and terminal
CN108108078B (en) Electronic equipment, display control method and related products
CN106201295B (en) Message copying method and device and intelligent terminal
JP2016110604A (en) Page turning system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171222

RJ01 Rejection of invention patent application after publication