Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ldn0x7dc committed Jun 30, 2016
1 parent a9809ef commit 1dc4fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Besides transforming an image, this component is helpful in implementing transit

For example, you want to transform a normal size content into a right-bottom floating small window (like the android youtube app). Using this component, you can do as following:

1. Calculate the normal rect and the final rect. A Rect(left, top, right, bottom) defines the boundary of a view
1. Calculate the normal rect and the final rect. A `ViewTransformer.Rect(left, top, right, bottom)` object defines the boundary of a view
2. Use `ViewTransformer.getTransform(fromRect, toRect)` to get the transform object
3. Use `updateTransform(transform)` to make the tranform happen( This is immediate, but you can animate it by calculating the intermediate rects and then transform using your own animation loop)

Expand Down

0 comments on commit 1dc4fb5

Please sign in to comment.