Control display method, apparatus, and device, and medium
View Patent ↗The present disclosure discloses a control display method, apparatus, and device, and a medium. The control display method includes: displaying a first group of function controls and a first trigger control in a target interface sidebar and switching the first group of function controls to a second group of function controls in the target interface sidebar for display upon detecting a first trigger operation on the first trigger control. The second group of function controls is adjacent to the first group of function controls in a first switching direction corresponding to the first trigger control.
1 . A control display method, comprising:
displaying a first group of function controls and a first trigger control in an interface sidebar; and
switching the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control, wherein after the switching, the second group of function controls replaces the first group of function controls and is displayed in the target interface sidebar,
wherein the second group of function controls is adjacent to the first group of function controls in an arrangement order in a first switching direction corresponding to the first trigger control,
wherein the switching the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control comprises:
displaying a dynamic effect in the interface sidebar, the dynamic effect comprising moving the first group of function controls out of the interface sidebar along a first moving direction corresponding to the first switching direction at a preset speed and moving the second group of function controls into the interface sidebar along the first moving direction corresponding to the first switching direction at the preset speed; and
displaying the second group of function controls in the interface sidebar when the dynamic effect is completed, and
wherein the first moving direction is parallel to a length direction of the interface sidebar, and during a process of displaying the dynamic effect, the first trigger control in the interface sidebar is hidden, a length of a short side of the interface sidebar remains unchanged, and a length of a long side of the interface sidebar is automatically adjusted according to a number of controls of the first group of function controls and a number of controls of the second group of function controls, with a change in the length of the long side being synchronized to the preset speed.
2 . The method according to claim 1 , wherein the displaying a first group of function controls and a first trigger control in an interface sidebar comprises:
displaying the first group of function controls and the first trigger control in the interface sidebar in response to a total number of the function controls to be displayed being greater than a preset quantity threshold.
3 . The method according to claim 1 , wherein the first switching direction is a direction in which switching to a group of function controls located thereafter and adjacent thereto is performed, and the second group of function controls is a group of function controls located after the first group of function controls and adjacent to the first group of function controls.
4 . The method according to claim 1 , wherein the first switching direction is a direction in which switching to a group of function controls located therebefore and adjacent thereto is performed, and the second group of function controls is a group of function controls located before the first group of function controls and adjacent to the first group of function controls.
5 . The method according to claim 1 , wherein after the detecting a first trigger operation on the first trigger control, the method further comprises:
in response to the second group of function controls being not a last group of function controls in the first switching direction, keeping to display the first trigger control in the interface sidebar,
wherein the first trigger control is used to trigger to switch from the second group of function controls to a third group of function controls in the interface sidebar for display, and the third group of function controls is adjacent to the second group of function controls in the first switching direction.
6 . The method according to claim 1 , wherein the first group of function controls and the second group of function controls partially overlap.
7 . A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, when the computer program is executed by a processor, the processor implements the control display method according to claim 1 .
8 . The method according to claim 1 , further comprising:
fixedly displaying a first function control in the interface sidebar, wherein the first function control is a function control other than the first group of function controls and the second group of function controls, and is a function control to be displayed that a user uses most frequently.
9 . The method according to claim 1 , wherein the displaying the first group of function controls and the first trigger control in the interface sidebar comprises displaying the first group of function controls, the first trigger control, and a second trigger control in the interface sidebar in response to the first group of function controls being not a primary group of function controls in the first switching direction, and
wherein the second trigger control is used to trigger to switch from the first group of function controls to a fourth group of function controls in the interface sidebar for display, wherein after the switching, the fourth group of function controls replaces the first group of function controls and is displayed in the interface sidebar, the fourth group of function controls is adjacent to the first group of function controls in the arrangement order in a second switching direction corresponding to the second trigger control, and the second switching direction is opposite to the first switching direction.
10 . The method according to claim 9 , wherein after the detecting a first trigger operation on the first trigger control, the method further comprises:
in response to the second group of function controls being a last group of function controls in the first switching direction, not displaying the first trigger control in the interface sidebar, and displaying the second trigger control in the interface sidebar,
wherein the second trigger control is used to trigger to switch from the second group of function controls to the first group of function controls in the interface sidebar for display.
11 . The method according to claim 1 , wherein the first group of function controls and the second group of function controls are obtained by grouping function controls to be displayed based on a frequency of use of the function controls to be displayed by a user.
12 . A control display apparatus, comprising:
a first display unit, configured to display a first group of function controls and a first trigger control in an interface sidebar; and
a second display unit, configured to switch the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control, wherein after the switching, the second group of function controls replaces the first group of function controls and is displayed in the interface sidebar,
wherein the second group of function controls is adjacent to the first group of function controls in an arrangement order in a first switching direction corresponding to the first trigger control,
wherein when performing a step of switching the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control, the second display unit is configured to:
display a dynamic effect in the interface sidebar, the dynamic effect comprising moving the first group of function controls out of the interface sidebar along a first moving direction corresponding to the first switching direction at a preset speed and moving the second group of function controls into the interface sidebar along the first moving direction corresponding to the first switching direction at the preset speed; and
display the second group of function controls in the interface sidebar when the dynamic effect is completed, and
wherein the first moving direction is parallel to a length direction of the interface sidebar, and during a process of displaying the dynamic effect, the first trigger control in the interface sidebar is hidden, a length of a short side of the interface sidebar remains unchanged, and a length of a long side of the interface sidebar is automatically adjusted according to a number of controls of the first group of function controls and a number of controls of the second group of function controls, with a change in the length of the long side being synchronized to the preset speed.
13 . The control display apparatus according to claim 12 , wherein the first display unit is configured to display the first group of function controls and the first trigger control in the interface sidebar in response to a total number of the function controls to be displayed being greater than a preset quantity threshold;
wherein the control display apparatus further comprises a third display unit, and the third display unit is configured to: display the function controls to be displayed in the interface sidebar when the total number of the function controls to be displayed is less than or equal to the preset quantity threshold.
14 . The control display apparatus according to claim 12 , further comprising a fourth display unit,
wherein after detecting the first trigger operation on the first trigger control, the fourth display unit is configured to: in response to the second group of function controls being not a last group of function controls in the first switching direction, keep to display the first trigger control in the interface sidebar,
wherein the first trigger control is used to trigger to switch from the second group of function controls to a third group of function controls in the interface sidebar for display, and the third group of function controls is adjacent to the second group of function controls in the first switching direction.
15 . The control display apparatus according to claim 12 , further comprising a sixth display unit,
wherein the first display unit is configured to display the first group of function controls, the first trigger control, and a second trigger control in the interface sidebar in response to the first group of function controls being not a primary group of function controls in the first switching direction,
wherein the second trigger control is used to trigger to switch from the first group of function controls to a fourth group of function controls in the interface sidebar for display, wherein after the switching, the fourth group of function controls replaces the first group of function controls and is displayed in the interface sidebar, the fourth group of function controls is adjacent to the first group of function controls in the arrangement order in a second switching direction corresponding to the second trigger control, and the second switching direction is opposite to the first switching direction, and
wherein the sixth display unit is configured to: switch the first group of function controls to the fourth group of function controls in the interface sidebar for display when a second trigger operation on the second trigger control is detected.
16 . A control display device, comprising:
a processor; and
a memory, for storing executable instructions;
wherein the processor is used to read the executable instructions from the memory and execute the executable instructions to implement a control display method,
wherein the control display method comprises:
displaying a first group of function controls and a first trigger control in an interface sidebar; and
switching the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control, wherein after the switching, the second group of function controls replaces the first group of function controls and is displayed in the interface sidebar,
wherein the second group of function controls is adjacent to the first group of function controls in an arrangement order in a first switching direction corresponding to the first trigger control,
wherein the switching the first group of function controls to a second group of function controls in the interface sidebar for display upon detecting a first trigger operation on the first trigger control comprises:
displaying a dynamic effect in the interface sidebar, the dynamic effect comprising moving the first group of function controls out of the interface sidebar along a first moving direction corresponding to the first switching direction at a preset speed and moving the second group of function controls into the interface sidebar along the first moving direction corresponding to the first switching direction at the preset speed; and
displaying the second group of function controls in the interface sidebar when the dynamic effect is completed, and
wherein the first moving direction is parallel to a length direction of the interface sidebar, and during a process of displaying the dynamic effect, the first trigger control in the interface sidebar is hidden, a length of a short side of the interface sidebar remains unchanged, and a length of a long side of the interface sidebar is automatically adjusted according to a number of controls of the first group of function controls and a number of controls of the second group of function controls, with a change in the length of the long side being synchronized to the preset speed.