Disclosure of Invention
In view of the above, the present invention provides a method for sliding a display interface and a mobile terminal, which can enhance usability of the mobile terminal and improve user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for sliding a display interface, which comprises the following steps:
after a dialog box or a menu for sliding locking of the display interface is popped up on the display interface of the touch screen, when the setting operation of the display interface is detected, the sliding locking of the display interface is released.
In the above solution, the releasing the slide lock on the display interface includes:
and hiding the dialog box or the menu to enable the display interface to be in a state capable of performing sliding operation.
In the foregoing solution, the setting operation includes: clicking and sliding the display interface, or double clicking and sliding the display interface, or continuously clicking and sliding the display interface.
In the above scheme, the sliding operation is a sliding operation in which the sliding distance exceeds a set threshold.
In the above scheme, the method further comprises:
and when the touch screen receives the selected operation of the object to be operated in the display interface, popping up the dialog box or the menu on the display interface.
In the above scheme, the set threshold is 3 to 15 mm.
In the above scheme, the method further comprises:
after the sliding lock of the display interface is released, the object to be operated in the display interface slides by the sliding distance corresponding to the sliding operation.
The present invention also provides a mobile terminal, comprising: an ejection unit, a detection unit, and a removal unit; wherein,
the popup unit is used for popping up a dialog box or a menu locked by sliding of a display interface of the touch screen;
the detection unit is used for detecting the setting operation of the display interface;
the releasing unit is used for releasing the sliding locking of the display interface.
In the foregoing solution, the release unit is configured to hide the dialog box or the menu, so that the display interface is in a state where a sliding operation can be performed.
In the foregoing solution, the setting operation includes: clicking and sliding the display interface, or double clicking and sliding the display interface, or continuously clicking and sliding the display interface; wherein the sliding operation is a sliding operation in which the sliding distance exceeds a set threshold.
In the above scheme, the set threshold is 3 to 15 mm.
In the above solution, the mobile terminal further includes a sliding unit; the sliding unit is used for sliding the sliding distance corresponding to the sliding operation.
According to the method and the mobile terminal for sliding the display interface, after a dialog box or a menu for sliding and locking the display interface pops up on the display interface of the touch screen, when the setting operation of the display interface is detected, the sliding and locking of the display interface is released. After the sliding lock of the display interface is released, the sliding of the display interface can be performed according to the user's will. By using the method and the device, the sliding operation of the display interface can be continuously realized after the dialog box or the menu appears on the display interface, so that the user experience is improved, and the usability of the mobile terminal is enhanced.
Detailed Description
The invention provides a method for sliding a display interface, which comprises the following steps of:
step 11: and popping up a dialog box or a menu for sliding locking of the display interface on the display interface of the touch screen.
Here, when the touch screen receives a selected operation on an object to be operated in a display interface, the dialog box pops up or the menu pops up on the display interface.
Wherein the display interface comprises: the mobile terminal is provided with a function list and a browsable webpage generated by connecting with a network and the like; the selecting operation includes: single click, double click, continuous click and the like of an object to be operated; the object to be operated comprises: and the application operation list and the webpage.
Fig. 2(a) -2(c) are schematic diagrams of a specific embodiment of the present invention, and with reference to fig. 2(a) -2(b), an object to be operated on a display interface is an ITEM list, and when a touch screen of a mobile terminal receives a continuous click operation on the ITEM list, a "whether to delete" dialog box pops up on the ITEM list.
Step 12: and when the setting operation of the display interface is detected, releasing the sliding locking of the display interface.
Wherein the setting operation comprises: clicking and sliding the display interface, or double clicking and sliding the display interface, or continuously clicking and sliding the display interface.
Correspondingly, after a dialog box or a menu is popped up on a display interface, when clicking and sliding operation on the display interface is detected, or double clicking and sliding operation on the display interface is detected, or continuous clicking and sliding operation on the display interface is detected, when the sliding operation is the sliding operation of which the sliding distance exceeds a set threshold value, the dialog box or the menu is hidden by the display interface, so that the display interface is in a state capable of performing the sliding operation, and an object to be operated in the display interface, such as an application operation list, slides by the sliding distance corresponding to the sliding operation.
Here, the dialog box or the menu may be hidden by exiting the dialog box or the menu.
The threshold value can be set in an Extensible markup language (XML) file of the mobile terminal, and the value range is 3 mm to 15 mm, and the preferred value is 6 mm; the sliding operation includes: and sliding the object to be operated upwards or downwards.
Fig. 3 is a schematic diagram of an embodiment of the present invention, and the present invention is further described with reference to fig. 2(a) -2 (c).
Step 301: detecting that the object to be operated is continuously clicked, and popping up a dialog box or a menu by the touch screen;
here, as shown in fig. 2(a) and 2(b), when the current object to be operated is an ITEM list, the mobile terminal detects that there is a continuous click on the ITEM list, and detects that a touch point at the start of a sliding operation on the ITEM list is located on a list ITEM4, a dialog box of "whether to delete" pops up on a display interface of the ITEM list of the object to be operated; and recording the coordinates (x1, y1) of the touch point when the sliding operation starts when the dialog box is popped up; it should be noted that the operation of popping up the dialog box and the operation of recording the coordinates are not sequential in time, and can be performed simultaneously.
Step 302: after a dialog box pops up on a display interface or a menu, detecting whether setting operation on the display interface exists or not; if so, go to step 303; if not, go to step 305;
here, as shown in fig. 2(b), the setting operation of continuous clicking and sliding operations on the ITEM list is detected, and step 303 is executed;
step 303: when the sliding operation in the setting operation is a sliding operation of which the sliding distance exceeds a set threshold value, executing step 304; otherwise, go to step 305;
here, with reference to fig. 2(c), when a click on the touch screen display interface and a slide operation in an upward direction are detected, the coordinates (x1, y2) of the touch point at the end of the slide operation are recorded, and if the distance difference between the touch point (x1, y1) at the start of the slide operation and the touch point (x1, y2) at the end of the slide operation exceeds a set threshold, step 304 is executed;
in this embodiment, the description is mainly given in fig. 2(a) -2(c), and in practical applications, both the touch point at the start of the slide operation and the touch point at the end of the slide operation are located on the display interface of the touch panel, but the display positions of the dialog box, the menu, and the function buttons thereof are excluded.
Step 304: hiding the dialog box or the menu, enabling the display interface to be in a state capable of performing sliding operation, and enabling an object to be operated of the display interface, such as an ITEM list, to slide a sliding distance corresponding to the sliding operation in the set operation;
here, as shown in fig. 2(c), the "whether to delete" dialog box is exited, and the display interface is made slidable; the ITEM list is slid by a length of | y2-y1| in the vertical direction of the mobile terminal, and the ITEM list is displayed from ITEMs 1 to 8 shown in fig. 2(a) to ITEMs 3 to 10 shown in fig. 2 (c).
Step 305: the popped up dialog box is kept and processed according to the prior art.
Based on the method for sliding the display interface, the present invention further provides a mobile terminal for implementing scrolling, as shown in fig. 4, the mobile terminal includes: an ejection unit 41, a detection unit 42, and a removal unit 43; wherein,
the pop-up unit 41 is used for popping up a dialog box or a menu locked by sliding of a display interface of the touch screen;
the determining unit 42 is configured to detect a setting operation on the display interface;
the execution unit 43 is configured to release the slide lock on the display interface;
wherein the display interface comprises: the method comprises the steps that a function list of the touch mobile terminal and a browsable webpage generated in the mode of connecting a network and the like are generated; the setting operation includes: clicking and sliding the display interface, or double clicking and sliding the display interface, or continuously clicking and sliding the display interface.
The mobile terminal further includes: a receiving unit 44 and a sliding unit 45;
the receiving unit 44 is configured to receive a selected operation on an object to be operated in a display interface;
the selecting operation includes: single click, double click or continuous click on an object to be operated; the object to be operated comprises: and the application operation list and the webpage.
The sliding unit 45 is configured to slide a sliding distance corresponding to the sliding operation.
Specifically, after receiving a selection operation such as continuous clicking of an object to be operated on a display interface, the receiving unit 44 triggers the pop-up unit 41 to pop up a dialog box or a menu that enables the display interface to be in a slide-locked state; then, when the detection unit 42 detects a single click and slide operation, a double click and slide operation, or a continuous click and slide operation, etc. on the display interface, and when the slide operation is a slide operation in which the slide distance exceeds a set threshold, the release unit 43 hides the dialog box or the menu by exiting the dialog box or the menu, so that the display interface is in a state in which the slide operation can be performed, and the slide unit 45 slides an object to be operated in the display interface, such as an application operation list, by the slide distance corresponding to the slide operation.
Those skilled in the art will appreciate that the functions implemented by the processing units in the mobile terminal shown in fig. 4 can be understood by referring to the related description of the aforementioned display interface sliding method. Those skilled in the art will appreciate that the functions of the processing units in the mobile terminal shown in fig. 4 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
According to the method and the mobile terminal for sliding the display interface, after a dialog box or a menu for sliding locking of the display interface is popped up on the display interface of the touch screen, when the setting operation of the display interface is detected, the sliding locking of the display interface is released, and then the sliding distance corresponding to the setting operation is slid. By using the method and the device, the sliding operation of the display interface can be continuously realized after the dialog box or the menu appears on the display interface, so that the user experience is improved, and the usability of the mobile terminal is enhanced.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.