CN106020815A - Expansion method and system of Android platform animation display area - Google Patents

Expansion method and system of Android platform animation display area Download PDF

Info

Publication number
CN106020815A
CN106020815A CN201610325234.2A CN201610325234A CN106020815A CN 106020815 A CN106020815 A CN 106020815A CN 201610325234 A CN201610325234 A CN 201610325234A CN 106020815 A CN106020815 A CN 106020815A
Authority
CN
China
Prior art keywords
view
sub
viewgroup
copy
display screen
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.)
Granted
Application number
CN201610325234.2A
Other languages
Chinese (zh)
Other versions
CN106020815B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201610325234.2A priority Critical patent/CN106020815B/en
Publication of CN106020815A publication Critical patent/CN106020815A/en
Application granted granted Critical
Publication of CN106020815B publication Critical patent/CN106020815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2213/00Indexing scheme for animation
    • G06T2213/08Animation software package

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses an expansion method and system of an Android platform animation display area. The method comprises the following steps: creating ViewGroup; obtaining and copying the subsidiary View of an animation to be created in parent View to obtain a corresponding subsidiary View copy, and adding the subsidiary View copy into the ViewGroup, wherein the position of the subsidiary View copy in the display screen of an intelligent terminal is the same with the position of the subsidiary View in the display screen; and when a monitoring result shows that the subsidiary View carries out movement and animation display, synchronously updating the position information of the subsidiary View copy and the position information of the subsidiary View. When the movement range of the subsidiary View exceeds the area of the parent View, the part, which is positioned out of the area of the parent View, of the subsidiary View is complemented by the subsidiary View copy which has an identical size with the subsidiary View to guarantee an animation effect.

Description

A kind of Android platform animation viewing area extended method and system
Technical field
The control that the present invention relates to Android platform controls technical field, in particular a kind of Android platform animation viewing area extended method and system.
Background technology
A lot of animation effect can be designed to improve Consumer's Experience in the interface of Android platform, and in present technology, major applications is all by Animation(animated function) realize the animation of control.These animation effects include the movement of control location, amplify, reduce, gradual change and the combination of several animation.Most control on interface is all to inherit unified View(i.e. view), the layout of these View comprises filiation, and the container ViewGroup of View is also to be inherited from the relation of View, View and ViewGroup as shown in Figure 1.The essence that control does animation is that View does animation effect, but due to Android platform median surface drafting mechanism, the drafting of sub-View be by father View or ViewGroup complete draw.Thus causing a problem, certain sub-View is when doing the animation effect of movement, if the moving range of this sub-View has exceeded the viewing area of father View, sub-View cannot show.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, drawbacks described above for prior art, a kind of Android platform animation viewing area extended method and system are provided, aim to solve the problem that prior art neutron View is when doing the animation effect of movement, if the moving range of this sub-View has exceeded the viewing area of father View, the problem that sub-View cannot show.
It is as follows that the present invention solves the technical scheme that technical problem used:
A kind of Android platform animation viewing area extended method, wherein, said method comprising the steps of:
A, creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
B, obtain the sub-View of animation to be created in father View and replicate, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;
C, carrying out moving and during animation display when monitoring described sub-View, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.
Described Android platform animation viewing area extended method, wherein, described step B specifically includes:
B11, obtain the sub-View of animation to be created in described father View, and replicate, obtain the sub-View copy of correspondence;
B12, sub-View copy is added in described ViewGroup;
B13, obtain the left margin of described sub-View according to getLocationOnScreen interface relative to the first lateral coordinates of display screen left margin, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
B14, obtain the left margin of ViewGroup according to getLocationOnScreen interface relative to the second lateral coordinates of display screen left margin, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
B15, difference according to described second lateral coordinates and described first lateral coordinates obtain the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
Described Android platform animation viewing area extended method, wherein, described step B specifically includes:
B21, obtain the sub-View of animation to be created in described father View, and replicate, obtain the sub-View copy of correspondence;
B22, sub-View copy is added in described ViewGroup;
B23, obtain the right margin of described sub-View according to getLocationOnScreen interface relative to the 4th lateral coordinates of display screen right margin, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
B24, obtain the right margin of ViewGroup according to getLocationOnScreen interface relative to the 5th lateral coordinates of display screen right margin, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
B25, difference according to described 5th lateral coordinates and described 4th lateral coordinates obtain the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
Described Android platform animation viewing area extended method, wherein, sub-View copy described in described step C carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps size identical with described sub-View.
Described Android platform animation viewing area extended method, wherein, when detecting that described sub-View moves outside the region of described father View in described step C, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
A kind of Android platform animation viewing area extension system, wherein, including:
Container creation module, is used for creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, and the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
Replicate and add module, for obtaining the sub-View of animation to be created in father View and replicating, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;
Synchronous motion control module, for when monitoring described sub-View and moving animation display, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.
Described Android platform animation viewing area extension system, wherein, described duplication and interpolation module specifically include:
First copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
First adding device, for adding to sub-View copy in described ViewGroup;
First sub-View positioning unit, for obtaining the left margin first lateral coordinates relative to display screen left margin of described sub-View according to getLocationOnScreen interface, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
Oneth ViewGroup positioning unit, for obtaining the left margin second lateral coordinates relative to display screen left margin of ViewGroup according to getLocationOnScreen interface, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
First sub-View replica location unit, for obtaining the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup according to the difference of described second lateral coordinates with described first lateral coordinates, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
Described Android platform animation viewing area extension system, wherein, described duplication and interpolation module specifically include:
Second copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
Second adding device, for adding to sub-View copy in described ViewGroup;
Second sub-View positioning unit, for obtaining the right margin the 4th lateral coordinates relative to display screen right margin of described sub-View according to getLocationOnScreen interface, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
2nd ViewGroup positioning unit, for obtaining the right margin the 5th lateral coordinates relative to display screen right margin of ViewGroup according to getLocationOnScreen interface, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
Second sub-View replica location unit, for obtaining the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup according to the difference of described 5th lateral coordinates with described 4th lateral coordinates, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
Described Android platform animation viewing area extension system, wherein, sub-View copy described in described Synchronous motion control module carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps area size identical with described sub-View.
Described Android platform animation viewing area extension system, wherein, when detecting that described sub-View moves outside the region of described father View in described Synchronous motion control module, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
Android platform animation viewing area extended method provided by the present invention and system, method includes: create ViewGroup;Obtain the sub-View of animation to be created in described father View and replicate, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;When monitoring described sub-View and carrying out motion and animation display, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.When present invention achieves the region that group View moving range has exceeded father View, the part that sub-View is positioned at outside the region of father View is by sub-View identical with sub-View size copy completion, it is ensured that animation effect.
Accompanying drawing explanation
Fig. 1 is the relation schematic diagram of View and ViewGroup.
Fig. 2 is the flow chart of Android platform animation viewing area extended method preferred embodiment of the present invention.
Fig. 3 is the functional block diagram of Android platform animation viewing area of the present invention extension system preferred embodiment.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to the flow chart that Fig. 2, Fig. 2 are Android platform animation viewing area extended method preferred embodiments of the present invention.As in figure 2 it is shown, the described Android platform animation viewing area extended method that the embodiment of the present invention provides, including step:
Step S100, creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
When being embodied as, the area of described ViewGroup is equal to the area of the display screen of intelligent terminal, i.e. the area size of ViewGroup is View moveable maximum region on the whole interface of display screen.For convenience, the region the same with the screen size of intelligent terminal can be created, be used as the container (the most described ViewGroup) of View, the layout having been carried out before be need not any change.
Step S200, obtain the sub-View of animation to be created in described father View and replicate, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;
Step S300, when monitoring described sub-View and moving animation display, the location information synchronizing of the positional information of the most sub-View copy and described sub-View updates.
In step S300, the positional information of described sub-View copy updates with the location information synchronizing of described sub-View, i.e. represent when monitoring described sub-View and moving animation display, then drive described sub-View copy to be synchronized with the movement, and described sub-View copy keeps geo-stationary with described sub-View.
Further, when detecting that described sub-View moves outside the region of described father View in described step S300, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
In prior art, since sub-View can not show beyond the region of father View, reason is to cause owing to the region of father View is the least, therefore the size in the region of father View can be adjusted, so bring a problem, it is simply that after the region of father View becomes greatly, the layout of sub-View also and then to adjust, if there being multiple View control on interface, the calculating of layout can bring about the biggest inconvenience and needs to re-start adjustment for the layout interface designed before.
In embodiments of the invention, when control (the most sub-View or sub-View copy etc.) being done mobile animation or amplifies animation effect, when the region of child control exceedes father's control regions, obtain an identical child control copy by replicating this child control, and the visual range maximum of the container residing for this child control copy is set to the size of the display screen of intelligent terminal.In the sightless position of child control, by child control copy by after child control completion, reach the effect that child control also can also show in the region beyond father's control, and layout before is changed smaller, it is achieved get up fairly simple.
As the first specific embodiment of step S200, described step S200 specifically includes:
Step S211, obtain the sub-View of animation to be created in described father View, and replicate, obtain the sub-View copy of correspondence;
Step S212, sub-View copy is added in described ViewGroup;
Step S213, obtain the left margin of described sub-View according to getLocationOnScreen interface relative to the first lateral coordinates of display screen left margin, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
Step S214, obtain the left margin of ViewGroup according to getLocationOnScreen interface relative to the second lateral coordinates of display screen left margin, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
Step S215, difference according to described second lateral coordinates and described first lateral coordinates obtain the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
As the second specific embodiment of step S200, described step S200 specifically includes:
Step S221, obtain the sub-View of animation to be created in described father View, and replicate, obtain the sub-View copy of correspondence;
Step S222, sub-View copy is added in described ViewGroup;
Step S223, obtain the right margin of described sub-View according to getLocationOnScreen interface relative to the 4th lateral coordinates of display screen right margin, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
Step S224, obtain the right margin of ViewGroup according to getLocationOnScreen interface relative to the 5th lateral coordinates of display screen right margin, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
Step S225, difference according to described 5th lateral coordinates and described 4th lateral coordinates obtain the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
First specific embodiment of step S200 is with the left margin of display screen and coboundary for reference to realizing location, and is with the right margin of display screen and lower boundary for reference to realizing location in the second specific embodiment of step S200.
Further, sub-View copy described in described step S300 carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps size identical with described sub-View.
Visible, when present invention achieves the region that group View moving range has exceeded father View, the part that sub-View is positioned at outside the region of father View is by sub-View identical with sub-View size copy completion, it is ensured that animation effect.
Based on said method embodiment, present invention also offers a kind of Android platform animation viewing area extension system, as it is shown on figure 3, described system includes:
Container creation module 100, is used for creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, and the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
Replicate and add module 200, for obtaining the sub-View of animation to be created in described father View and replicating, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;
Synchronous motion control module 300, for when monitoring described sub-View and moving animation display, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.
Further, in described Android platform animation viewing area extension system, described duplication and interpolation module 200 specifically include:
First copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
First adding device, for adding to sub-View copy in described ViewGroup;
First sub-View positioning unit, for obtaining the left margin first lateral coordinates relative to display screen left margin of described sub-View according to getLocationOnScreen interface, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
Oneth ViewGroup positioning unit, for obtaining the left margin second lateral coordinates relative to display screen left margin of ViewGroup according to getLocationOnScreen interface, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
First sub-View replica location unit, for obtaining the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup according to the difference of described second lateral coordinates with described first lateral coordinates, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
Further, in described Android platform animation viewing area extension system, described duplication and interpolation module 200 specifically include:
Second copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
Second adding device, for adding to sub-View copy in described ViewGroup;
Second sub-View positioning unit, for obtaining the right margin the 4th lateral coordinates relative to display screen right margin of described sub-View according to getLocationOnScreen interface, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
2nd ViewGroup positioning unit, for obtaining the right margin the 5th lateral coordinates relative to display screen right margin of ViewGroup according to getLocationOnScreen interface, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
Second sub-View replica location unit, for obtaining the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup according to the difference of described 5th lateral coordinates with described 4th lateral coordinates, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
Further, in described Android platform animation viewing area extension system, sub-View copy described in described Synchronous motion control module carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps size identical with described sub-View.
Further, in described Android platform animation viewing area extension system, when detecting that described sub-View moves outside the region of described father View in described Synchronous motion control module, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
In sum, Android platform animation viewing area extended method provided by the present invention and system, method includes: create ViewGroup;Obtain the sub-View of animation to be created in father View and replicate, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;When monitoring described sub-View and moving animation display, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.When present invention achieves the region that group View moving range has exceeded father View, the part that sub-View is positioned at outside the region of father View is by sub-View identical with sub-View size copy completion, it is ensured that animation effect.
Certainly, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by computer program to instruct related hardware (such as processor, controller etc.) complete, described program can be stored in the storage medium of an embodied on computer readable, and this program can include upon execution such as the flow process of above-mentioned each method embodiment.Wherein said storage medium can be memorizer, magnetic disc, CD etc..
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, all these modifications and variations all should belong to the protection domain of claims of the present invention.

Claims (10)

1. an Android platform animation viewing area extended method, it is characterised in that said method comprising the steps of:
A, creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
B, obtain the sub-View of animation to be created in father View and replicate, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in display screen is identical with described sub-View position in display screen;
C, when monitoring described sub-View and moving animation, the location information synchronizing of the positional information of the most sub-View copy and described sub-View updates.
Android platform animation viewing area extended method the most according to claim 1, it is characterised in that described step B specifically includes:
The sub-View of animation to be created in B11, acquisition father View, and replicate, obtain the sub-View copy of correspondence;
B12, sub-View copy is added in described ViewGroup;
B13, obtain the left margin of described sub-View according to getLocationOnScreen interface relative to the first lateral coordinates of display screen left margin, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
B14, obtain the left margin of ViewGroup according to getLocationOnScreen interface relative to the second lateral coordinates of display screen left margin, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
B15, difference according to described second lateral coordinates and described first lateral coordinates obtain the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
Android platform animation viewing area extended method the most according to claim 1, it is characterised in that described step B specifically includes:
The sub-View of animation to be created in B21, acquisition father View, and replicate, obtain the sub-View copy of correspondence;
B22, sub-View copy is added in described ViewGroup;
B23, obtain the right margin of described sub-View according to getLocationOnScreen interface relative to the 4th lateral coordinates of display screen right margin, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
B24, obtain the right margin of ViewGroup according to getLocationOnScreen interface relative to the 5th lateral coordinates of display screen right margin, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
B25, difference according to described 5th lateral coordinates and described 4th lateral coordinates obtain the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
Android platform animation viewing area extended method the most according to claim 1, it is characterised in that sub-View copy described in described step C carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps size identical with described sub-View.
Android platform animation viewing area extended method the most according to claim 1, it is characterized in that, when detecting that described sub-View moves outside the region of described father View in described step C, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
6. an Android platform animation viewing area extension system, it is characterised in that including:
Container creation module, is used for creating the root node at the whole interface that father node is display screen of ViewGroup, ViewGroup, and the area size of ViewGroup is View moveable maximum region on the whole interface of display screen;
Replicate and add module, for obtaining the sub-View of animation to be created in father View and replicating, obtaining the sub-View copy of correspondence, and sub-View copy is added in described ViewGroup;Wherein, described sub-View copy position in the display screen of intelligent terminal is identical with described sub-View position in display screen;
Synchronous motion control module, for when monitoring described sub-View and moving animation display, the positional information of the most sub-View copy updates with the location information synchronizing of described sub-View.
Android platform animation viewing area extension system the most according to claim 6, it is characterised in that described duplication and interpolation module specifically include:
First copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
First adding device, for adding to sub-View copy in described ViewGroup;
First sub-View positioning unit, for obtaining the left margin first lateral coordinates relative to display screen left margin of described sub-View according to getLocationOnScreen interface, and the coboundary of described sub-View is relative to the first longitudinal coordinate of display screen coboundary;
Oneth ViewGroup positioning unit, for obtaining the left margin second lateral coordinates relative to display screen left margin of ViewGroup according to getLocationOnScreen interface, and the coboundary of described ViewGroup is relative to the second longitudinal coordinate of display screen coboundary;
First sub-View replica location unit, for obtaining the 3rd lateral coordinates of the left margin of the described sub-View copy left margin relative to described ViewGroup according to the difference of described second lateral coordinates with described first lateral coordinates, and obtain the 3rd longitudinal coordinate of the coboundary relative to described ViewGroup, the coboundary of described sub-View copy according to the difference of described second longitudinal coordinate with described first longitudinal coordinate.
Android platform animation viewing area extension system the most according to claim 6, it is characterised in that described duplication and interpolation module specifically include:
Second copied cells, for obtaining the sub-View of animation to be created in described father View, and replicates, and obtains the sub-View copy of correspondence;
Second adding device, for adding to sub-View copy in described ViewGroup;
Second sub-View positioning unit, for obtaining the right margin the 4th lateral coordinates relative to display screen right margin of described sub-View according to getLocationOnScreen interface, and the lower boundary of described sub-View is relative to the 4th longitudinal coordinate of display screen lower boundary;
2nd ViewGroup positioning unit, for obtaining the right margin the 5th lateral coordinates relative to display screen right margin of ViewGroup according to getLocationOnScreen interface, and the lower boundary of described ViewGroup is relative to the 5th longitudinal coordinate of display screen lower boundary;
Second sub-View replica location unit, for obtaining the 6th lateral coordinates of the right margin of the described sub-View copy right margin relative to described ViewGroup according to the difference of described 5th lateral coordinates with described 4th lateral coordinates, and obtain the 6th longitudinal coordinate of the lower boundary of the described sub-View copy lower boundary relative to described ViewGroup according to the difference of described 5th longitudinal coordinate with described 4th longitudinal coordinate.
Android platform animation viewing area extension system the most according to claim 6, it is characterized in that, sub-View copy described in described Synchronous motion control module carries out Tong Bu scaling with described sub-View, and described sub-View copy keeps size identical with described sub-View.
Android platform animation viewing area extension system the most according to claim 6, it is characterized in that, when detecting that described sub-View moves outside the region of described father View in described Synchronous motion control module, the part in the region that the most described sub-View is positioned at described father View shows, the part that described sub-View is positioned at outside the region of described father View does not shows, described sub-View copy normally shows.
CN201610325234.2A 2016-05-17 2016-05-17 Expansion method and system for animation display area of android platform Active CN106020815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610325234.2A CN106020815B (en) 2016-05-17 2016-05-17 Expansion method and system for animation display area of android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610325234.2A CN106020815B (en) 2016-05-17 2016-05-17 Expansion method and system for animation display area of android platform

Publications (2)

Publication Number Publication Date
CN106020815A true CN106020815A (en) 2016-10-12
CN106020815B CN106020815B (en) 2020-07-21

Family

ID=57097235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610325234.2A Active CN106020815B (en) 2016-05-17 2016-05-17 Expansion method and system for animation display area of android platform

Country Status (1)

Country Link
CN (1) CN106020815B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608598A (en) * 2017-07-17 2018-01-19 捷开通讯(深圳)有限公司 The clone method of terminal and its view characters, storage device
CN108984237A (en) * 2017-05-31 2018-12-11 武汉斗鱼网络科技有限公司 A kind of control rendering method, storage medium, equipment and system
CN110187951A (en) * 2019-05-31 2019-08-30 努比亚技术有限公司 Animation highlighted display methods, device, terminal and computer readable storage medium
CN116483296A (en) * 2022-01-13 2023-07-25 深圳Tcl新技术有限公司 Screen projection control method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090193364A1 (en) * 2008-01-29 2009-07-30 Microsoft Corporation Displaying thumbnail copies of running items
CN101842768A (en) * 2007-06-08 2010-09-22 苹果公司 Graphical user interface for backup interface
US8878872B1 (en) * 2012-02-24 2014-11-04 Rockwell Collins Inc. System, device and method for generating an overlay of navigation chart information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101842768A (en) * 2007-06-08 2010-09-22 苹果公司 Graphical user interface for backup interface
US20090193364A1 (en) * 2008-01-29 2009-07-30 Microsoft Corporation Displaying thumbnail copies of running items
US8878872B1 (en) * 2012-02-24 2014-11-04 Rockwell Collins Inc. System, device and method for generating an overlay of navigation chart information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIGUANYI11111: "Android动画被父View遮挡的解决办法", 《HTTPS://LIGUANYI11111.ITEYE.COM/BLOG/2102840》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984237A (en) * 2017-05-31 2018-12-11 武汉斗鱼网络科技有限公司 A kind of control rendering method, storage medium, equipment and system
CN107608598A (en) * 2017-07-17 2018-01-19 捷开通讯(深圳)有限公司 The clone method of terminal and its view characters, storage device
WO2019015482A1 (en) * 2017-07-17 2019-01-24 惠州Tcl移动通信有限公司 Terminal and view character copying method thereof, and storage apparatus
CN110187951A (en) * 2019-05-31 2019-08-30 努比亚技术有限公司 Animation highlighted display methods, device, terminal and computer readable storage medium
CN116483296A (en) * 2022-01-13 2023-07-25 深圳Tcl新技术有限公司 Screen projection control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN106020815B (en) 2020-07-21

Similar Documents

Publication Publication Date Title
US11893312B2 (en) Multi-directional editing within a multi-user cloud parametric feature-based 3D CAD system
CN106020815A (en) Expansion method and system of Android platform animation display area
US11960512B2 (en) Identifying and graphically representing multiple parent nodes of a child node
CN102356375B (en) Smooth layout animation of continuous and non-continuous properties
US9141746B1 (en) System and method to drag instance master physical shell
CN107463302B (en) Icon layout adjusting method and device
WO2016188241A1 (en) Image processing method and device
CN102981713B (en) For the desktop presentation device and method of file
US11822585B2 (en) Identifying missing nodes within a graphically represented family
US11829393B2 (en) Graphically representing related record families using a phantom parent node
US20140149943A1 (en) Method and apparatus for generating dynamic wallpaper
WO2015035319A1 (en) Method and apparatus of controlling page element
CN111768488A (en) Processing method and device for virtual character face model
CN114115643A (en) Component display method and device, electronic equipment and readable medium
CN103135911B (en) A kind of information processing method and electric terminal
CN103019513B (en) The device and method that folder desktop is shown
KR101838717B1 (en) Method and apparatus for implementing providing work assist service
CN109669541A (en) It is a kind of for configuring the method and apparatus of augmented reality content
CN102566849A (en) Method and device for acquiring tree-form data drawing output positions and ERP (enterprise resource planning) system
US10592087B1 (en) System and method for creating fluid design keyframes on graphical user interface
CN104952029A (en) Plug-in implementing system and method of suspending physical watermarks in AutoCAD
CN115131477A (en) Role model form adjusting method, role model form adjusting device, role model processing equipment and storage medium
WO2020053899A1 (en) Systems and methods for optimizing lighting in a three dimensional (3-d) scene(s)
AU2022215321A1 (en) Generating shadows for digital objects within digital images utilizing a height map
CN116956552A (en) Terrain model area generation method, apparatus and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant