CN106020655B - Method and device for switching interface screen and electronic equipment - Google Patents

Method and device for switching interface screen and electronic equipment Download PDF

Info

Publication number
CN106020655B
CN106020655B CN201610334733.8A CN201610334733A CN106020655B CN 106020655 B CN106020655 B CN 106020655B CN 201610334733 A CN201610334733 A CN 201610334733A CN 106020655 B CN106020655 B CN 106020655B
Authority
CN
China
Prior art keywords
interface screen
sphere
dimensional
position information
target switching
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
CN201610334733.8A
Other languages
Chinese (zh)
Other versions
CN106020655A (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 CN201610334733.8A priority Critical patent/CN106020655B/en
Publication of CN106020655A publication Critical patent/CN106020655A/en
Application granted granted Critical
Publication of CN106020655B publication Critical patent/CN106020655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for switching an interface screen and electronic equipment, relates to an interface switching technology, and can improve the switching effect. The method for switching the interface screen comprises the following steps: receiving a switching instruction, and acquiring two-dimensional position information of each application program icon in a target switching interface screen; acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen; acquiring mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement; and mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation. The invention is suitable for executing switching operation between interface screens.

Description

Method and device for switching interface screen and electronic equipment
Technical Field
The present invention relates to interface switching technologies, and in particular, to a method and an apparatus for switching an interface screen, and an electronic device.
Background
With the continuous development of computer communication and internet technologies, electronic devices, such as smart mobile phones, personal digital assistants, palm computers, notebook computers, etc., are increasingly widely used. The internet information that electronic equipment can hold is the exponential growth, and the Application program (APP) that is used for bearing internet information also is more and more to through setting up the desktop shortcut, show the Application program icon of installation in the interface screen, make the user can be through operating this Application program icon in order to start Application program, greatly satisfied different users' individualized demand.
Because of the large number of application icons, the interface screen may not accommodate the large number of application icons, and thus, in order to facilitate management and operation of the application, one or more interface screens are required to be provided to effectively manage the application icons. For example, four or nine application icons or other numbers of application icons may be arranged in each interface screen in a four-box or nine-box or other manner, and one interface screen may be set as the main interface screen. When the application program icon to be started is not in the main interface screen, switching to the interface screen where the application program icon to be started is located is performed through switching among different interface screens, and therefore the application program icon is clicked to start the application program. However, in the current interface screen switching method, the interface screen is slid in a tiled manner, so that the transition effect during switching is a smooth transition effect, the switching manner is simple, the switching effect is poor, and the personalized switching effect requirement of the user cannot be met, thereby reducing the application program experience of the user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for switching an interface screen, and an electronic device, which can improve a switching effect and meet requirements of different users for the switching effect, so as to solve the problems that in an existing method for switching an interface screen, the switching effect of switching by sliding an interface screen in a tiled manner is poor, and requirements of users for personalized switching effects cannot be met.
In a first aspect, an embodiment of the present invention provides a method for switching an interface screen, including:
receiving a switching instruction, and acquiring two-dimensional position information of each application program icon in a target switching interface screen;
acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen;
acquiring mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement;
and mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation.
With reference to the first aspect, in a first implementation manner of the first aspect, the receiving a handover instruction includes:
monitoring that the sliding distance of a user on a current interface screen exceeds half of the current interface screen, triggering the current interface screen to generate and output a switching instruction;
and receiving a switching instruction output by the current interface screen.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the monitoring that the sliding distance of the user on the current interface screen exceeds half of the current interface screen includes:
monitoring the sliding operation of a user, and if the sliding operation is a transverse operation, if the sliding distance exceeds half of the current desktop transverse screen, determining that the sliding distance of the current interface screen exceeds half of the current interface screen; or when the sliding operation is the vertical operation, if the sliding distance exceeds half of the vertical screen of the current desktop, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen.
With reference to the first aspect, in a third implementation manner of the first aspect, the obtaining two-dimensional position information of each application icon in the target switching interface screen includes:
and dividing the target switching interface screen into preset threshold sub-screens by taking the lower left corner point of the target switching interface screen as a coordinate origin, wherein each sub-screen is a unit.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the obtaining two-dimensional position information of each application icon in the target switching interface screen includes:
constructing a plane coordinate system by taking a left lower corner point of the target switching interface screen as a coordinate origin and taking pixel points as units;
respectively extracting coordinates of four pixel points of the lower left corner, the upper left corner, the lower right corner and the upper right corner of the application program icon;
and acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixels, wherein the two-dimensional position information of the application program icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
With reference to the first aspect, in a fifth implementation manner of the first aspect, the obtaining the three-dimensional wallpaper set for the target switching interface screen includes:
and loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
With reference to the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the mapping, according to the mapping relationship, the acquired two-dimensional position information of each application icon to three-dimensional position information of the moving three-dimensional wallpaper surface includes:
acquiring coordinates of the moving sphere, and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the displayed sphere surface according to the mapping relation.
With reference to the fifth implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the mapping, according to the mapping relationship, the acquired two-dimensional position information of each application icon to three-dimensional position information of the moving three-dimensional wallpaper surface includes:
according to the mapping relation; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
constructing a corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
and acquiring the current presentation width of the target switching interface screen, inquiring the corresponding relation to obtain the corresponding angle of the rotation of the sphere, and rotating the sphere to the corresponding angle.
In a second aspect, an embodiment of the present invention provides an apparatus for switching an interface screen, including: a two-dimensional information acquisition module, a loading module, a mapping relation construction module and a switching effect module, wherein,
the two-dimensional information acquisition module is used for receiving a switching instruction and acquiring two-dimensional position information of each application program icon in a target switching interface screen;
the loading module is used for acquiring three-dimensional wallpaper set for the target switching interface screen and loading the three-dimensional wallpaper to the target switching interface screen;
the mapping relation construction module is used for acquiring the mapping relation between the three-dimensional position information of the three-dimensional wallpaper surface projected on the target switching interface screen and the two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement;
and the switching effect module is used for mapping the acquired two-dimensional position information of each application program icon into the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation.
With reference to the second aspect, in a first implementation manner of the second aspect, the two-dimensional information obtaining module includes: a monitoring unit, a receiving unit and a two-dimensional information acquisition unit, wherein,
the monitoring unit is used for monitoring that the sliding distance of a user on a current interface screen exceeds half of the current interface screen, triggering the current interface screen to generate a switching instruction and outputting the switching instruction;
the receiving unit is used for receiving a switching instruction output by a current interface screen;
and the two-dimensional information acquisition unit is used for acquiring the two-dimensional position information of each application program icon in the target switching interface screen.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the monitoring unit includes: a monitoring subunit, a slip direction confirming subunit and a switching instruction output subunit, wherein,
the monitoring subunit is used for monitoring the slippage operation of the user;
the sliding direction confirming subunit is used for confirming that the sliding distance of the current interface screen exceeds half of the current interface screen if the sliding distance exceeds half of the current desktop transverse screen when the sliding operation is the transverse operation, and informing the switching instruction output subunit; or when the sliding operation is the longitudinal operation, if the sliding distance exceeds half of the current desktop longitudinal screen, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen, and informing a switching instruction output subunit;
and the switching instruction output subunit is used for triggering the current interface screen to generate and output a switching instruction.
With reference to the first implementation manner of the second aspect, in a third implementation manner of the second aspect, the two-dimensional information acquisition unit includes: an origin determining subunit and a screen dividing subunit, wherein,
an origin determining subunit, configured to use a lower left corner of the target switching interface screen as a coordinate origin;
and the screen dividing subunit is used for dividing the target switching interface screen into preset threshold sub-screens, and each sub-screen is a unit.
With reference to the first implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the two-dimensional information acquisition unit includes: a plane coordinate system construction subunit, a pixel point extraction subunit and a two-dimensional information acquisition subunit, wherein,
the plane coordinate system constructing subunit is used for constructing a plane coordinate system by taking the lower left corner point of the target switching interface screen as a coordinate origin and taking the pixel points as units;
the pixel point extracting subunit is used for respectively extracting coordinates of four pixel points of a lower left corner, an upper left corner, a lower right corner and an upper right corner of the application program icon;
and the two-dimensional information acquisition subunit is used for acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixel points, wherein the two-dimensional position information of the application program icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
With reference to the second aspect, in a fifth implementation manner of the second aspect, the loading module includes: a sphere acquisition unit and a sphere loading unit, wherein,
the sphere obtaining unit is used for obtaining a sphere set for the target switching interface screen;
and the sphere loading unit is used for loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and taking the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
With reference to the fifth implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the switching effect module includes: an overlapping area information acquiring unit and a position information dynamic mapping unit, wherein,
the coincidence region information acquisition unit is used for acquiring coordinates of the moving sphere and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and the position information dynamic mapping unit is used for mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the displayed sphere surface according to the mapping relation.
With reference to the fifth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the switching effect module includes: a position information static mapping unit, a corresponding relation construction unit and a rotation unit, wherein,
the position information static mapping unit is used for mapping the relationship; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
the corresponding relation building unit is used for building the corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
and the rotating unit is used for acquiring the current presenting width of the target switching interface screen, inquiring the corresponding relation, acquiring the corresponding angle of the rotation of the sphere, and rotating the sphere to the corresponding angle.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any one of the methods for switching the interface screen.
According to the method, the device and the electronic equipment for switching the interface screen, provided by the embodiment of the invention, the two-dimensional position information of each application program icon in the target switching interface screen is obtained by receiving the switching instruction; acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen; acquiring mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement; and mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation. The switching effect can be improved, the switching effect requirements of different users can be met, and the problems that in the existing method for switching the interface screen, the switching effect is poor due to the fact that the interface screen slides in a tiled mode to realize switching, and the individualized switching effect requirements of the users cannot be met are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for switching an interface screen according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for switching interface screens according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for switching an interface screen according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for switching an interface screen according to an embodiment of the present invention, as shown in fig. 1, the method according to the embodiment may include:
step 101, receiving a switching instruction, and acquiring two-dimensional position information of each application program icon in a target switching interface screen;
in this embodiment, as an optional embodiment, the receiving the switching instruction includes:
a11, triggering the current interface screen to generate and output a switching instruction when the sliding distance of a user on the current interface screen is monitored to exceed half of the current interface screen;
in this embodiment, as an optional embodiment, the monitoring that the sliding distance of the user on the current interface screen exceeds half of the current interface screen includes:
monitoring the sliding operation of a user, and if the sliding operation is a transverse operation, if the sliding distance exceeds half of the current desktop transverse screen, determining that the sliding distance of the current interface screen exceeds half of the current interface screen; or when the sliding operation is the vertical operation, if the sliding distance exceeds half of the vertical screen of the current desktop, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen.
Of course, in practical applications, the switching instruction may also be triggered and generated in other manners, for example, when the user performs the sliding operation in a limited range and repeats the sliding operation for multiple times, it is considered that the switching operation needs to be performed, that is, the sliding operation of the user is a reciprocating sliding operation, a sliding distance of each sliding operation exceeds a preset distance threshold, and the number of sliding operations exceeds a preset number threshold, which triggers and generates the switching instruction, but this embodiment is not limited thereto.
A12, receiving a switching instruction output by the current interface screen.
In this embodiment, as an optional embodiment, the obtaining the two-dimensional position information of each application icon in the target switching interface screen includes:
and dividing the target switching interface screen into preset threshold sub-screens by taking the lower left corner point of the target switching interface screen as a coordinate origin, wherein each sub-screen is a unit.
In this embodiment, the threshold may be set according to actual needs, for example, may be set to 225, that is, the target switching interface screen is divided into 15 × 15 separate sub-screens.
In this embodiment, as another optional embodiment, the obtaining the two-dimensional position information of each application icon in the target switching interface screen includes:
b11, constructing a plane coordinate system by taking the lower left corner of the target switching interface screen as a coordinate origin and taking pixel points as units;
in this embodiment, in the plane coordinate system, a pixel point is taken as a unit, for example, if the number of pixel points (resolution) of the target switching interface screen is 1024 × 768, the lower left corner point of the plane coordinate is an origin, the coordinate is (0, 0), and the upper right corner point coordinate of the plane coordinate is (1024, 768).
B12, respectively extracting coordinates of four pixel points of the lower left corner, the upper left corner, the lower right corner and the upper right corner of the application program icon;
and B13, acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixel points, wherein the two-dimensional position information of the application icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
In this embodiment, the plane coordinates of each pixel point in the application icon may also be obtained.
102, acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen;
in this embodiment, as an optional embodiment, the three-dimensional wallpaper may be a wallpaper with a three-dimensional space, such as a sphere, a cylinder, a cone, and the like.
Taking three-dimensional wallpaper as an example, acquiring the three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen includes:
and loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
In this embodiment, as an optional embodiment, the color of the three-dimensional wallpaper may be set to match the color of the target switching interface screen, and therefore, the method further includes:
and setting the surface color of the sphere for the sphere, wherein the surface color of the sphere is the average value of the screen color of the target switching interface.
In the embodiment, for a target switching interface screen divided into sub-screens, the average value of the colors of the target switching interface screen is the color average value of each sub-screen; and for the target switching interface screen divided into the pixel points, the average value of the colors of the target switching interface screen is the average value of the colors of all the pixel points. In this way, the color of the sphere can be consistent with the color of the target switching interface screen.
103, acquiring a mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement;
in this embodiment, as an optional embodiment, the movement of the three-dimensional wallpaper includes: translation, and/or rotation. Taking a sphere as an example, the spherical translation includes but is not limited to: the sphere translates upwards from the bottom end of the target switching interface screen, translates downwards from the top end of the target switching interface screen, translates rightwards from the left lower end of the target switching interface screen, and the like; sphere rotation includes, but is not limited to: the rotation about the x-axis with the sphere center, the rotation about the y-axis with the sphere center, the rotation about the x-axis with the aspheric center, etc., which are not limited in this embodiment.
And if the sphere rotates, carrying out orthographic projection on the loaded sphere so that the sphere is projected in the target switching interface screen. And acquiring the mapping relation between the three-dimensional position information of the surface of the sphere and the two-dimensional position information of the target switching interface screen according to the coordinates of the center of the sphere, the coordinates of the surface of the sphere and the origin of the plane coordinate system. The mapping relationship is a static mapping relationship between the sphere and the plane coordinate system.
In this embodiment, the target switching interface screen is taken as a tangent plane, the sphere is divided into two hemispheres, one hemisphere is displayed on the target switching interface screen, and the other hemisphere is hidden in the target switching interface screen and is not displayed.
And if the translation is the translation of the sphere, constructing a mapping relation between the three-dimensional position information of the surface of the sphere and the two-dimensional position information of the target switching interface screen according to the translation speed of the sphere. The mapping relationship is a dynamic mapping relationship between a sphere and a plane coordinate system.
In this embodiment, the mapping relationship between the spherical coordinates and the planar coordinate system for obtaining the motion is a known technology, and the detailed description is omitted here.
In this embodiment, the display priority of the layer where the sphere is located is set to be higher than the display priority of the layer where the target switching interface screen is located. Namely, the sphere is displayed at the coincident position of the target switching interface screen and the sphere.
And 104, mapping the acquired two-dimensional position information of each application icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation.
In this embodiment, as an optional embodiment, if the movement is a sphere translation, mapping the acquired two-dimensional position information of each application icon to the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relationship includes:
c11, acquiring coordinates of the moving sphere, and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and C12, mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the displayed sphere surface according to the mapping relation.
In this embodiment, in the sphere translation, the two-dimensional position information of each application icon in the target switching interface screen is continuously mapped to the three-dimensional position information of the sphere surface, and the corresponding application icon is displayed according to the mapped three-dimensional position information.
In this embodiment, taking the example of dividing the target switching interface screen into 15 × 15 separate sub-screens, mapping each application icon in the target switching interface screen to the surface of the sphere, that is, changing the corresponding spatial position of each of the divided 15 × 15 sub-screens: if the spherical pattern on the wallpaper slowly moves from the bottom to the center of the target switching interface screen, the spherical pattern is taken as a concentric circle, and for the position, close to the center of the sphere, in 15 × 15 sub-screens, a spherical surface is generated according to the radius of the cross section of the sphere where the sub-screens are located, even if the bending amplitude of the sub-screens is small, the sub-screens slowly lean against the spherical surface corresponding to the center of the sphere; for the sub-screen at the central edge of the sphere, the spherical surface is generated by the radius of the cross section of the sphere where the sub-screen is located, even if the sub-screen is bent to a larger extent, the sub-screen slowly leans against the spherical surface corresponding to the central edge of the sphere. With the translation of the sphere, the sub-screens which are coincident with the sphere form different radians, and the size and the shape of the icon of the sub-screen which is not on the spherical surface (the sub-screen which is not coincident with the sphere during the translation of the sphere) are kept unchanged.
As another optional embodiment, if the rotation is a sphere rotation, mapping the acquired two-dimensional position information of each application icon to the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relationship includes:
d11, according to the mapping relation; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
in this embodiment, when switching is started, each application icon in the target switching interface screen is set not to be displayed on the currently displayed hemispherical surface.
D12, constructing a corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
in this embodiment, the center of the sphere is always located at the center of the target switching interface screen, and in the process that the target switching interface screen gradually slips and is fully distributed on the current whole screen, the sphere slips along with the slippage of the target switching interface screen, and meanwhile, the sphere rotates around the x axis or the y axis.
In this embodiment, the distance from when the target switch interface screen starts to slide to when the target switch interface screen finishes sliding is associated with the rotation (rotation) of the sphere, for example, if the width of the target switch interface screen is 60cm, the rotation angle of the corresponding sphere may be set to be 30 degrees when the presentation width of the target switch interface screen on the current screen is 10cm, the rotation angle of the corresponding sphere may be set to be 90 degrees when the presentation width of the target switch interface screen on the current screen is 30cm, and the rotation angle of the corresponding sphere may be set to be 180 degrees when the presentation width of the target switch interface screen on the current screen is 60 cm.
D13, obtaining the current display width of the target switching interface screen, inquiring the corresponding relation, obtaining the corresponding angle of the sphere rotation, and rotating the sphere to the corresponding angle.
In this embodiment, assuming that the width of the target switching interface screen is 60cm and the presentation width increases by 6cm per second, the sphere can be rotated by 18 degrees per second according to the corresponding relationship.
According to the method for switching the interface screen, the two-dimensional position information of each application program icon in the target switching interface screen is obtained by receiving the switching instruction; acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen; acquiring mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement; and mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation. Therefore, when the interface screen is switched, the application program icons in the interface screen can present different switching effects according to different positions, the application program icons on the target switching interface screen can form a spherical surface and can roll and transit along with the spherical surface in the background, a cool and personalized switching transition effect can be provided for a user, the switching mode is enriched, the switching effect is improved, the personalized switching effect requirement of the user can be met, and the application program experience and the interface screen use experience of the user are enhanced.
Fig. 2 is a schematic flow chart of a method for switching an interface screen according to a second embodiment of the present invention, as shown in fig. 2, the method according to the present embodiment may include:
step 201, receiving a switching instruction, and acquiring two-dimensional position information of each application program icon in a target switching interface screen;
in this embodiment, the process of step 201 is similar to that of step 101 in the first embodiment of the method described above, and is not described here again.
Step 202, loading a sphere on the target switching interface screen;
step 203, performing orthographic projection on the loaded sphere to acquire a mapping relation between three-dimensional position information of the sphere surface projected on the target switching interface screen and two-dimensional position information of the target switching interface screen;
step 204, according to the mapping relation; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
step 205, constructing a presentation corresponding relation between the screen presentation width of the target switching interface and the rotation of the sphere by 180 degrees; and the blanking width of the screen of the target switching interface corresponds to the blanking corresponding relation of 180-degree rotation of the sphere;
in this embodiment, assuming that the screen width of the target switching interface is 60cm, the blanking width increases at 6cm per second, that is, the screen width of the target switching interface decreases at 6cm per second, the blanking correspondence relationship may be set to rotate at the rotation speed of the surface of the sphere.
Step 206, obtaining the current presentation width of the target switching interface screen, inquiring the presentation corresponding relation, obtaining a presentation corresponding angle of the rotation of the sphere, and rotating the sphere to the presentation corresponding angle;
step 207, receiving the switching instruction again, obtaining the current blanking width of the target switching interface screen, inquiring the blanking corresponding relation, obtaining the blanking corresponding angle of the sphere rotation, and rotating the sphere to the blanking corresponding angle.
According to the method for switching the interface screen, when the interface screen is switched from the target switching interface screen to other interface screens, the application program icons on the target switching interface screen can generate a dynamic switching effect, and the use experience of the interface screen of a user is enhanced.
Fig. 3 is a schematic structural diagram of an apparatus for switching an interface screen according to a third embodiment of the present invention, and as shown in fig. 3, the apparatus according to the present embodiment may include: a two-dimensional information obtaining module 31, a loading module 32, a mapping relation constructing module 33, and a switching effect module 34, wherein,
the two-dimensional information acquisition module 31 is configured to receive a switching instruction and acquire two-dimensional position information of each application icon in a target switching interface screen;
in this embodiment, as an optional embodiment, the two-dimensional information obtaining module 31 includes: a monitoring unit, a receiving unit, and a two-dimensional information acquiring unit (not shown in the figure), wherein,
the monitoring unit is used for monitoring that the sliding distance of a user on a current interface screen exceeds half of the current interface screen, triggering the current interface screen to generate a switching instruction and outputting the switching instruction;
in this embodiment, as an optional embodiment, the monitoring unit includes: a monitoring subunit, a slip direction confirming subunit and a switching instruction output subunit, wherein,
the monitoring subunit is used for monitoring the slippage operation of the user;
the sliding direction confirming subunit is used for confirming that the sliding distance of the current interface screen exceeds half of the current interface screen if the sliding distance exceeds half of the current desktop transverse screen when the sliding operation is the transverse operation, and informing the switching instruction output subunit; or when the sliding operation is the longitudinal operation, if the sliding distance exceeds half of the current desktop longitudinal screen, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen, and informing a switching instruction output subunit;
and the switching instruction output subunit is used for triggering the current interface screen to generate and output a switching instruction.
In this embodiment, the generation of the switching instruction may also be triggered by other manners, for example, when the user performs the sliding operation in a limited range and repeats the sliding operation for multiple times, it is considered that the switching operation needs to be performed, that is, the sliding operation of the user is a reciprocating sliding operation, a sliding distance of each sliding operation exceeds a preset distance threshold, and the number of sliding operations exceeds a preset number threshold, which is not limited in this embodiment.
The receiving unit is used for receiving a switching instruction output by a current interface screen;
and the two-dimensional information acquisition unit is used for acquiring the two-dimensional position information of each application program icon in the target switching interface screen.
In this embodiment, as an optional embodiment, the two-dimensional information obtaining unit includes: an origin determining subunit and a screen dividing subunit, wherein,
an origin determining subunit, configured to use a lower left corner of the target switching interface screen as a coordinate origin;
and the screen dividing subunit is used for dividing the target switching interface screen into preset threshold sub-screens, and each sub-screen is a unit.
In this embodiment, the threshold may be set according to actual needs, for example, may be set to 225, that is, the target switching interface screen is divided into 15 × 15 separate sub-screens.
As another alternative embodiment, the two-dimensional information acquisition unit includes: a plane coordinate system construction subunit, a pixel point extraction subunit and a two-dimensional information acquisition subunit, wherein,
the plane coordinate system constructing subunit is used for constructing a plane coordinate system by taking the lower left corner point of the target switching interface screen as a coordinate origin and taking the pixel points as units;
the pixel point extracting subunit is used for respectively extracting coordinates of four pixel points of a lower left corner, an upper left corner, a lower right corner and an upper right corner of the application program icon;
and the two-dimensional information acquisition subunit is used for acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixel points, wherein the two-dimensional position information of the application program icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
A loading module 32, configured to obtain a three-dimensional wallpaper set for the target switching interface screen, and load the three-dimensional wallpaper to the target switching interface screen;
in this embodiment, as an optional embodiment, the three-dimensional wallpaper may be a wallpaper with a three-dimensional space, such as a sphere, a cylinder, a cone, and the like.
In this embodiment, as an optional embodiment, the loading module 32 includes: a sphere acquisition unit and a sphere loading unit, wherein,
the sphere obtaining unit is used for obtaining a sphere set for the target switching interface screen;
and the sphere loading unit is used for loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and taking the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
The mapping relationship establishing module 33 is configured to obtain a mapping relationship between three-dimensional position information of a three-dimensional wallpaper surface projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper motion;
in this embodiment, as an optional embodiment, the movement of the three-dimensional wallpaper includes: translation, and/or rotation.
In this embodiment, the target switching interface screen is taken as a tangent plane, the sphere is divided into two hemispheres, one hemisphere is displayed on the target switching interface screen, and the other hemisphere is hidden in the target switching interface screen and is not displayed.
And the switching effect module 34 is configured to map the acquired two-dimensional position information of each application icon into the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relationship.
In this embodiment, as an optional embodiment, the switching effect module 34 includes: an overlap area information acquisition unit, and a position information dynamic mapping unit (not shown in the figure), wherein,
the coincidence region information acquisition unit is used for acquiring coordinates of the moving sphere and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and the position information dynamic mapping unit is used for mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the displayed sphere surface according to the mapping relation.
In this embodiment, in the sphere translation, the two-dimensional position information of each application icon in the target switching interface screen is continuously mapped to the three-dimensional position information of the sphere surface, and the corresponding application icon is displayed according to the mapped three-dimensional position information.
As another alternative embodiment, the switch effect module 34 includes: a position information static mapping unit, a corresponding relation construction unit and a rotation unit, wherein,
the position information static mapping unit is used for mapping the relationship; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
the corresponding relation building unit is used for building the corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
and the rotating unit is used for acquiring the current presenting width of the target switching interface screen, inquiring the corresponding relation, acquiring the corresponding angle of the rotation of the sphere, and rotating the sphere to the corresponding angle.
In this embodiment, the center of the sphere is always located at the center of the target switching interface screen, and in the process that the target switching interface screen gradually slips and is fully distributed on the current whole screen, the sphere slips along with the slippage of the target switching interface screen, and meanwhile, the sphere rotates around the x axis or the y axis.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 4 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the processes of the embodiments shown in fig. 1 to 3 of the present invention, and as shown in fig. 4, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, and is configured to execute the method for switching the interface screen according to any of the foregoing embodiments.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 3 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
The above description of the embodiments will make clear to those skilled in the art that the present invention can be implemented
The invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (17)

1. A method for switching an interface screen, comprising:
receiving a switching instruction for switching from a current interface screen to a target switching interface screen, and acquiring two-dimensional position information of each application program icon in the target switching interface screen;
acquiring three-dimensional wallpaper set for the target switching interface screen, and loading the three-dimensional wallpaper to the target switching interface screen; acquiring mapping relation between three-dimensional position information of the surface of the three-dimensional wallpaper projected on the target switching interface screen and two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement;
mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the surface of the moving three-dimensional wallpaper according to the mapping relation;
after the three-dimensional wallpaper set for the target switching interface screen is obtained and loaded to the target switching interface screen, the method further comprises the following steps; setting a surface color for the three-dimensional wallpaper, wherein the surface color of the three-dimensional wallpaper is an average value of the screen colors of the target switching interface;
for a target switching interface screen divided into sub-screens, the average value of the colors of the target switching interface screen is the color average value of each sub-screen;
the three-dimensional wallpaper is spherical wallpaper, and the movement of the three-dimensional wallpaper comprises the following steps: translation, and/or rotation;
if the movement of the three-dimensional wallpaper is sphere rotation, carrying out orthographic projection on the loaded sphere so that the sphere is projected in the target switching interface screen;
acquiring a mapping relation between three-dimensional position information of the surface of the sphere and two-dimensional position information of a target switching interface screen according to the coordinates of the center of the sphere, the coordinates of the sphere on the surface of the sphere and the origin of a plane coordinate system; the mapping relation is a static mapping relation between a sphere and a plane coordinate system.
2. The method for switching interface screens according to claim 1, wherein the receiving a switching instruction for switching from a current interface screen to a target switching interface screen comprises:
monitoring that the sliding distance of a user on a current interface screen exceeds half of the current interface screen, triggering the current interface screen to generate and output a switching instruction;
and receiving a switching instruction output by the current interface screen.
3. The method of switching an interface screen of claim 2, wherein said monitoring that a user has slid more than half of a current interface screen comprises:
monitoring the sliding operation of a user, and if the sliding operation is a transverse operation, if the sliding distance exceeds half of the transverse screen of the current interface, determining that the sliding distance of the current interface screen exceeds half of the current interface screen; or when the sliding operation is the longitudinal operation, if the sliding distance exceeds half of the current interface longitudinal screen, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen.
4. The method for switching the interface screen according to claim 1, wherein the acquiring the two-dimensional position information of each application icon in the target switching interface screen includes:
and dividing the target switching interface screen into preset threshold sub-screens by taking the lower left corner point of the target switching interface screen as a coordinate origin, wherein each sub-screen is a unit.
5. The method for switching the interface screen according to claim 1, wherein the acquiring the two-dimensional position information of each application icon in the target switching interface screen includes:
constructing a plane coordinate system by taking a left lower corner point of the target switching interface screen as a coordinate origin and taking pixel points as units;
respectively extracting coordinates of four pixel points of the lower left corner, the upper left corner, the lower right corner and the upper right corner of the application program icon;
and acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixels, wherein the two-dimensional position information of the application program icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
6. The method for switching the interface screen according to claim 1, wherein the three-dimensional wallpaper is a sphere, and the obtaining the three-dimensional wallpaper set for the target switching interface screen, and the loading to the target switching interface screen includes:
and loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
7. The method for switching interface screens according to claim 6, wherein the mapping the acquired two-dimensional position information of each application icon to the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relationship comprises:
acquiring coordinates of the moving sphere, and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the surface of the displayed sphere according to the mapping relation.
8. The method for switching interface screens according to claim 6, wherein the mapping the acquired two-dimensional position information of each application icon to the three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relationship comprises:
according to the mapping relation; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
constructing a corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
and acquiring the current presentation width of the target switching interface screen, inquiring the corresponding relation to obtain the corresponding angle of the rotation of the sphere, and rotating the sphere to the corresponding angle.
9. An apparatus for switching an interface screen, comprising: a two-dimensional information acquisition module, a loading module, a mapping relation construction module and a switching effect module, wherein,
the two-dimensional information acquisition module is used for receiving a switching instruction for switching from the current interface screen to the target switching interface screen and acquiring two-dimensional position information of each application program icon in the target switching interface screen;
the loading module is used for acquiring three-dimensional wallpaper set for the target switching interface screen and loading the three-dimensional wallpaper to the target switching interface screen;
the mapping relation construction module is used for acquiring the mapping relation between the three-dimensional position information of the three-dimensional wallpaper surface projected on the target switching interface screen and the two-dimensional position information of the target switching interface screen in the three-dimensional wallpaper movement;
the switching effect module is used for mapping the acquired two-dimensional position information of each application program icon into three-dimensional position information of the moving three-dimensional wallpaper surface according to the mapping relation;
the loading module is further configured to set a surface color for the three-dimensional wallpaper after the three-dimensional wallpaper set for the target switching interface screen is acquired and loaded to the target switching interface screen, where the surface color of the three-dimensional wallpaper is an average value of the target switching interface screen colors;
for a target switching interface screen divided into sub-screens, the average value of the colors of the target switching interface screen is the color average value of each sub-screen;
the three-dimensional wallpaper is spherical wallpaper, and the movement of the three-dimensional wallpaper comprises the following steps: translation, and/or rotation;
the mapping relation component module is specifically used for projecting the loaded sphere if the movement of the three-dimensional wallpaper is sphere rotation, so that the sphere is projected in a target switching interface screen;
acquiring a mapping relation between three-dimensional position information of the surface of the sphere and two-dimensional position information of a target switching interface screen according to the coordinates of the center of the sphere, the coordinates of the sphere on the surface of the sphere and the origin of a plane coordinate system; the mapping relation is a static mapping relation between a sphere and a plane coordinate system.
10. The apparatus for switching an interface screen according to claim 9, wherein the two-dimensional information acquisition module comprises: a monitoring unit, a receiving unit and a two-dimensional information acquisition unit, wherein,
the monitoring unit is used for monitoring that the sliding distance of a user on a current interface screen exceeds half of the current interface screen, triggering the current interface screen to generate a switching instruction and outputting the switching instruction;
the receiving unit is used for receiving a switching instruction output by a current interface screen;
and the two-dimensional information acquisition unit is used for acquiring the two-dimensional position information of each application program icon in the target switching interface screen.
11. The apparatus for switching an interface screen according to claim 10, wherein the monitoring unit comprises: a monitoring subunit, a slip direction confirming subunit and a switching instruction output subunit, wherein,
the monitoring subunit is used for monitoring the slippage operation of the user;
the sliding direction confirming subunit is used for confirming that the sliding distance of the current interface screen exceeds half of the current interface screen if the sliding distance exceeds half of the current interface transverse screen when the sliding operation is the transverse operation, and informing the switching instruction output subunit; or when the sliding operation is the longitudinal operation, if the sliding distance exceeds half of the current interface longitudinal screen, confirming that the sliding distance of the current interface screen exceeds half of the current interface screen, and informing a switching instruction output subunit;
and the switching instruction output subunit is used for triggering the current interface screen to generate and output a switching instruction.
12. The apparatus for switching an interface screen according to claim 10, wherein the two-dimensional information acquisition unit includes: an origin determining subunit and a screen dividing subunit, wherein,
an origin determining subunit, configured to use a lower left corner of the target switching interface screen as a coordinate origin;
and the screen dividing subunit is used for dividing the target switching interface screen into preset threshold sub-screens, and each sub-screen is a unit.
13. The apparatus for switching an interface screen according to claim 10, wherein the two-dimensional information acquisition unit includes: a plane coordinate system construction subunit, a pixel point extraction subunit and a two-dimensional information acquisition subunit, wherein,
the plane coordinate system constructing subunit is used for constructing a plane coordinate system by taking the lower left corner point of the target switching interface screen as a coordinate origin and taking the pixel points as units;
the pixel point extracting subunit is used for respectively extracting coordinates of four pixel points of a lower left corner, an upper left corner, a lower right corner and an upper right corner of the application program icon;
and the two-dimensional information acquisition subunit is used for acquiring a minimum x-axis coordinate, a maximum x-axis coordinate, a minimum y-axis coordinate and a maximum y-axis coordinate from the coordinates of the four pixel points, wherein the two-dimensional position information of the application program icon is contained in a rectangle of diagonal point coordinates (the minimum x-axis coordinate, the minimum y-axis coordinate) and (the maximum x-axis coordinate, the maximum y-axis coordinate).
14. The apparatus for switching an interface screen according to claim 9, wherein the loading module comprises: a sphere acquisition unit and a sphere loading unit, wherein,
the sphere obtaining unit is used for obtaining a sphere set for the target switching interface screen;
and the sphere loading unit is used for loading the obtained sphere by taking the center of the target switching interface screen as a sphere center and taking the smaller of the transverse screen size or the longitudinal screen size of the target switching interface screen as a diameter.
15. The apparatus for switching an interface screen according to claim 14, wherein the switch effect module comprises: an overlapping area information acquiring unit and a position information dynamic mapping unit, wherein,
the coincidence region information acquisition unit is used for acquiring coordinates of the moving sphere and acquiring two-dimensional position information of the moving sphere in the target switching interface screen according to the mapping relation;
and the position information dynamic mapping unit is used for mapping the two-dimensional position information of the application program icon matched with the obtained two-dimensional position information into the three-dimensional position information of the displayed sphere surface according to the mapping relation.
16. The apparatus for switching an interface screen according to claim 14, wherein the switch effect module comprises: a position information static mapping unit, a corresponding relation construction unit and a rotation unit, wherein,
the position information static mapping unit is used for mapping the relationship; mapping each application icon in the target switching interface screen to a currently undisplayed hemispherical surface;
the corresponding relation building unit is used for building the corresponding relation between the display width of the target switching interface screen and the rotation of the sphere by 180 degrees;
and the rotating unit is used for acquiring the current presenting width of the target switching interface screen, inquiring the corresponding relation, acquiring the corresponding angle of the rotation of the sphere, and rotating the sphere to the corresponding angle.
17. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the method of switching the interface screen according to any one of the preceding claims 1 to 8.
CN201610334733.8A 2016-05-18 2016-05-18 Method and device for switching interface screen and electronic equipment Active CN106020655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610334733.8A CN106020655B (en) 2016-05-18 2016-05-18 Method and device for switching interface screen and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610334733.8A CN106020655B (en) 2016-05-18 2016-05-18 Method and device for switching interface screen and electronic equipment

Publications (2)

Publication Number Publication Date
CN106020655A CN106020655A (en) 2016-10-12
CN106020655B true CN106020655B (en) 2020-01-07

Family

ID=57095846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610334733.8A Active CN106020655B (en) 2016-05-18 2016-05-18 Method and device for switching interface screen and electronic equipment

Country Status (1)

Country Link
CN (1) CN106020655B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153456B (en) * 2016-12-05 2021-08-20 珠海金山办公软件有限公司 Interface switching method and device
CN108694006B (en) * 2017-04-11 2021-03-30 北京京东尚科信息技术有限公司 Method and device for achieving icon wheel-imitating rolling effect
CN107562471A (en) * 2017-08-24 2018-01-09 深圳依偎控股有限公司 A kind of method to set up and system that 3D models are set to desktop wallpaper
CN107728886B (en) * 2017-10-25 2019-10-15 维沃移动通信有限公司 A kind of one-handed performance method and apparatus
CN108629832A (en) * 2018-04-23 2018-10-09 广东奥园奥买家电子商务有限公司 A kind of 3D spherical coordinates are mapped to the implementation method of two dimensional surface
CN108553895B (en) * 2018-04-24 2021-09-07 网易(杭州)网络有限公司 Method and device for associating user interface element with three-dimensional space model
CN108717372B (en) * 2018-05-24 2022-08-09 网易(杭州)网络有限公司 Method and device for controlling virtual object in game scene
CN109947521B (en) * 2019-03-28 2022-12-27 北京小米移动软件有限公司 Interface switching method and device and storage medium
CN110647264B (en) * 2019-06-18 2021-07-20 北京无限光场科技有限公司 Manual and automatic rotating sphere label display method, device, equipment and medium
CN116880726B (en) * 2023-09-06 2023-12-19 深圳有咖互动科技有限公司 Icon interaction method and device for 3D space, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620495A (en) * 2008-06-30 2010-01-06 龙旗科技(上海)有限公司 Desktop tool based dynamic display method
CN101872285A (en) * 2010-06-13 2010-10-27 中兴通讯股份有限公司 Method and device for realizing desktop system
CN103019519A (en) * 2012-12-17 2013-04-03 天津三星通信技术研究有限公司 Method for controlling contact control terminal application icon display and contact control terminal of method for controlling contact control terminal application icon display
CN104461249A (en) * 2014-12-15 2015-03-25 北京国双科技有限公司 Method and device for arraying and displaying graphical interface
CN104834438A (en) * 2015-06-02 2015-08-12 广东欧珀移动通信有限公司 Desktop display method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8245155B2 (en) * 2007-11-29 2012-08-14 Sony Corporation Computer implemented display, graphical user interface, design and method including scrolling features
CN103853452A (en) * 2014-03-04 2014-06-11 广州市久邦数码科技有限公司 Method and system for realizing multi-screen switchover of stereo desktop

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620495A (en) * 2008-06-30 2010-01-06 龙旗科技(上海)有限公司 Desktop tool based dynamic display method
CN101872285A (en) * 2010-06-13 2010-10-27 中兴通讯股份有限公司 Method and device for realizing desktop system
CN103019519A (en) * 2012-12-17 2013-04-03 天津三星通信技术研究有限公司 Method for controlling contact control terminal application icon display and contact control terminal of method for controlling contact control terminal application icon display
CN104461249A (en) * 2014-12-15 2015-03-25 北京国双科技有限公司 Method and device for arraying and displaying graphical interface
CN104834438A (en) * 2015-06-02 2015-08-12 广东欧珀移动通信有限公司 Desktop display method and device

Also Published As

Publication number Publication date
CN106020655A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020655B (en) Method and device for switching interface screen and electronic equipment
CN110163976B (en) Virtual scene conversion method, device, terminal equipment and storage medium
US11042294B2 (en) Display device and method of displaying screen on said display device
US8648877B2 (en) Mobile terminal and operation method thereof
KR102092332B1 (en) Portable apparatus and method for displaying a screen
US20140059494A1 (en) Apparatus and method for providing application list depending on external device connected to mobile device
US9628706B2 (en) Method for capturing and displaying preview image and electronic device thereof
CN104156171A (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
CN106331822B (en) Method and device for playing multiple videos and electronic equipment
US20150063785A1 (en) Method of overlappingly displaying visual object on video, storage medium, and electronic device
CN112138386A (en) Volume rendering method and device, storage medium and computer equipment
CN112965780B (en) Image display method, device, equipment and medium
CN111450529B (en) Game map acquisition method and device, storage medium and electronic device
US9792183B2 (en) Method, apparatus, and recording medium for interworking with external terminal
JP7140773B2 (en) Live ink presence for real-time collaboration
US20220291791A1 (en) Method and apparatus for determining selected target, device, and storage medium
CN111068323B (en) Intelligent speed detection method, intelligent speed detection device, computer equipment and storage medium
CN103713822A (en) Information processing method and first electronic equipment
CN108369726B (en) Method for changing graphic processing resolution according to scene and portable electronic device
US10416873B2 (en) Application specific adaption of user input assignments for input devices
CN115193042A (en) Display control method, display control device, electronic equipment and storage medium
CN114742970A (en) Processing method of virtual three-dimensional model, nonvolatile storage medium and electronic device
KR20230053717A (en) Systems and methods for precise positioning using touchscreen gestures
CN107831896B (en) Audio information playing method and device, storage medium and electronic equipment
CN109754451B (en) Image processing method and device, electronic equipment and storage medium

Legal Events

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