Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
geftimov committed Apr 27, 2015
1 parent aa4e95a commit 9ebfb04
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,41 @@ Animations when entering actvity or fragment made easy.

#### You have created beautiful UI , but it is boring

![svg](https://github.com/geftimov/android-pathview/blob/master/art/settings.gif)
![svg](https://github.com/geftimov/android-player/blob/master/art/playerPhoto.png)

#### Run the player and you will can create beautiful transitions for your views.

```java
final Path path = new Path();
path.moveTo(0.0f, 0.0f);
path.lineTo(length / 4f, 0.0f);
path.lineTo(length, height / 2.0f);
path.lineTo(length / 4f, height);
path.lineTo(0.0f, height);
path.lineTo(length * 3f / 4f, height / 2f);
path.lineTo(0.0f, 0.0f);
path.close();
final PropertyAction fabAction = PropertyAction.newPropertyAction(activityMainPinkFab).
scaleX(0).
scaleY(0).
duration(750).
interpolator(new AccelerateDecelerateInterpolator()).
build();
final PropertyAction headerAction = PropertyAction.newPropertyAction(activityMainheaderLayout).
interpolator(new DecelerateInterpolator()).
translationY(-200).
duration(550).
alpha(0.4f).
build();
final PropertyAction bottomAction = PropertyAction.newPropertyAction(activityMainMobileNumberLayout).
translationY(500).
duration(550).
alpha(0f).
build();

Player.with(toolbar).
animate(headerAction).
then().
animate(fabAction).
then().
animate(bottomAction).
play();
```

#### Result

![svg](https://github.com/geftimov/android-pathview/blob/master/art/settings.gif)
![svg](https://github.com/geftimov/android-player/blob/master/art/sample_one.gif)

#### Costumization

Expand All @@ -46,7 +62,7 @@ To make custom Action , just extend the BaseAction and implement the two abstrac

##### Make your animations how ever you want

![svg](https://github.com/geftimov/android-pathview/blob/master/art/settings.gif) ![svg](https://github.com/geftimov/android-pathview/blob/master/art/settings.gif) ![svg](https://github.com/geftimov/android-pathview/blob/master/art/settings.gif)
![svg](https://github.com/geftimov/android-player/blob/master/art/sample_two.gif) ![svg](https://github.com/geftimov/android-player/blob/master/art/sample_three.gif) ![svg](https://github.com/geftimov/android-player/blob/master/art/sample_four.gif)


## Licence
Expand Down

0 comments on commit 9ebfb04

Please sign in to comment.