CN105354051B - Method and device for presenting information flow card and electronic equipment - Google Patents
Method and device for presenting information flow card and electronic equipment Download PDFInfo
- Publication number
- CN105354051B CN105354051B CN201510641592.XA CN201510641592A CN105354051B CN 105354051 B CN105354051 B CN 105354051B CN 201510641592 A CN201510641592 A CN 201510641592A CN 105354051 B CN105354051 B CN 105354051B
- Authority
- CN
- China
- Prior art keywords
- information flow
- animation
- flow card
- card
- information
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000013507 mapping Methods 0.000 claims abstract description 16
- 230000000694 effects Effects 0.000 claims description 37
- 230000006870 function Effects 0.000 claims description 21
- 238000012545 processing Methods 0.000 claims description 17
- 238000000605 extraction Methods 0.000 claims description 13
- 238000012544 monitoring process Methods 0.000 claims description 12
- 238000013461 design Methods 0.000 claims description 11
- 238000013519 translation Methods 0.000 claims description 6
- 238000005562 fading Methods 0.000 claims description 5
- 230000001133 acceleration Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000001960 triggered effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44573—Execute-in-place [XIP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a method and a device for presenting an information flow card and electronic equipment. The method comprises the following steps: receiving an application program control loading instruction on a first information flow card of a preset view; acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card; generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and presenting the switching animation in the preset view. By applying the method and the device, the time required for presenting the information flow can be reduced, and the efficiency of presenting the information flow by the interface can be improved.
Description
Technical Field
The present invention relates to computer network communication technologies, and in particular, to a method and an apparatus for presenting an information flow card, and an electronic device.
Background
When an interface of an existing mobile platform displays an application information stream, the application information stream is generally split into a plurality of information stream cards, each information stream card is a basic information unit, and the split information stream cards are presented in the interface in a streamline manner.
In the interface application design of a mobile platform, how to reduce the switching delay during interface switching and maintaining the fluency during interface switching are factors to be considered preferentially in the interface application design. When the interface is switched, each information flow card corresponds to one information flow card interface, so that the most common switching mode at present is that the interface is directly jumped, that is, in the currently presented information flow card interface, if a user executes the information flow card switching operation, the interface is jumped to the information flow card interface corresponding to the switching operation. However, the method for presenting the information flow card through skip processing during switching ensures that the time for presenting the information flow is longer and the interface switching is not smooth; furthermore, jump processing is prone to cause jump failure, which results in low efficiency of information stream presentation on the interface.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and an electronic device for presenting an information stream card, so as to reduce time required for presenting an information stream and improve efficiency of presenting an information stream on an interface.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for presenting an information flow card, including:
receiving an application program control loading instruction on a first information flow card of a preset view; acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and
presenting the switching animation in the preset view.
Optionally, the generating a switching animation according to the first information flow card presented by the preset view and the acquired second information flow card includes:
extracting partial information in a first information flow card and partial information in a second information flow card presented by a preset view according to a preset extraction strategy, and generating a first middle animation frame between the first information flow card and the second information flow card;
extracting partial information in the first information flow card and partial information in the first intermediate animation frame according to the extraction strategy, generating a second intermediate animation frame between the first information flow card and the first intermediate animation frame, extracting partial information in the first intermediate animation frame and partial information in the second information flow card, generating a third intermediate animation frame between the first intermediate animation frame and the second information flow card until the number of the generated animation frames meets a preset threshold value, and obtaining an animation frame set comprising the first information flow card, the intermediate animation frame and the second information flow card;
and setting an animation effect for the animation frame set.
Optionally, the generating a switching animation according to the first information flow card presented by the preset view and the acquired second information flow card includes:
acquiring a first information flow card identifier and a second information flow card identifier;
and inquiring a preset animation set mapping relation with the first frame information flow card identification and the last frame information flow card identification as identifications to obtain the animation mapped by the first information flow card identification and the second information flow card identification.
Optionally, the generating a switching animation according to the first information flow card presented by the preset view and the acquired second information flow card includes:
setting animation according to a first information flow card presented by a current interface;
pre-drawing the second information flow card according to the data of the second information flow card;
the presenting the switching animation in the preset view comprises:
presenting the animation;
and monitoring whether the second information flow card is drawn completely, if so, terminating animation presentation and presenting the drawn second information flow card.
Optionally, the animation includes: animation frames and animation effects.
Optionally, the first frame of the animation frame is a first information flow card of the current interface, the last frame of the animation frame is a second information flow card, and the number of frames between the first frame and the last frame is set according to actual needs.
Optionally, different regions of the animation frame are provided with different animation effects.
Optionally, the animation effect includes: one or any combination of translation, zooming in, zooming out, fading in, sliding, color changing.
Optionally, the information stream card is set according to the design specification of an application program on the android device by ***.
In a second aspect, an embodiment of the present invention provides an apparatus for presenting an information flow card, including a load instruction processing module, an animation setting module, and an animation presenting module,
the loading instruction processing module is used for receiving an application program control loading instruction on a first information flow card of a preset view; acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
the animation setting module is used for generating switching animation according to a first information flow card presented by a preset view and the acquired second information flow card;
and the animation presenting module is used for presenting the switching animation in the preset view.
Optionally, the animation setting module includes: a first animation setting unit, a second animation setting unit and an animation effect setting unit, wherein,
the first animation setting unit is used for extracting partial information in a first information flow card and partial information in a second information flow card presented by a preset view according to a preset extraction strategy, and generating a first intermediate animation frame between the first information flow card and the second information flow card;
the second animation setting unit is used for extracting partial information in the first information flow card and partial information in the first intermediate animation frame according to the extraction strategy, generating a second intermediate animation frame between the first information flow card and the first intermediate animation frame, extracting partial information in the first intermediate animation frame and partial information in the second information flow card, and generating a third intermediate animation frame between the first intermediate animation frame and the second information flow card until the number of the generated animation frames meets a preset threshold value, so as to obtain an animation frame set comprising the first information flow card, the intermediate animation frame and the second information flow card;
and the animation effect setting unit is used for setting an animation effect for the animation frame set.
Optionally, the animation setting module includes: an identification obtaining unit and a query unit, wherein,
the identification acquisition unit is used for acquiring a first information flow card identification and a second information flow card identification;
and the query unit is used for querying a preset animation set mapping relation with the first frame information stream card identification and the last frame information stream card identification as identifications, and acquiring the animation mapped by the first information stream card identification and the second information stream card identification.
Optionally, the animation setting module includes: an animation setting unit, a drawing unit and a monitoring unit, wherein,
the animation setting unit is used for setting an animation according to the first information flow card presented by the current interface;
the drawing unit is used for pre-drawing the second information flow card according to the data of the second information flow card;
and the monitoring unit is used for monitoring whether the second information flow card is drawn completely or not, and if so, informing the animation presentation module to terminate the animation presentation and presenting the drawn second information flow card.
Optionally, the animation includes: animation frames and animation effects.
Optionally, the first frame of the animation frame is a first information flow card of the current interface, the last frame of the animation frame is a second information flow card, and the number of frames between the first frame and the last frame is set according to actual needs.
Optionally, different regions of the animation frame are provided with different animation effects.
Optionally, the animation effect includes: one or any combination of translation, zooming in, zooming out, fading in, sliding, color changing.
Optionally, the information stream card is set according to the design specification of an application program on the android device by ***.
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, for performing the steps of:
receiving an application program control loading instruction on a first information flow card of a preset view;
acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and
presenting the switching animation in the preset view.
According to the method, the device and the electronic equipment for presenting the information flow cards, when different information flow cards need to be presented, the animations are set according to the current information flow card presented and the information flow card to be presented, the set animations are presented on the same interface, interface switching and skipping processing is not required to be executed, the time for skipping between the interfaces is reduced, the time for presenting the information flow is reduced, the probability of interface skipping failure is reduced, and the efficiency for presenting the information flow on the interface is improved.
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 flow chart of a method for presenting an information flow card according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of generating a switching animation according to a first information flow card presented in a preset view and an acquired second information flow card according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating generation of a switching animation according to a first information flow card presented in a preset view and an acquired second information flow card in accordance with a second embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for presenting an information flow card according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a specific structure of a device for presenting an information flow card according to an embodiment of the present invention;
fig. 6 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 flowchart illustrating a method for presenting an information flow card according to an embodiment of the present invention. Referring to fig. 1, the method includes:
step 101, receiving an application program control loading instruction on a first information flow card of a preset view;
102, acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
in step 101 and step 102, after an application program is started, if a user needs to switch an information flow card presented on a current interface, a corresponding control operation is executed. For example, for a charging screen saver application program, after the charging screen saver application program is started, if a user clicks a starting charging screen saver control, a charging screen saver starting instruction is output, and the currently displayed charging screen saver starting information stream card interface is triggered to be switched to a charging screen saver starting information stream card interface. Namely, in the charging screen saver starting information flow card presented on the current interface, the charging screen saver control is clicked to start the charging screen saver, and the charging screen saver starting information flow card presented on the current interface is triggered to be replaced by the charging screen saver starting information flow card.
In the embodiment of the invention, each application program control is mapped to one information flow card in the application program information flow, and different application program controls correspond to different use states of the application program.
As an alternative embodiment, the number of the information flow cards required to be set in the information flow of the application program may be determined according to the requirements of the corresponding functions of the application program. For example, the number of information flow cards corresponding to the core function and the number of information flow cards corresponding to the extended function may be set according to the core function and the extended function of the application program, and interaction of information flow cards with different functions may be implemented by setting corresponding application program controls in the information flow cards.
Optionally, for the Android device, the information flow card is set according to a design specification of an application program on the Android device by Google.
103, generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card;
in this step, after the application control is clicked in the first information flow card presented on the current interface, an application control loading instruction is triggered and output, and the interface is notified to switch the information flow cards.
As an alternative embodiment, the animation comprises: animation frames and animation effects. Wherein,
the first frame of the animation frame is a first information flow card of the current interface, the last frame of the animation frame is a second information flow card, and the number of frames between the first frame and the last frame can be set according to actual needs.
Animation effects include, but are not limited to: one or any combination of translation, magnification, reduction, dissolve, fade in, slide, color change, etc. For example, for a front and rear animation frame, an animation effect manner of sliding the rear animation frame from right to left to the front animation frame and gradually covering may be set.
As an alternative embodiment, different regions of the animation frame may be provided with different animation effects.
In the embodiment of the present invention, as an optional embodiment, fig. 2 is a schematic flow diagram illustrating a process of generating a switching animation according to a first information flow card presented according to a preset view and an acquired second information flow card in the embodiment of the present invention. Referring to fig. 2, the process includes:
a11, extracting partial information in a first information flow card and partial information in a second information flow card according to a preset extraction strategy, and generating a first intermediate animation frame between the first information flow card and the second information flow card;
in this step, it is a known technique for extracting part of information in the information flow card according to the extraction policy, and a detailed description thereof is omitted here.
A12, extracting partial information in the first information flow card and partial information in the first intermediate animation frame according to the extraction strategy, generating a second intermediate animation frame between the first information flow card and the first intermediate animation frame, extracting partial information in the first intermediate animation frame and partial information in the second information flow card, generating a third intermediate animation frame between the first intermediate animation frame and the second information flow card until the number of generated animation frames meets a preset threshold value, and obtaining an animation frame set including the first information flow card, the intermediate animation frame and the second information flow card;
a13, setting animation effect for the animation frame set.
As another alternative embodiment, fig. 3 is a schematic flow chart illustrating a process of generating a switching animation according to a first information flow card presented according to a preset view and an acquired second information flow card according to a second embodiment of the present invention. Referring to fig. 3, the process includes:
a21, acquiring a first information flow card identifier and a second information flow card identifier;
in this step, each information stream card has an information stream card identifier in the information stream cards split from the application information stream.
A22, inquiring a preset animation set mapping relation with the first frame information flow card identification and the last frame information flow card identification as identifications, and obtaining the animation mapped by the first information flow card identification and the second information flow card identification.
In this step, an animation set mapped by using an information flow card identifier corresponding to the application control when the application control is started and an information flow card identifier corresponding to the application control after the application control is started as identifiers is preset, and after an identifier corresponding to a first information flow card of a current interface and an identifier corresponding to a second information flow card mapped by a control loading instruction are obtained, animations mapped by the first information flow card identifier and the second information flow card identifier can be obtained by matching identifiers of animations in the animation set.
And 104, presenting the switching animation in the preset view.
In the step, animation frames are presented according to the set animation effect on the same interface. In the embodiment of the invention, in the interface application design of the mobile platform, when different information flow cards are presented, the animation is presented on the same interface, so that the switching processing is avoided, meanwhile, the animation can enhance the display effect of the interface, a plurality of information flow cards can be combined together more flexibly, and the attention of a user is enhanced.
In the embodiment of the present invention, data of the second information flow card is pre-drawn in an animation, in practical applications, the interface may also perform real-time drawing on the second information flow card mapped by the application program control loading instruction, and since the browser needs to draw data of the second information flow card corresponding to the switched data, the drawing process needs a certain time, as another optional embodiment, generating the switching animation according to the first information flow card presented by the preset view and the acquired second information flow card includes:
a31, setting animation according to the first information flow card presented by the current interface;
a32, pre-drawing the second information flow card according to the data of the second information flow card;
the presenting the switching animation in the preset view comprises:
presenting the animation;
and monitoring whether the second information flow card is drawn completely, if so, terminating animation presentation and presenting the drawn second information flow card.
The present invention will be described in further detail below with reference to two specific examples.
Example one
The presentation of the charging screen saver application program information flow comprises the sequential presentation of a common state card and a starting completion result state card, namely, the charging screen saver starting information flow card interface is switched to the charging screen saver starting information flow card interface. For the charging screen saver application program, after the charging screen saver application program is started, entering a charging screen saver starting information flow card interface, wherein the interface is a common state card, the interface comprises four parts of contents, the first part of contents is positioned at the top of the card and is a functional description information character 'Boost Charge', the second part of contents and the third part of contents are positioned in the middle of the card, the second part of contents on the left side of the middle of the card is a charging screen saver starting icon, the third part of contents on the right side is a functional description information character 'Speed up battery charging and previous charging', and the fourth part of contents is positioned at the bottom of the card and is a charging screen saver starting control (ENABLE).
When a user clicks a charging screen saver starting control in the card, the operation of starting the charging screen saver is triggered. And if the set animation frame is two frames, respectively starting the information flow card for the charging screen saver and starting the information flow card for the charging screen saver. In the charging screen saver startup information flow card, the content of a first part at the top of the card is the same as that of a first part at the top of the charging screen saver startup information flow card, the content of a second part at the left side of the middle part is a charging screen saver startup success icon, and the content of a third part at the right side is a functional description information character' Enable successful will! And (4) the Battery Charging wire befater' is empty in the fourth part at the bottom of the card.
In the animation that present at the current interface, the middle part is through the animation effect of horizontal slip, utilize the corresponding middle part that the slip screen protection that charges opened the information flow card to replace the middle part that charges screen protection started the information flow card gradually, the characters that charge screen protection started the information flow card top do not change, and, the screen protection controlling part that charges that starts of charging screen protection start the information flow card bottom disappears along with the animation effect of horizontal slip gradually, thereby appear and charge the screen protection and open the information flow card interface, show promptly and open completion result state card, need not carry out the processing of jumping. And the charging screen saver application program correspondingly executes the starting operation of the charging screen saver function.
Example two
The presentation of the game box application program information flow comprises the sequential presentation of an accelerated opening information flow card, an opening progress information flow card and an opening completion information flow card in an animation mode. After the charging screen saver application program is started, an accelerated opening information flow card interface is entered, the interface contains three parts of contents, the first part of contents is located at the top of the card and is a functional description information character 'Game Boost compressed you play by 24%', the second part of contents is located in the middle of the card and is a plurality of icons before acceleration of the Game boxes, and the third part of contents is located at the bottom of the card and is an accelerated opening control (BOOST). The background color of the accelerated opening information flow card is white.
In the opening progress information flow card, the background color is blue, and the opening progress information flow card comprises an opening progress icon positioned on the left side of the middle part of the card and a description information character 'boosting.. 24%'.
The information flow card after being started is white in background color and comprises three parts of contents, wherein the first part of contents are positioned at the top of the card and are the same as the first part of contents in the information flow card after being started in an accelerating mode, the second part of contents are positioned in the middle of the card and are icons after a plurality of game boxes are accelerated, and the third part of contents are positioned at the bottom of the card and are specific detail controls (DETAILS).
After a user clicks an acceleration opening control in the acceleration opening information flow card, the acceleration opening control slides to the position of the acceleration opening information flow card by sliding to the left, the acceleration opening information flow card is gradually covered, the acceleration opening information flow card is displayed after the covering is finished, after the acceleration opening progress reaches 100%, the opening completion information flow card slides to the position of the acceleration opening information flow card gradually by the aid of an animation effect sliding to the left, the acceleration opening progress information flow card is gradually covered, and finally the opening completion information flow card is displayed.
As can be seen from the above, in the method for presenting an information stream card according to the embodiments of the present invention, when different information stream cards need to be presented, animations are set according to the present information stream card and the information stream card to be presented, and the set animations are presented on the same interface, so that state switching of the information stream cards is realized on the same interface, interface switching skip processing does not need to be executed, time and complexity of skip between interfaces are reduced, and time required for presenting information streams is reduced; meanwhile, different information flow cards are presented by using animations, so that the interface can be presented more smoothly, and the attention of a user can be kept concentrated conveniently; furthermore, as the jump processing is not required to be executed, the failure rate of information flow presentation caused by interface jump failure is reduced, and the efficiency of information flow presentation on the interface is improved.
Fig. 4 is a schematic structural diagram of a device for presenting an information flow card according to an embodiment of the present invention. Referring to fig. 4, the apparatus includes: a load instruction processing module 201, an animation setting module 202, and an animation rendering module 203, wherein,
the loading instruction processing module 201 is configured to receive an application program control loading instruction on a first information flow card of a preset view; acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
in the embodiment of the invention, each application program control is mapped to one information flow card in the application program information flow, and different application program controls correspond to different use states of the application program.
In the embodiment of the invention, the information flow card can be set according to the design specification of the application program on the android device by ***.
The animation setting module 202 is configured to generate a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card;
in this embodiment of the present invention, as an optional embodiment, the animation includes: animation frames and animation effects. Wherein,
the first frame of the animation frame is a first information flow card of the current interface, the last frame of the animation frame is a second information flow card, and the number of frames between the first frame and the last frame is set according to actual needs.
The animation effect comprises the following steps: one or any combination of translation, zooming in, zooming out, fading in, sliding, color changing.
Alternatively, different regions of the animation frame may be provided with different animation effects.
Optionally, the information stream card is set according to the design specification of an application program on the android device by ***.
And an animation presenting module 203, configured to present the switching animation in the preset view.
In the embodiment of the invention, the animation frames are presented according to the set animation effect on the same interface.
Fig. 5 is a schematic structural diagram of a device for presenting an information flow card according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes a load instruction processing module 201, an animation setting module 202, and an animation rendering module 203 shown in fig. 4, where, as an alternative embodiment, the animation setting module 202 includes: a first animation setting unit 31, a second animation setting unit 32, and an animation effect setting unit 33, wherein,
the first animation setting unit 31 is configured to extract, according to a preset extraction policy, part of information in a first information stream card and part of information in a second information stream card, which are presented by a preset view, and generate a first intermediate animation frame located between the first information stream card and the second information stream card;
a second animation setting unit 32, configured to, according to the extraction policy, extract part of information in the first information stream card and part of information in the first intermediate animation frame, generate a second intermediate animation frame located between the first information stream card and the first intermediate animation frame, extract part of information in the first intermediate animation frame and part of information in the second information stream card, and generate a third intermediate animation frame located between the first intermediate animation frame and the second information stream card, until the number of generated animation frames meets a preset threshold, so as to obtain an animation frame set including the first information stream card, the intermediate animation frame, and the second information stream card;
an animation effect setting unit 33 for setting an animation effect for the set of animation frames.
As another alternative, the animation setting module may also include: an identification obtaining unit and a query unit, wherein,
the identification acquisition unit is used for acquiring a first information flow card identification and a second information flow card identification;
and the query unit is used for querying a preset animation set mapping relation with the first frame information stream card identification and the last frame information stream card identification as identifications, and acquiring the animation mapped by the first information stream card identification and the second information stream card identification.
As still another alternative embodiment, the animation setting module may also include: an animation setting unit, a drawing unit and a monitoring unit, wherein,
the animation setting unit is used for setting an animation according to the first information flow card presented by the current interface;
the drawing unit is used for pre-drawing the second information flow card according to the data of the second information flow card;
and the monitoring unit is used for monitoring whether the second information flow card is drawn completely or not, and if so, informing the animation presentation module to terminate the animation presentation and presenting the drawn second information flow card.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 6 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 5 of the present invention, and as shown in fig. 6, 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 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for performing the steps of:
receiving an application program control loading instruction on a first information flow card of a preset view;
acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and
presenting the switching animation in the preset view.
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 processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
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 of presenting an information stream card, the method comprising:
respectively setting the number of information flow cards corresponding to the core function and the number of information flow cards corresponding to the extended function according to the core function and the extended function of the application program, and setting corresponding application program controls in the information flow cards;
receiving an application program control loading instruction on a first information flow card of a preset view;
acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and
presenting the switching animation in the preset view;
the information flow card is set according to the design specification of an application program on the android device by Google.
2. The method according to claim 1, wherein the generating of the switching animation according to the first information flow card presented in the preset view and the second information flow card obtained comprises:
extracting partial information in a first information flow card and partial information in a second information flow card presented by a preset view according to a preset extraction strategy, and generating a first middle animation frame between the first information flow card and the second information flow card;
extracting partial information in the first information flow card and partial information in the first intermediate animation frame according to the extraction strategy, generating a second intermediate animation frame between the first information flow card and the first intermediate animation frame, extracting partial information in the first intermediate animation frame and partial information in the second information flow card, generating a third intermediate animation frame between the first intermediate animation frame and the second information flow card until the number of the generated animation frames meets a preset threshold value, and obtaining an animation frame set comprising the first information flow card, the intermediate animation frame and the second information flow card;
and setting an animation effect for the animation frame set.
3. The method according to claim 1, wherein the generating of the switching animation according to the first information flow card presented in the preset view and the second information flow card obtained comprises:
acquiring a first information flow card identifier and a second information flow card identifier;
and inquiring a preset animation set mapping relation with the first frame information flow card identification and the last frame information flow card identification as identifications to obtain the animation mapped by the first information flow card identification and the second information flow card identification.
4. The method according to claim 1, wherein the generating of the switching animation according to the first information flow card presented in the preset view and the second information flow card obtained comprises:
setting animation according to a first information flow card presented by a current interface;
pre-drawing the second information flow card according to the data of the second information flow card;
the presenting the switching animation in the preset view comprises:
presenting the animation;
and monitoring whether the second information flow card is drawn completely, if so, terminating animation presentation and presenting the drawn second information flow card.
5. The method of any of claims 1 to 4, wherein the animation comprises: animation frames and animation effects.
6. The method of claim 5, wherein a first frame of the animation frame is a first information stream card of the current interface, a last frame of the animation frame is a second information stream card, and a frame number between the first frame and the last frame is set according to actual needs.
7. The method of claim 5, wherein different regions of the animation frame are provided with different animation effects.
8. The method of claim 5, wherein the animation effect comprises: one or any combination of translation, zooming in, zooming out, fading in, sliding, color changing.
9. An apparatus for presenting information stream cards, the apparatus comprising: a loading instruction processing module, an animation setting module and an animation presenting module, wherein,
the loading instruction processing module is used for respectively setting the number of information flow cards corresponding to the core function and the number of information flow cards corresponding to the extended function according to the core function and the extended function of the application program, and setting corresponding application program controls in the information flow cards;
the loading instruction processing module is also used for receiving an application program control loading instruction on a first information flow card of a preset view; acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
the animation setting module is used for generating switching animation according to a first information flow card presented by a preset view and the acquired second information flow card;
the animation presenting module is used for presenting the switching animation in the preset view;
the information flow card is set according to the design specification of an application program on the android device by Google.
10. The apparatus of claim 9, wherein the animation setup module comprises: a first animation setting unit, a second animation setting unit and an animation effect setting unit, wherein,
the first animation setting unit is used for extracting partial information in a first information flow card and partial information in a second information flow card presented by a preset view according to a preset extraction strategy, and generating a first intermediate animation frame between the first information flow card and the second information flow card;
the second animation setting unit is used for extracting partial information in the first information flow card and partial information in the first intermediate animation frame according to the extraction strategy, generating a second intermediate animation frame between the first information flow card and the first intermediate animation frame, extracting partial information in the first intermediate animation frame and partial information in the second information flow card, and generating a third intermediate animation frame between the first intermediate animation frame and the second information flow card until the number of the generated animation frames meets a preset threshold value, so as to obtain an animation frame set comprising the first information flow card, the intermediate animation frame and the second information flow card;
and the animation effect setting unit is used for setting an animation effect for the animation frame set.
11. The apparatus of claim 9, wherein the animation setup module comprises: an identification obtaining unit and a query unit, wherein,
the identification acquisition unit is used for acquiring a first information flow card identification and a second information flow card identification;
and the query unit is used for querying a preset animation set mapping relation with the first frame information stream card identification and the last frame information stream card identification as identifications, and acquiring the animation mapped by the first information stream card identification and the second information stream card identification.
12. The apparatus of claim 9, wherein the animation setup module comprises: an animation setting unit, a drawing unit and a monitoring unit, wherein,
the animation setting unit is used for setting an animation according to the first information flow card presented by the current interface;
the drawing unit is used for pre-drawing the second information flow card according to the data of the second information flow card;
and the monitoring unit is used for monitoring whether the second information flow card is drawn completely or not, and if so, informing the animation presentation module to terminate the animation presentation and presenting the drawn second information flow card.
13. The apparatus of any of claims 9 to 12, wherein the animation comprises: animation frames and animation effects.
14. The device of claim 13, wherein the first frame of the animation frame is a first information stream card of the current interface, the last frame of the animation frame is a second information stream card, and the number of frames between the first frame and the last frame is set according to actual needs.
15. The apparatus of claim 13, wherein different regions of the animation frame are provided with different animation effects.
16. The apparatus of claim 13, wherein the animation effect comprises: one or any combination of translation, zooming in, zooming out, fading in, sliding, color changing.
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 performing the steps of:
respectively setting the number of information flow cards corresponding to the core function and the number of information flow cards corresponding to the extended function according to the core function and the extended function of the application program, and setting corresponding application program controls in the information flow cards;
receiving an application program control loading instruction on a first information flow card of a preset view;
acquiring a second information flow card mapped by the application program control loading instruction based on a preset mapping relation set of the application program control and the information flow card;
generating a switching animation according to a first information flow card presented by a preset view and the acquired second information flow card; and
presenting the switching animation in the preset view;
the information flow card is set according to the design specification of an application program on the android device by Google.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510641592.XA CN105354051B (en) | 2015-09-30 | 2015-09-30 | Method and device for presenting information flow card and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510641592.XA CN105354051B (en) | 2015-09-30 | 2015-09-30 | Method and device for presenting information flow card and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354051A CN105354051A (en) | 2016-02-24 |
CN105354051B true CN105354051B (en) | 2019-06-21 |
Family
ID=55330025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510641592.XA Expired - Fee Related CN105354051B (en) | 2015-09-30 | 2015-09-30 | Method and device for presenting information flow card and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354051B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018184154A1 (en) * | 2017-04-05 | 2018-10-11 | Microsoft Technology Licensing, Llc | Desktop launcher |
US10635857B2 (en) * | 2017-09-29 | 2020-04-28 | Hewlett Packard Enterprise Development Lp | Card system framework |
CN117939229A (en) * | 2020-03-30 | 2024-04-26 | 腾讯科技(深圳)有限公司 | Content display method, device, equipment and storage medium based on media information stream |
CN112527175A (en) * | 2020-10-30 | 2021-03-19 | 百果园技术(新加坡)有限公司 | Animation implementation method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426505A (en) * | 2010-08-09 | 2012-04-25 | 英特尔移动通信技术有限公司 | Device, method for displaying a change from a first picture to a second picture on a display, and computer program product |
CN102930580A (en) * | 2011-09-27 | 2013-02-13 | 微软公司 | Data frame animation |
CN104216752A (en) * | 2014-09-30 | 2014-12-17 | 珠海市君天电子科技有限公司 | Window-based information loading method and device |
CN104639725A (en) * | 2013-11-08 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Interface switching method and device |
-
2015
- 2015-09-30 CN CN201510641592.XA patent/CN105354051B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426505A (en) * | 2010-08-09 | 2012-04-25 | 英特尔移动通信技术有限公司 | Device, method for displaying a change from a first picture to a second picture on a display, and computer program product |
CN102930580A (en) * | 2011-09-27 | 2013-02-13 | 微软公司 | Data frame animation |
CN104639725A (en) * | 2013-11-08 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Interface switching method and device |
CN104216752A (en) * | 2014-09-30 | 2014-12-17 | 珠海市君天电子科技有限公司 | Window-based information loading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105354051A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3754476B1 (en) | Information display method, graphical user interface and terminal | |
CN105354051B (en) | Method and device for presenting information flow card and electronic equipment | |
CN103310475B (en) | animation playing method and device | |
CN105337844B (en) | Method and device for displaying message and electronic equipment | |
US10835821B2 (en) | Recording medium storing game program, game processing method, and information processing apparatus | |
US20190005013A1 (en) | Conversation system-building method and apparatus based on artificial intelligence, device and computer-readable storage medium | |
CN107085495B (en) | Information display method, electronic equipment and storage medium | |
US10664011B2 (en) | Wearable apparatus and method for controlling VR apparatus | |
US20230306694A1 (en) | Ranking list information display method and apparatus, and electronic device and storage medium | |
CN110339572A (en) | Card group edit methods, device and electronic equipment in game | |
CN106453864A (en) | Image processing method and device and terminal | |
CN106250182B (en) | File processing method and device and electronic equipment | |
CN109672902A (en) | A kind of video takes out frame method, device, electronic equipment and storage medium | |
CN106873898B (en) | Application program working mode switching method and device and electronic equipment | |
CN105700911B (en) | Application installation method and device and electronic equipment | |
CN105957541B (en) | Music operation control method and device and mobile device | |
CN107145322A (en) | Configuration serial ports screen and its implementation | |
CN108170211B (en) | Camera power-on driving method and electronic terminal | |
CN113253903A (en) | Operation method and operation device | |
CN109219112B (en) | Mobile terminal and power saving method and device thereof | |
CN106331553B (en) | Video storage method and device and electronic equipment | |
CN105100381A (en) | Information processing method, information processing device and terminal | |
CN113806000A (en) | Display method and device and electronic equipment | |
CN113220209A (en) | Split screen display method and device | |
CN108134860B (en) | Electronic device, display control method and related product |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190621 |
|
CF01 | Termination of patent right due to non-payment of annual fee |