CN110928622B - Picture display state adjusting method and device and electronic equipment - Google Patents

Picture display state adjusting method and device and electronic equipment Download PDF

Info

Publication number
CN110928622B
CN110928622B CN201911087624.0A CN201911087624A CN110928622B CN 110928622 B CN110928622 B CN 110928622B CN 201911087624 A CN201911087624 A CN 201911087624A CN 110928622 B CN110928622 B CN 110928622B
Authority
CN
China
Prior art keywords
target
target switch
switch component
picture
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911087624.0A
Other languages
Chinese (zh)
Other versions
CN110928622A (en
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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201911087624.0A priority Critical patent/CN110928622B/en
Publication of CN110928622A publication Critical patent/CN110928622A/en
Application granted granted Critical
Publication of CN110928622B publication Critical patent/CN110928622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application provides a picture display state adjusting method and device and electronic equipment, and belongs to the technical field of computer application. Wherein the method comprises the following steps: determining a target picture which is clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page; determining a target switch component associated with a target picture according to the association relation between the switch component of the current page and the picture; adjusting whether the target switch assembly opens the parameter value; executing a first preset method associated with the target switch assembly, wherein the first preset method is used for dynamically adjusting the display state of the picture group associated with the target switch assembly. Therefore, through the picture display state adjustment method, the display effect of the switch assembly is enriched, the attractiveness of the switch assembly is improved, and the user experience is improved.

Description

Picture display state adjusting method and device and electronic equipment
Technical Field
The present application relates to the field of computer applications, and in particular, to a method and an apparatus for adjusting a picture display state, and an electronic device.
Background
In the user interaction interface of electronic devices, the application of the switch assembly is very widespread. For example, the opening or closing of an application sound in an electronic device may be controlled by a switch assembly, or the switching of different tab pages in an application may be controlled by a switch assembly.
In the related art, the display effect of the switch component in the user interaction interface is single, the aesthetic property is poor, and the user experience is influenced.
Disclosure of Invention
The picture display state adjusting method, the picture display state adjusting device and the electronic equipment are used for solving the problems that in the related art, a display effect of a switch component in a user interaction interface is single, attractive performance is poor and user experience is affected.
An embodiment of the present application provides a method for adjusting a picture display state, including: determining a target picture which is clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page; determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture; adjusting whether the target switch assembly has an open parameter value; executing a first preset method associated with the target switch assembly, wherein the first preset method is used for dynamically adjusting the display state of the picture group associated with the target switch assembly.
Optionally, in a possible implementation form of the embodiment of the first aspect, before the adjusting the value of the opening parameter of the target switch assembly, the method further includes:
Judging whether the combination attribute assignment of the target switch assembly is a first preset value or not;
the adjusting whether the target switch assembly opens a parameter value includes:
and if the combination attribute of the target switch component is assigned to a first preset value, adjusting whether the target switch component is opened or not.
Optionally, in another possible implementation form of the embodiment of the first aspect, after the determining whether the combined attribute assignment of the target switch component is the first preset value, the determining further includes:
if the combination attribute of the target switch component is assigned with a non-first preset value, judging whether the opening parameter value of the target switch component is a second preset value or not;
if the opening parameter value of the target switch assembly is a second preset value, adjusting whether the opening parameter value of the target switch assembly is a non-second preset value;
judging whether the current value of a target variable associated with the target switch component is a third preset value or not;
and if the current value of the target variable is a third preset value, executing a second preset method associated with the target switch component, wherein the second preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component and assigning the target variable associated with the target switch component to be a non-third preset value.
Optionally, in a further possible implementation form of the embodiment of the first aspect, after the determining whether the opening parameter value of the target switch component is the second preset value, the determining further includes:
if the opening parameter value of the target switch assembly is not the second preset value, judging whether the current value of the target variable associated with the target switch assembly is a third preset value;
and if the current value of the target variable is a non-third preset value, continuing to monitor the clicked position in the current page.
Optionally, in a further possible implementation form of the embodiment of the first aspect, after the determining whether the opening parameter value of the target switch component is the second preset value, the determining further includes:
if the value of the opening parameter of the target switch component is a second preset value, determining an associated switch component with the same combination attribute assignment as the target switch component, wherein the current value of the opening parameter of the associated switch component is a non-second preset value;
and adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
Optionally, in a further possible implementation form of the embodiment of the first aspect, the first preset method includes two animation events;
The executing a first preset method associated with the target switch assembly includes:
and executing an animation event taking the adjusted opening parameter value as a parameter in the first preset method.
Optionally, in another possible implementation manner of the embodiment of the first aspect, the first preset method includes two animation events;
the executing a first preset method associated with the target switch assembly includes:
if the opening parameter of the target switch assembly is adjusted for the first time, executing a first animation event in the first preset method;
and if the opening parameter of the target switch component is not adjusted for the first time, executing a second animation event in the first preset method.
Optionally, in a further possible implementation form of the embodiment of the first aspect, before determining the target switch component associated with the target picture, the determining further includes:
and in the loading process of the current page, determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page.
In another aspect, an apparatus for adjusting a display status of a picture according to an embodiment of the present application includes: the first determining module is used for determining a target picture which is clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page; the second determining module is used for determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture; a first adjustment module for adjusting whether the target switch assembly is turned on or not; the first execution module is used for executing a first preset method associated with the target switch component, and the first preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component.
Optionally, in a possible implementation form of the embodiment of the second aspect, the apparatus further includes:
the first judging module is used for judging whether the combination attribute assignment of the target switch assembly is a first preset value or not;
the first adjusting module is specifically configured to:
and if the combination attribute of the target switch component is assigned to a first preset value, adjusting whether the target switch component is opened or not.
Optionally, in another possible implementation form of the embodiment of the second aspect, the apparatus further includes:
the second judging module is used for judging whether the opening parameter value of the target switch assembly is a second preset value or not if the combination attribute assignment of the target switch assembly is not the first preset value;
the second adjusting module is used for adjusting whether the opening parameter value of the target switch assembly is a non-second preset value if the opening parameter value of the target switch assembly is the second preset value;
the third judging module is used for judging whether the current value of the target variable associated with the target switch component is a third preset value or not;
and the second execution module is used for executing a second preset method associated with the target switch component if the current value of the target variable is a third preset value, wherein the second preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component and assigning the target variable associated with the target switch component to be a non-third preset value.
Optionally, in a further possible implementation form of the embodiment of the second aspect, the apparatus further comprises:
a fourth judging module, configured to judge whether a current value of a target variable associated with the target switch component is a third preset value if the value of the opening parameter of the target switch component is not the second preset value;
and the monitoring module is used for continuously monitoring the clicked position in the current page if the current value of the target variable is a non-third preset value.
Optionally, in a further possible implementation form of the embodiment of the second aspect, the apparatus further comprises:
a third determining module, configured to determine, if the value of the opening parameter of the target switch component is a second preset value, an associated switch component that is assigned the same as the combination attribute of the target switch component, where the current value of the opening parameter of the associated switch component is a non-second preset value;
and the third adjusting module is used for adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
Optionally, in a further possible implementation form of the embodiment of the second aspect, the first preset method includes two animation events;
The first execution module is specifically configured to:
and executing an animation event taking the adjusted opening parameter value as a parameter in the first preset method.
Optionally, in another possible implementation form of the embodiment of the second aspect, the first preset method includes two animation events;
the first execution module is specifically configured to:
if the opening parameter of the target switch assembly is adjusted for the first time, executing a first animation event in the first preset method;
and if the opening parameter of the target switch component is not adjusted for the first time, executing a second animation event in the first preset method.
Optionally, in a further possible implementation form of the embodiment of the second aspect, the apparatus further comprises:
and the fourth determining module is used for determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page in the loading process of the current page.
In another aspect, an embodiment of the present application provides an electronic device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor is used for realizing the picture display state adjustment method when executing the program.
In a further aspect, the present application provides a computer readable storage medium having a computer program stored thereon, where the program is executed by a processor to implement a method for adjusting a status of displaying a picture as described above.
In another aspect, the present application provides a computer program, which when executed by a processor, implements the method for adjusting a picture display state according to the embodiment of the present application.
According to the picture display state adjusting method, the device, the electronic equipment, the computer readable storage medium and the computer program, the target picture which is clicked is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch component which is related to the target picture is determined according to the association relation between the switch component of the current page and the picture, whether the parameter value of the target switch component is opened or not is adjusted, and then a first preset method which is related to the target switch component is executed, so that the display state of the picture group which is related to the target switch component is dynamically adjusted. Therefore, the display state of the whole picture group is dynamically adjusted through a first preset method associated with the target switch component when the target switch component is clicked by associating the picture group comprising a plurality of pictures with the switch component, so that the display effect of the switch component is enriched, the attractiveness of the switch component is improved, and the user experience is improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a method for adjusting a picture display state according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a switch assembly;
FIG. 3 is a schematic view of the switch assembly shown in FIG. 2 in an "off" state;
fig. 4 is a flowchart illustrating another method for adjusting a display status of a picture according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another method for adjusting a display status of a picture according to an embodiment of the present application;
fig. 6 is a flowchart illustrating another method for adjusting a display status of a picture according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a set of modular switch assemblies;
fig. 8 is a schematic structural diagram of a device for adjusting a picture display status according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
Aiming at the problems that in the related art, a display effect of a switch component in a user interaction interface is single, attractive performance is poor and user experience is affected, the embodiment of the application provides a picture display state adjusting method.
According to the picture display state adjusting method provided by the embodiment of the application, the target picture which is clicked at present is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch assembly which is related to the target picture is determined according to the association relation between the switch assembly of the current page and the picture, and then whether the parameter value of the target switch assembly is opened is adjusted, and further a first preset method which is related to the target switch assembly is executed, so that the display state of the picture group which is related to the target switch assembly is dynamically adjusted. Therefore, the display state of the whole picture group is dynamically adjusted through a first preset method associated with the target switch component when the target switch component is clicked by associating the picture group comprising a plurality of pictures with the switch component, so that the display effect of the switch component is enriched, the attractiveness of the switch component is improved, and the user experience is improved.
The picture display state adjustment method, the device, the electronic equipment, the storage medium and the computer program provided by the application are described in detail below with reference to the accompanying drawings.
The following describes in detail a method for adjusting a picture display state according to an embodiment of the present application with reference to fig. 1.
Fig. 1 is a flowchart of a method for adjusting a display status of a picture according to an embodiment of the present application.
As shown in fig. 1, the method for adjusting the display state of the picture includes the following steps:
and step 101, determining the currently clicked target picture according to the matching degree between the clicked position in the current page and the display position of each picture in the page.
It should be noted that, the method for adjusting the picture display state according to the embodiment of the present application may be performed by the device for adjusting the picture display state according to the embodiment of the present application. The picture display state adjusting device of the embodiment of the application can be configured in any electronic equipment with a display screen, for example, a mobile phone, a desktop computer, a notebook computer, a tablet computer, wearable equipment, a personal digital assistant and the like.
It should be noted that the application of the switch assembly in the user interaction interface of the electronic device is very wide, so as to control the opening and closing of some functions in the electronic device, or control the switching of the tab page in the application, etc. The display of the switch assembly in different states is typically achieved by adjusting the display state of the picture associated with the switch assembly. However, in the related art, when the switch component switches between different states, only switching of a single picture is usually supported, so that the display effect of the switch component is single.
The current page refers to a graphical user interface (Graphical User Interface, abbreviated as GUI) with a switch assembly, which is currently displayed in a display screen of the electronic device, and may be, for example, a sound opening or closing page in a game application, or a decoration page in a decoration game application.
The clicked position can be represented by the position of the pixel point in the display screen corresponding to the point where the clicking occurs when the current page is clicked.
The display position of the picture in the page can be represented by the position of the pixel point in the display screen corresponding to the picture when the picture is displayed in the page.
The target picture is a picture with matching degree between a display position and a clicked position in the current page meeting preset conditions.
In the embodiment of the application, the display position of the picture included in the current page in the page can be defined when the current page is designed in the GUI development process. When the current page is detected to be clicked, the position of the corresponding pixel point of the clicking occurrence point in the display screen, namely the clicked position, can be determined according to input data acquired by input equipment (such as a mouse, a touch display screen and the like) of the electronic equipment; and then acquiring display parameters of the current page to determine the position of the corresponding pixel point of each picture in the current page in the display screen, namely the display position of each picture in the page. And determining the matching degree between the clicked position in the current page and the display position of each picture in the page according to the superposition quantity of the pixel points corresponding to the clicked position and the pixel points corresponding to the display position of each picture in the page.
Optionally, the ratio of the number of pixels where the clicked position coincides with the display position of the picture in the page to the total number of pixels corresponding to the clicked position may be determined as the matching degree between the clicked position and the display position of the picture in the page.
For example, the number of pixels corresponding to the clicked position is 100, the number of pixels corresponding to the display position of the picture a in the page is 500, and if the 500 pixels corresponding to the display position of the picture a in the page include 100 pixels corresponding to the clicked position, it may be determined that the matching degree between the clicked position and the display position of the picture a in the page is 100%; if the 500 pixels corresponding to the display position of the picture a in the page include 90 pixels corresponding to the clicked position, it may be determined that the matching degree between the clicked position and the display position of the picture a in the page is 90%.
As a possible implementation form, the matching degree between the clicked position and the display position of the target picture in the page can be preset, and the condition to be met is further determined according to whether the matching degree between the clicked position and the display position of each picture in the page meets the preset condition.
For example, the preset condition that the matching degree between the clicked position and the display position of the target picture in the page needs to be met is that the matching degree is greater than or equal to 90%, the current page includes two pictures of the picture a and the picture B, if the matching degree between the clicked position and the display position of the picture a in the page is determined to be 100%, and the matching degree between the clicked position and the display position of the picture B in the page is determined to be 40%, the matching degree between the clicked position and the display position of the picture a in the page can be determined to meet the preset condition, so that the picture a can be determined to be the target picture currently clicked.
Step 102, determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture.
In the embodiment of the application, the association relationship between the switch component and the picture can be predefined in the GUI development process. Optionally, the association relationship between the switch component and the picture may be defined by a selection mark attribute of the switch component, that is, before the step 102, in one possible implementation manner of the embodiment of the present application, the method may further include:
in the loading process of the current page, determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page.
As a possible implementation manner, during GUI development, when the switch component is added to the current page, the selection mark attribute of the switch component is determined, and a child node is built under the selection mark attribute of the switch component, so that a group of pictures including multiple pictures is added under the child node, so that different display effects are generated by the switch component through the combination of the multiple pictures. Correspondingly, when a plurality of switch components are included in the current page, the association relation between each switch component and the picture can be respectively created in the same way.
For example, for a common switch component Toggle component in a GUI, the selectable marker attribute of the Toggle component is a Checkmark attribute, and when the switch component is added to the current page, a Toggle ex class inherited to the Toggle component may be created to generate a switch component a. When the switch component A is associated with the picture, a child node Image can be established under the Checkmark attribute of the ToggleEx class, and a plurality of pictures which need to be associated with the switch component A are added in the child node Image, so that the association of the switch component A with the picture is completed.
In the embodiment of the application, when the target switch component associated with the target picture is determined, the selection mark attribute of each switch component in the current page can be obtained in the current page loading process, and the association relation between each switch component and the picture is determined according to the picture corresponding to the child node included in the selection mark attribute of each switch component, so that the switch component corresponding to the child node associated with the target picture, namely the target switch component associated with the target picture, can be determined.
Step 103, adjusting whether the target switch assembly is open or not.
Whether to turn on the parameter value refers to a variable for indicating the display state of the switch component, for example, whether to turn on the parameter value may be an isOn variable in the Toggle component. Whether the parameter value is open may include two values, for example, whether the parameter value is "true" or "false" is used to indicate the "open" and "closed" states of the switch assembly, respectively. That is, it may be indicated that the switch assembly is currently in the "on" state when the on-parameter of the switch assembly is "true"; when the switch assembly is turned on or off, the switch assembly is indicated as being in the "off" state. In the embodiment of the application, the display state of the switch component can be changed as long as the switch component is clicked. Therefore, after determining the currently clicked target switch assembly, whether the target switch assembly is opened or not can be directly adjusted, so that the display state of the target switch assembly can be adjusted according to the adjusted whether the target switch assembly is opened or not.
Specifically, if the value of the on parameter of the target switch component is "true", that is, the target switch component is in the "on" state before being clicked, the display state of the target switch component may be adjusted to the "off" state when the target switch component is clicked, that is, the value of the on parameter of the target switch component may be adjusted to "false"; if the value of the on parameter of the target switch component is "false", that is, the target switch component is in the "off" state before being clicked, the display state of the target switch component may be adjusted to the "on" state when the target switch component is clicked, that is, the value of the on parameter of the target switch component may be adjusted to "true".
Step 104, executing a first preset method associated with the target switch assembly, wherein the first preset method is used for dynamically adjusting the display state of the picture group associated with the target switch assembly.
In the embodiment of the application, the switch component can be a combination of a plurality of pictures, so that the purpose of adjusting the display state of the switch component can be achieved by dynamically adjusting the display and the hiding of part of pictures in the plurality of pictures; or, the purpose of adjusting the display state of the switch component can be achieved by dynamically adjusting the display effect of a plurality of pictures. Therefore, in the embodiment of the application, the purpose of adjusting the display state of the target switch assembly can be achieved by dynamically adjusting the display state of the picture group associated with the target switch assembly.
For example, as shown in fig. 2, the group of pictures associated with the switch assembly is a plurality of "v" pictures, so that the "v" in the switch assembly can exhibit various display effects such as color or gradual change. When the display state of the switch assembly is adjusted, the switch assembly can be indicated to be in an 'on' state by displaying a picture group consisting of a plurality of 'v' pictures, and the switch assembly can be indicated to be in an 'off' state by hiding the picture group consisting of the plurality of 'v' pictures.
In the embodiment of the application, after the opening/closing parameter value of the target switch assembly is adjusted, a first preset method associated with the target switch assembly can be executed, and when the first preset method is executed, the first preset method can call the adjusted opening/closing parameter value of the target switch assembly and dynamically adjust the display state of the picture group associated with the target switch assembly according to the adjusted opening/closing parameter value so that the display state of the target switch assembly is the same as the display state indicated by the adjusted opening/closing parameter value.
For example, assuming that the target switch component is the switch component in fig. 2, the group of pictures associated with the target switch component is a plurality of "∈" pictures. If the adjusted opening parameter value of the target switch component is "false", the display state of the picture group including the multiple "v" pictures can be adjusted to be "hidden" by executing the first preset method, so that the display state of the target switch component can be adjusted to be "off" as shown in fig. 3; if the target switch component is the switch component shown in fig. 3 and the value of the opening parameter after the adjustment of the target switch component is "true", the display state of the group of pictures including the plurality of "v" pictures may be adjusted to "display" by executing the first preset method, so that the display state of the target switch component may be adjusted to "on" as shown in fig. 2.
According to the picture display state adjusting method provided by the embodiment of the application, the target picture which is clicked at present is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch assembly which is related to the target picture is determined according to the association relation between the switch assembly of the current page and the picture, and then whether the parameter value of the target switch assembly is opened is adjusted, and further a first preset method which is related to the target switch assembly is executed, so that the display state of the picture group which is related to the target switch assembly is dynamically adjusted. Therefore, the display state of the whole picture group is dynamically adjusted through a first preset method associated with the target switch component when the target switch component is clicked by associating the picture group comprising a plurality of pictures with the switch component, so that the display effect of the switch component is enriched, the attractiveness of the switch component is improved, and the user experience is improved.
In one possible implementation form of the embodiment of the present application, when the display state of the switch assembly is adjusted, different animation effects may be used to switch between the adjustment of the display state of the switch assembly to the "on" state and the adjustment of the display state of the switch assembly to the "off" state, so as to further enrich the display effect of the switch assembly.
The method for adjusting the display state of the picture according to the embodiment of the present application is further described below with reference to fig. 4.
Fig. 4 is a flowchart illustrating another method for adjusting a display status of a picture according to an embodiment of the present application.
As shown in fig. 4, the method for adjusting the display state of the picture includes the following steps:
step 201, determining the currently clicked target picture according to the matching degree between the clicked position in the current page and the display position of each picture in the page.
Step 202, determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture.
In step 203, whether the target switch assembly is turned on or not is adjusted.
The specific implementation and principles of the steps 201 to 203 may refer to the detailed description of the embodiments, and are not repeated here.
Step 204, executing an animation event taking the adjusted opening parameter value as a parameter in a first preset method, wherein the first preset method comprises two animation events.
In the embodiment of the application, the animation effect used for switching the switch component from the 'on' state to the 'off' state can be different from the animation effect used for switching the switch component from the 'off' state to the 'on' state, so as to improve the richness and the interestingness of the user interface display.
As a possible implementation manner, two different animation events may be associated in the first preset method, and the two animation events respectively take different opening parameter values as parameters, so when the first preset method is executed to adjust the display state of the target switch component after the opening parameter values of the target switch component are adjusted, the first preset method may call one animation event taking the adjusted opening parameter values as parameters, so that the picture group associated with the target switch component is controlled to adjust the display state with the animation effect corresponding to the animation event.
For example, the first preset method includes an animation event a and an animation event B, wherein the animation effect corresponding to the animation event a is "direct disappearance", and the animation event a uses whether to open a parameter value "false" as a parameter; the animation effect corresponding to the animation event B is a particle special effect, and the animation event B takes whether a parameter value "true" is opened as a parameter. If the adjusted opening parameter value of the target switch component is "false", executing an animation event A to adjust the picture group associated with the target switch component to be in a "hidden" state with the animation effect of "directly disappearing"; if the adjusted opening parameter value of the target switch component is "true", executing the animation event B to adjust the picture group associated with the target switch component to be in a display state with the animation effect of "particle special effect".
According to the picture display state adjustment method provided by the embodiment of the application, the target picture which is clicked at present is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch assembly which is related to the target picture is determined according to the association relation between the switch assembly of the current page and the picture, and then whether the parameter value of the target switch assembly is opened is adjusted, so that one animation event taking the adjusted parameter value of the target switch assembly as the parameter in a first preset method is executed, wherein the first preset method comprises two animation events. Therefore, by associating two animation events in the first preset method, the switch assembly is adjusted to be in an on state and is adjusted to be in an off state, and different animation effects can be displayed, so that not only is the display effect of the switch assembly enriched by associating a picture group comprising a plurality of pictures with the switch assembly, but also the aesthetic property of the switch assembly is improved, the display effect and the interestingness of the switch assembly during state adjustment are improved, and the user experience is further improved.
In one possible implementation form of the embodiment of the application, a special display effect can be presented when the switch assembly is used for the first time, so that the user interface friendliness and interactivity are improved.
The method for adjusting the display state of the picture according to the embodiment of the present application is further described below with reference to fig. 5.
Fig. 5 is a flowchart illustrating a method for adjusting a display status of a picture according to an embodiment of the present application.
As shown in fig. 5, the method for adjusting the display state of the picture includes the following steps:
step 301, determining a target picture clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page.
Step 302, determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture.
In step 303, whether the target switch assembly is open or not is adjusted.
The specific implementation process and principle of the above steps 301 to 303 may refer to the detailed description of the above embodiments, which is not repeated here.
Step 304, if the opening parameter of the target switch component is adjusted for the first time, executing a first animation event in a first preset method, wherein the first preset method includes two animation events.
In the embodiment of the application, when the switch assembly is used for the first time, the display state of the switch assembly is regulated to display a switching effect different from that of the switch assembly after multiple times of use, so that the friendliness and the interactivity of a user interface can be improved.
As a possible implementation manner, two different animation events may be associated in the first preset method, so as to respectively execute different animation events to adjust the display states of the picture groups associated with the target switch component when the target switch component is used for the first time and used for multiple times.
Specifically, after the adjustment of the on-state parameter value of the target switch component, whether the on-state parameter value of the target switch component is adjusted for the first time may be determined, if yes, the target switch component may be determined to be used for the first time, so that a first animation event in the first preset method may be executed, so that the picture group associated with the target switch component adjusts the display state with an animation effect corresponding to the first animation event.
In step 305, if the opening parameter of the target switch component is not adjusted for the first time, a second animation event in the first preset method is executed.
In the embodiment of the present application, if it is determined that the on parameter of the target switch component is not adjusted for the first time, that is, the target switch component is not used for the first time, a second animation event in the first preset method may be executed, so that the picture group associated with the target switch component adjusts the display state according to the animation effect corresponding to the second animation event. Wherein the animation effect corresponding to the second animation event is different from the animation effect corresponding to the first animation event.
For example, the animation effect corresponding to the first animation event is a "particle effect", the animation effect corresponding to the second animation event is a "jitter effect", and if it is determined whether the on parameter of the target switch component is adjusted for the first time, the first animation event may be executed, so that the group of pictures associated with the target switch component is displayed or hidden in a "particle effect" manner; if it is determined whether the opening parameter of the target switch assembly is not first adjusted, a second animation event may be performed such that the group of pictures associated with the target switch assembly is displayed or hidden in a "jittered special effect" manner.
According to the picture display state adjustment method provided by the embodiment of the application, the target picture which is clicked at present is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch component which is related to the target picture is determined according to the association relation between the switch component of the current page and the picture, and then whether the parameter value of the target switch component is opened is adjusted, further when whether the parameter of the target switch component is adjusted for the first time, a first animation event in a first preset method is executed, and when the parameter of the target switch component is not adjusted for the first time, a second animation event in the first preset method is executed. Therefore, by associating two animation events in the first preset method, when the display state of the switch assembly is adjusted, different animation effects can be presented when the switch assembly is used for the first time and not used for the first time, so that the display effect of the switch assembly is enriched by associating a picture group comprising a plurality of pictures with the switch assembly, the attractiveness of the switch assembly is improved, the friendliness and the interactivity of a user interface are improved, and the user experience is further improved.
In one possible implementation manner of the embodiment of the present application, when the switch assembly is a combined switch assembly, a different strategy may be adopted to adjust the display state of the switch assembly than that of a single switch assembly.
The method for adjusting the display state of the picture according to the embodiment of the present application is further described below with reference to fig. 6.
Fig. 6 is a flowchart illustrating a method for adjusting a display status of a picture according to an embodiment of the present application.
As shown in fig. 6, the method for adjusting the display state of the picture includes the following steps:
step 401, determining the currently clicked target picture according to the matching degree between the clicked position in the current page and the display position of each picture in the page.
Step 402, determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture.
The specific implementation and principles of the steps 401 to 402 may refer to the detailed description of the embodiments, which is not repeated here.
Step 403, judging whether the combination attribute assignment of the target switch component is a first preset value, if so, executing step 404; otherwise, step 405 is performed.
Wherein, the combination attribute assignment refers to a parameter for indicating whether the switch assembly is a combination switch assembly. That is, when the threshold value of the combination attribute of the target switch component is a first preset value, it may be determined that the target switch component is not a combination switch component (i.e., the target switch component is a single switch component), where the switch component shown in fig. 2 is a single switch component and is not associated with any other switch component, that is, the switch component is not a combination switch component; when the combination attribute assignment of the target switch assembly is not the first preset value, it may be determined that the target switch assembly is a combination switch assembly, that is, the target switch assembly is associated with other switch assemblies, and the switch assemblies 1-6 shown in fig. 7 are all associated with other 5 switch assemblies, that is, the switch assemblies 1-6 are all combination switch assemblies.
It should be noted that, in actual use, the specific value of the first preset value may be preset according to an actual requirement or a specific development environment, which is not limited in the embodiment of the present application. For example, the first preset value may be "false", and the non-first preset value is "true"; alternatively, the first preset value may be "true", and the non-first preset value is "false".
In the embodiment of the application, since the target switch component is associated with the clicked target picture, the current clicked target switch component can be determined, so that whether the display state of the target switch component needs to be adjusted and how to adjust can be determined according to the characteristics of the target switch component and the current display state of the target switch component.
As one possible implementation, the policy of adjusting the display state of the target switch assembly may be different when the target switch assembly is a combination switch assembly than when the target switch assembly is not a combination switch assembly. Therefore, after determining the target switch component associated with the target picture, whether the target switch component is the combined switch component or not can be judged according to the combined attribute assignment of the target switch component, that is, whether the combined attribute assignment of the target switch component is the first preset value or not is judged. And further, executing a corresponding display state adjustment strategy according to the judgment result.
Step 404, adjusting whether the target switch component is turned on, and executing a first preset method associated with the target switch component, where the first preset method is used to dynamically adjust a display state of the group of pictures associated with the target switch component.
In the embodiment of the application, for a single switch component, the display state of the switch component can be changed as long as the switch component is clicked. If the combination attribute of the target switch component is assigned to the first preset value, it may be determined that the target switch component is not a combination switch component (i.e., the target switch component is a single switch component), so that whether the parameter value of the target switch component is turned on or not may be directly adjusted, so as to adjust the display state of the target switch component according to the adjusted parameter value of whether to turn on or not.
Specifically, if the value of the on parameter of the target switch component is "true", that is, the target switch component is in the "on" state before being clicked, the display state of the target switch component may be adjusted to the "off" state when the target switch component is clicked, that is, the value of the on parameter of the target switch component may be adjusted to "false"; if the value of the on parameter of the target switch component is "false", that is, the target switch component is in the "off" state before being clicked, the display state of the target switch component may be adjusted to the "on" state when the target switch component is clicked, that is, the value of the on parameter of the target switch component may be adjusted to "true".
The specific implementation process and principle of the first preset method associated with the target switch assembly in the above step 404 may refer to the detailed description of the above embodiment, which is not repeated herein.
Step 405, determining whether the opening parameter value of the target switch component is a second preset value, if yes, executing step 406; otherwise, step 407 is performed.
The second preset value is one of the values of the opening parameter or not, and is used for indicating that the target switch assembly is in the "off" state. For example, the second preset value may be "false".
In embodiments of the present application, the adjustment strategy employed in adjusting the display state of a combined switch assembly (e.g., the tab page switch assembly shown in fig. 3) associated with one or more switch assemblies may be different from a single switch assembly.
Alternatively, since the combination switch assembly has one or more switch assemblies associated therewith, the display state of the switch assembly may not be adjusted when the combination switch assembly is in an "on" state and clicked, and the display state of the switch assembly may be adjusted to an "off" state when other switch assemblies associated therewith are clicked. Therefore, in the embodiment of the present application, when it is determined that the combination attribute of the target switch component is assigned to a value other than the first preset value, that is, when it is determined that the target switch component is a combination switch component, whether the opening parameter value of the target switch component is the second preset value may be continuously determined, so as to determine whether the target switch component is in the "off" state when being clicked.
Specifically, if it is determined whether the opening parameter value of the target switch component is the second preset value, it may be determined that the target switch component is in the "off" state when clicked, such as switch components 1, 2, 4, 5, and 6 in fig. 3; if it is determined whether the opening parameter value of the target switch assembly is a non-second preset value, it may be determined that the target switch assembly is in an "on" state when clicked, such as switch assembly 3 in fig. 3.
Further, when the target switch assembly is a combination switch assembly, the display state of the target switch assembly may be adjusted from the "off" state to the "display" state, and the display state of the switch assembly associated with the target switch assembly and currently in the "on" state may be adjusted to the "off" state. That is, in one possible implementation manner of the embodiment of the present application, after the step 405, the method may further include:
if the opening parameter value of the target switch assembly is a second preset value, determining an associated switch assembly with the same combination attribute assignment as the target switch assembly, wherein the current opening parameter value of the associated switch assembly is a non-second preset value;
and adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
In the embodiment of the application, for the combined switch assemblies, only one switch assembly in the combined switch assemblies can be allowed to be in an 'on' state, namely, the display state of the associated switch assembly in the 'on' state can be adjusted to be in an 'off' state while the display state of the one switch assembly is adjusted to be in the 'on' state.
Specifically, if the target switch component is a combination switch component and the value of the opening parameter of the target switch component is a second preset value (i.e., the target switch component is currently in an "off" state), the switch component associated with the target switch component and currently in an "on" state may be determined, so as to adjust the display state of the target switch component to an "on" state and simultaneously adjust the display state of the switch component to an "off state. That is, according to the combination attribute assignment of each switch component in the current page, the associated switch component which is the same as the combination attribute assignment of the target switch component and has the current opening parameter value of which is not the second preset value can be determined, and the opening parameter value of the associated switch component is adjusted to the second preset value, so that the display state of the associated switch component is adjusted to be in the "off" state according to the adjusted opening parameter value.
For example, assuming that the second preset value is "false", the non-second preset value is "true". As shown in fig. 3, the switch assemblies 1, 2, 4, 5, 6 are currently in the "off" state, i.e. whether the switch assemblies 1, 2, 4, 5, 6 are currently open or not having a parameter value of "false"; the switch assembly 3 is currently in an "on" state, i.e. whether the switch assembly 3 is currently open or not has a parameter value "true". If the target switch assembly is switch assembly 2, it may be determined that the associated switch assembly is switch assembly 3, so that whether the switch assembly 3 has an on parameter value of "false" may be adjusted.
Step 406, adjusting whether the opening parameter value of the target switch component is a non-second preset value;
in the embodiment of the application, if it is determined whether the on parameter value of the target switch component is the second preset value, that is, if it is determined that the target switch component is in the "off" state when clicked, the display state of the target switch component can be directly adjusted to the "on" state, that is, whether the on parameter value of the target switch component is adjusted to a non-second preset value, so that the display state of the target switch component can be adjusted according to the adjusted on parameter value.
For example, if it is determined that the value of the opening parameter of the target switch component is the second preset value "false", then the value of the opening parameter of the target switch component may be adjusted to "true".
Step 407, determining whether the current value of the target variable associated with the target switch component is a third preset value, if yes, executing step 408; otherwise, step 409 is performed.
The target variable associated with the target switch assembly refers to a variable for indicating whether the display state of the target switch assembly can be adjusted currently. That is, when the current value of the target variable associated with the target switch assembly is the third preset value, the display state of the target switch assembly may be adjusted according to whether the adjusted parameter value of the target switch assembly is turned on; otherwise, the display state of the target switch component does not need to be adjusted.
It should be noted that the target variable may be a boolean variable, and has two values, "false" and "true". In actual use, the third preset value may be "false" or "true", which is not limited in the embodiment of the present application.
As one possible implementation, for the combination switch assembly, the process of display state adjustment may be presented by an animation effect when its display state is adjusted from an "off" state to an "on" state. The method for realizing the animation effect can be added in a PlayEffect method, wherein the PlayEffect method is used for defining a switching effect when the state of the switch assembly is adjusted. However, in the created ToggleEx class inherited to the Toggle component, as long as whether the on parameter value of the target switch component is a non-second preset value, the play effect method starts to be executed, so that when the target switch component is in the "on" state and is clicked repeatedly, the play effect method is executed repeatedly, so that the display state of the target switch component is not adjusted, but the problem of playing the animation effect repeatedly is caused.
Therefore, in the embodiment of the present application, in order to solve the problem of repeatedly playing the animation effect without adjusting the display state of the target switch component, the target variable may be added to the play method associated with the template switch component, and when the play method is executed, it may be determined whether the current value of the target variable is the third preset value.
Step 408, executing a second preset method associated with the target switch component, where the second preset method is used to dynamically adjust the display state of the group of pictures associated with the target switch component, and assign the target variable associated with the target switch component to a non-third preset value.
In the embodiment of the application, if the current value of the target variable associated with the target switch component is determined to be the third preset value, a second preset method associated with the target switch component can be executed to dynamically adjust the display state of the picture group associated with the target switch component, so that the purpose of adjusting the display state of the target switch component to be an on state is achieved.
And after dynamically adjusting the display state of the group of pictures associated with the target switch assembly, the target variable associated with the target switch assembly may be assigned to a non-third preset value, so that the target switch assembly may not repeatedly adjust the display state of the group of pictures associated with the target switch assembly even if the target switch assembly is continuously clicked.
As a possible implementation manner, the second preset method may further include an animation event associated with the target switch component, so that when the second preset method is executed, a corresponding animation effect is presented when the display state of the picture group associated with the target switch component is adjusted.
Step 409, the clicked position in the current page is continuously monitored.
In the embodiment of the application, if the current value of the target variable associated with the target switch component is determined to be a non-third preset value, the second preset method associated with the target switch component is not executed, that is, the display state of the target switch component is not adjusted, and the clicked position in the current page is continuously monitored until other switch components associated with the target switch component are clicked, whether the opening parameter value of the target switch component is modified to be a second preset value, and whether the opening parameter value of the currently monitored clicked switch component is modified to be a non-second preset value.
According to the picture display state adjusting method provided by the embodiment of the application, when the combination attribute of the target switch component is determined to be assigned to the first preset value, whether the target switch component is opened or not is adjusted, the first preset method related to the target switch component is executed, when the combination attribute of the target switch component is assigned to the non-first preset value, whether the opening parameter of the target switch component is the second preset value is judged, then when the opening parameter of the target switch component is the second preset value, whether the opening parameter of the target switch component is the non-second preset value is adjusted, and when the current value of the target variable related to the target switch component is the third preset value, the second preset method related to the target switch component is executed, and when the opening parameter of the target switch component is the non-second preset value or the current value of the target variable related to the target switch component is the non-third preset value, the clicked position in the current page is continuously monitored. Therefore, the problem of repeated playing of the switching effect when the same combined switch assembly is continuously clicked is avoided by defining the target variable, and therefore the display effect of the switch assembly is enriched, the attractiveness of the switch assembly is improved, the friendliness and the interactivity of a user interface are improved, and the user experience is further improved.
In order to achieve the above embodiment, the present application further provides a device for adjusting a picture display state.
Fig. 8 is a schematic structural diagram of a device for adjusting a status of displaying pictures according to an embodiment of the present application.
As shown in fig. 8, the picture display state adjustment device 50 includes:
the first determining module 51 is configured to determine, according to a matching degree between a clicked position in a current page and a display position of each picture in the page, a target picture that is currently clicked;
the second determining module 52 is configured to determine, according to an association relationship between the switch component of the current page and the picture, a target switch component associated with the target picture;
a first adjustment module 53 for adjusting whether the target switch assembly is turned on or not;
the first execution module 54 is configured to execute a first preset method associated with the target switch assembly, where the first preset method is used to dynamically adjust a display state of the group of pictures associated with the target switch assembly.
In practical use, the image display state adjustment device provided by the embodiment of the application can be configured in any electronic equipment to execute the image display state adjustment method.
According to the picture display state adjusting device provided by the embodiment of the application, the target picture which is clicked at present is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch assembly which is related to the target picture is determined according to the association relation between the switch assembly of the current page and the picture, and then whether the parameter value of the target switch assembly is opened is adjusted, and a first preset method which is related to the target switch assembly is further executed, so that the display state of the picture group which is related to the target switch assembly is dynamically adjusted. Therefore, the display state of the whole picture group is dynamically adjusted through a first preset method associated with the target switch component when the target switch component is clicked by associating the picture group comprising a plurality of pictures with the switch component, so that the display effect of the switch component is enriched, the attractiveness of the switch component is improved, and the user experience is improved.
In one possible implementation form of the present application, the above-mentioned picture display status adjustment device 50 further includes:
the first judging module is used for judging whether the combination attribute assignment of the target switch assembly is a first preset value or not;
correspondingly, the first adjusting module 53 is specifically configured to:
and if the combination attribute of the target switch component is assigned to a first preset value, adjusting whether the target switch component is opened or not.
Further, in another possible implementation manner of the present application, the above-mentioned picture display status adjusting apparatus 50 further includes:
the second judging module is used for judging whether the opening parameter value of the target switch assembly is a second preset value or not if the combination attribute assignment of the target switch assembly is not the first preset value;
the second adjusting module is used for adjusting whether the opening parameter value of the target switch assembly is a non-second preset value if the opening parameter value of the target switch assembly is the second preset value;
the third judging module is used for judging whether the current value of the target variable associated with the target switch component is a third preset value or not;
and the second execution module is used for executing a second preset method associated with the target switch component if the current value of the target variable is a third preset value, wherein the second preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component and assigning the target variable associated with the target switch component to be a non-third preset value.
Further, in still another possible implementation form of the present application, the above-mentioned picture display status adjusting apparatus 50 further includes:
a fourth judging module, configured to judge whether the current value of the target variable associated with the target switch component is a third preset value if the value of the opening parameter of the target switch component is not the second preset value;
and the monitoring module is used for continuously monitoring the clicked position in the current page if the current value of the target variable is a non-third preset value.
Further, in still another possible implementation form of the present application, the above-mentioned picture display status adjusting apparatus 50 further includes:
the third determining module is configured to determine, if the value of the opening parameter of the target switch component is a second preset value, an associated switch component that is the same as the combination attribute assignment of the target switch component, where the current value of the opening parameter of the associated switch component is a non-second preset value;
and the third adjusting module is used for adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
Further, in still another possible implementation form of the present application, the above-mentioned picture display status adjusting apparatus 50 further includes:
and the fourth determining module is used for determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page in the loading process of the current page.
In one possible implementation manner of the present application, the first preset method includes two animation events;
correspondingly, the first execution module 54 is specifically configured to:
and executing an animation event taking the adjusted opening parameter value as a parameter in the first preset method.
Further, in another possible implementation manner of the present application, the first preset method includes two animation events;
the first execution module 54 is specifically configured to:
if the opening parameter of the target switch assembly is adjusted for the first time, executing a first animation event in a first preset method;
if the opening parameter of the target switch component is not adjusted for the first time, executing a second animation event in the first preset method.
It should be noted that the explanation of the embodiment of the method for adjusting the image display state shown in fig. 1, 4, 5 and 6 is also applicable to the image display state adjusting device 50 of this embodiment, and will not be repeated here.
According to the picture display state adjusting device provided by the embodiment of the application, when the combination attribute of the target switch component is determined to be assigned to the first preset value, whether the target switch component is opened or not is adjusted, the first preset method related to the target switch component is executed, when the combination attribute of the target switch component is assigned to the non-first preset value, whether the opening parameter value of the target switch component is the second preset value is judged, then when the opening parameter value of the target switch component is the second preset value, whether the opening parameter value of the target switch component is the non-second preset value is adjusted, and when the current value of the target variable related to the target switch component is the third preset value, the second preset method related to the target switch component is executed, and when the opening parameter value of the target switch component is the non-second preset value or the current value of the target variable related to the target switch component is the non-third preset value, the clicked position in the current page is continuously monitored. Therefore, the problem of repeated playing of the switching effect when the same combined switch assembly is continuously clicked is avoided by defining the target variable, and therefore the display effect of the switch assembly is enriched, the attractiveness of the switch assembly is improved, the friendliness and the interactivity of a user interface are improved, and the user experience is further improved.
In order to achieve the above embodiment, the present application further provides an electronic device.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 9, the electronic device 200 includes:
the memory 210 and the processor 220, the bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and the processor 220 implements the method for adjusting the image display state according to the embodiment of the present application when executing the program.
Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 240 and/or cache memory 250. The electronic device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, commonly referred to as a "hard disk drive"). Although not shown in fig. 9, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
Program/utility 280 having a set (at least one) of program modules 270 may be stored in, for example, memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 270 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), one or more devices that enable a user to interact with the electronic device 200, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 292. Also, electronic device 200 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 293. As shown, network adapter 293 communicates with other modules of electronic device 200 over bus 230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 200, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 220 executes various functional applications and data processing by running programs stored in the memory 210.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the method for adjusting the status of displaying the picture in the embodiment of the present application, and are not repeated here.
The electronic device provided by the embodiment of the application can execute the picture display state adjustment method, the target picture clicked currently is determined according to the matching degree between the clicked position in the current page and the display position of each picture in the page, the target switch component related to the target picture is determined according to the association relation between the switch component of the current page and the picture, and then whether the parameter value of the target switch component is opened is adjusted, so that a first preset method related to the target switch component is executed, and the display state of the picture group related to the target switch component is dynamically adjusted. Therefore, the display state of the whole picture group is dynamically adjusted through a first preset method associated with the target switch component when the target switch component is clicked by associating the picture group comprising a plurality of pictures with the switch component, so that the display effect of the switch component is enriched, the attractiveness of the switch component is improved, and the user experience is improved.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.
The computer readable storage medium stores a computer program which, when executed by a processor, implements the method for adjusting the display state of a picture according to the embodiment of the present application.
In order to achieve the foregoing embodiments, an embodiment of the present application provides a computer program, which when executed by a processor, implements the method for adjusting a picture display state according to the embodiment of the present application.
In alternative implementations, the present embodiments may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on the remote electronic device or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (16)

1. A picture display state adjustment method, characterized by comprising:
determining a target picture which is clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page;
determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture;
adjusting whether the target switch assembly has an open parameter value;
Executing a first preset method associated with the target switch assembly, wherein the first preset method is used for dynamically adjusting the display state of a picture group associated with the target switch assembly;
before the adjusting whether the target switch assembly is opened or not, the method further comprises:
judging whether the combination attribute assignment of the target switch assembly is a first preset value or not;
if the combination attribute of the target switch component is assigned with a non-first preset value, judging whether the opening parameter value of the target switch component is a second preset value or not;
if the opening parameter value of the target switch assembly is a second preset value, adjusting whether the opening parameter value of the target switch assembly is a non-second preset value;
judging whether the current value of a target variable associated with the target switch component is a third preset value or not;
and if the current value of the target variable is a third preset value, executing a second preset method associated with the target switch component, wherein the second preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component and assigning the target variable associated with the target switch component to be a non-third preset value.
2. The method of claim 1, wherein,
the adjusting whether the target switch assembly opens a parameter value includes:
and if the combination attribute of the target switch component is assigned to a first preset value, adjusting whether the target switch component is opened or not.
3. The method of claim 1, wherein after determining whether the opening parameter value of the target switch assembly is the second preset value, further comprising:
if the opening parameter value of the target switch assembly is not the second preset value, judging whether the current value of the target variable associated with the target switch assembly is a third preset value;
and if the current value of the target variable is a non-third preset value, continuing to monitor the clicked position in the current page.
4. The method of claim 1, wherein after determining whether the opening parameter value of the target switch assembly is the second preset value, further comprising:
if the value of the opening parameter of the target switch component is a second preset value, determining an associated switch component with the same combination attribute assignment as the target switch component, wherein the current value of the opening parameter of the associated switch component is a non-second preset value;
And adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
5. The method of any one of claims 1-4, wherein the first predetermined method includes two animation events;
the executing a first preset method associated with the target switch assembly includes:
and executing an animation event taking the adjusted opening parameter value as a parameter in the first preset method.
6. The method of any one of claims 1-4, wherein the first predetermined method includes two animation events;
the executing a first preset method associated with the target switch assembly includes:
if the opening parameter of the target switch assembly is adjusted for the first time, executing a first animation event in the first preset method;
and if the opening parameter of the target switch component is not adjusted for the first time, executing a second animation event in the first preset method.
7. The method of any of claims 1-4, wherein prior to determining a target switch component associated with the target picture, further comprising:
and in the loading process of the current page, determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page.
8. A picture display state adjustment apparatus, characterized by comprising:
the first determining module is used for determining a target picture which is clicked currently according to the matching degree between the clicked position in the current page and the display position of each picture in the page;
the second determining module is used for determining a target switch component associated with the target picture according to the association relation between the switch component of the current page and the picture;
a first adjustment module for adjusting whether the target switch assembly is turned on or not;
the first execution module is used for executing a first preset method associated with the target switch assembly, and the first preset method is used for dynamically adjusting the display state of the picture group associated with the target switch assembly;
the first judging module is used for judging whether the combination attribute assignment of the target switch assembly is a first preset value or not;
the second judging module is used for judging whether the opening parameter value of the target switch assembly is a second preset value or not if the combination attribute assignment of the target switch assembly is not the first preset value;
the second adjusting module is used for adjusting whether the opening parameter value of the target switch assembly is a non-second preset value if the opening parameter value of the target switch assembly is the second preset value;
The third judging module is used for judging whether the current value of the target variable associated with the target switch component is a third preset value or not;
and the second execution module is used for executing a second preset method associated with the target switch component if the current value of the target variable is a third preset value, wherein the second preset method is used for dynamically adjusting the display state of the picture group associated with the target switch component and assigning the target variable associated with the target switch component to be a non-third preset value.
9. The apparatus as recited in claim 8, further comprising:
the first adjusting module is specifically configured to:
and if the combination attribute of the target switch component is assigned to a first preset value, adjusting whether the target switch component is opened or not.
10. The apparatus as recited in claim 8, further comprising:
a fourth judging module, configured to judge whether a current value of a target variable associated with the target switch component is a third preset value if the value of the opening parameter of the target switch component is not the second preset value;
and the monitoring module is used for continuously monitoring the clicked position in the current page if the current value of the target variable is a non-third preset value.
11. The apparatus as recited in claim 8, further comprising:
a third determining module, configured to determine, if the value of the opening parameter of the target switch component is a second preset value, an associated switch component that is assigned the same as the combination attribute of the target switch component, where the current value of the opening parameter of the associated switch component is a non-second preset value;
and the third adjusting module is used for adjusting whether the opening parameter value of the associated switch assembly is a second preset value.
12. The apparatus according to any one of claims 8-11, wherein the first preset method includes two animation events;
the first execution module is specifically configured to:
and executing an animation event taking the adjusted opening parameter value as a parameter in the first preset method.
13. The apparatus according to any one of claims 8-11, wherein the first preset method includes two animation events;
the first execution module is specifically configured to:
if the opening parameter of the target switch assembly is adjusted for the first time, executing a first animation event in the first preset method;
and if the opening parameter of the target switch component is not adjusted for the first time, executing a second animation event in the first preset method.
14. The apparatus of any one of claims 8-11, further comprising:
and the fourth determining module is used for determining the association relation between the switch components of the current page and the picture according to the selection mark attribute of each switch component in the current page in the loading process of the current page.
15. An electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the picture display state adjustment method according to any one of claims 1 to 7 when executing the program.
16. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the picture display status adjustment method according to any one of claims 1 to 7.
CN201911087624.0A 2019-11-08 2019-11-08 Picture display state adjusting method and device and electronic equipment Active CN110928622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911087624.0A CN110928622B (en) 2019-11-08 2019-11-08 Picture display state adjusting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911087624.0A CN110928622B (en) 2019-11-08 2019-11-08 Picture display state adjusting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110928622A CN110928622A (en) 2020-03-27
CN110928622B true CN110928622B (en) 2023-11-14

Family

ID=69852602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911087624.0A Active CN110928622B (en) 2019-11-08 2019-11-08 Picture display state adjusting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110928622B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5990884A (en) * 1997-05-02 1999-11-23 Sony Corporation Control of multimedia information with interface specification stored on multimedia component
CN101727315A (en) * 2008-10-14 2010-06-09 上海科泰世纪科技有限公司 Method for realizing operation and display of button type panel control
WO2014173097A1 (en) * 2013-04-24 2014-10-30 小米科技有限责任公司 Icon display method and apparatus
CN104516646A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Method and device for relating image to button
CN105242927A (en) * 2015-10-09 2016-01-13 沈文策 Method for realizing slidable and clickable switch based on complex environment
CN106610761A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Icon color adjusting method and device
CN106843632A (en) * 2016-11-30 2017-06-13 广州视源电子科技股份有限公司 The display methods and system of a kind of icon
CN106874519A (en) * 2017-03-20 2017-06-20 百度在线网络技术(北京)有限公司 Webpage representation method and apparatus
CN107357500A (en) * 2017-06-21 2017-11-17 努比亚技术有限公司 A kind of picture-adjusting method, terminal and storage medium
WO2017214844A1 (en) * 2016-06-14 2017-12-21 Beijing Chaozhuo Technology Co., Ltd. Apparatus and method for status indicating
CN108388465A (en) * 2018-03-15 2018-08-10 广州优视网络科技有限公司 Implementation method, device and the terminal of dynamic deformation switch module
CN109359209A (en) * 2018-10-23 2019-02-19 深圳壹账通智能科技有限公司 Icon update method and device, electronic equipment, storage medium
CN109358780A (en) * 2018-09-06 2019-02-19 传线网络科技(上海)有限公司 Method for showing interface and device
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639612B2 (en) * 2001-10-11 2003-10-28 International Business Machines Corporation Ad hoc check box selection
US8650501B2 (en) * 2010-03-10 2014-02-11 Microsoft Corporation User interface with preview transitions
US9280608B2 (en) * 2012-05-15 2016-03-08 International Business Machines Corporation Group bookmarks
US10133587B2 (en) * 2015-10-28 2018-11-20 International Business Machines Corporation Generating component pages to render in a configuration page in a graphical user interface to configure a computing resource
CN105912184A (en) * 2015-10-30 2016-08-31 乐视移动智能信息技术(北京)有限公司 Method and device for information display
US20180364892A1 (en) * 2015-12-10 2018-12-20 Appelago Inc. Automated migration of animated icons for dynamic push notifications

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5990884A (en) * 1997-05-02 1999-11-23 Sony Corporation Control of multimedia information with interface specification stored on multimedia component
CN101727315A (en) * 2008-10-14 2010-06-09 上海科泰世纪科技有限公司 Method for realizing operation and display of button type panel control
WO2014173097A1 (en) * 2013-04-24 2014-10-30 小米科技有限责任公司 Icon display method and apparatus
CN104516646A (en) * 2013-09-30 2015-04-15 北大方正集团有限公司 Method and device for relating image to button
CN105242927A (en) * 2015-10-09 2016-01-13 沈文策 Method for realizing slidable and clickable switch based on complex environment
CN106610761A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Icon color adjusting method and device
WO2017214844A1 (en) * 2016-06-14 2017-12-21 Beijing Chaozhuo Technology Co., Ltd. Apparatus and method for status indicating
CN106843632A (en) * 2016-11-30 2017-06-13 广州视源电子科技股份有限公司 The display methods and system of a kind of icon
CN106874519A (en) * 2017-03-20 2017-06-20 百度在线网络技术(北京)有限公司 Webpage representation method and apparatus
CN107357500A (en) * 2017-06-21 2017-11-17 努比亚技术有限公司 A kind of picture-adjusting method, terminal and storage medium
CN108388465A (en) * 2018-03-15 2018-08-10 广州优视网络科技有限公司 Implementation method, device and the terminal of dynamic deformation switch module
CN109358780A (en) * 2018-09-06 2019-02-19 传线网络科技(上海)有限公司 Method for showing interface and device
CN109359209A (en) * 2018-10-23 2019-02-19 深圳壹账通智能科技有限公司 Icon update method and device, electronic equipment, storage medium
CN109460276A (en) * 2018-10-25 2019-03-12 北京字节跳动网络技术有限公司 The page and page configuration document generating method, device, terminal device and medium

Also Published As

Publication number Publication date
CN110928622A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
US11089353B1 (en) Hot key systems and methods
US20220385952A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
US7146573B2 (en) Automatic window representation adjustment
US7434174B2 (en) Method and system for zooming in and out of paginated content
CN103562862A (en) Global composition system
CN107977141B (en) Interaction control method and device, electronic equipment and storage medium
US20180024730A1 (en) Custom widgets based on graphical user interfaces of applications
US20110191677A1 (en) Methods, systems, and computer program products for controlling play of media streams
US8706275B2 (en) Systems and methods for application sound management
CN107222315A (en) User information revealing method and system based on voice communication platform
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
US10983812B2 (en) Replaying interactions with a graphical user interface (GUI) presented in a video stream of the GUI
CN110928626A (en) Interface switching method and device and electronic equipment
CN111460346A (en) Content auditing method and device, electronic equipment and storage medium
CN110784753B (en) Interactive video playing method and device, storage medium and electronic equipment
CN110062287B (en) Target object control method and device, storage medium and electronic equipment
US20160057469A1 (en) Methods, systems, and computer program products for controlling play of media streams
US8982137B2 (en) Methods and systems for overriding graphics commands
CN112684965A (en) Dynamic wallpaper state changing method and device, electronic equipment and storage medium
US20080059904A1 (en) Method, apparatus, and computer program product for implementing enhanced window focus in a graphical desktop
US20150253940A1 (en) Methods, systems, and computer program products for controlling play of media streams
CN110928622B (en) Picture display state adjusting method and device and electronic equipment
CN112015309B (en) Display switching method and device and mobile terminal
CN111475801A (en) Authority management method and system
CN113495621A (en) Interactive mode switching method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant