Skip to content

Commit 7122aeb

Browse files
author
Lucem-Anb
committed
Merge branch 'master' of https://github.com/Lucem-Anb/CardSlide
2 parents c5ea843 + d25f0ce commit 7122aeb

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Card Slide ![phase](https://camo.githubusercontent.com/cfcaf3a99103d61f387761e5fc445d9ba0203b01/68747470733a2f2f7472617669732d63692e6f72672f6477796c2f657374612e7376673f6272616e63683d6d6173746572) [![](https://jitpack.io/v/Lucem-Anb/CardSlide.svg)](https://jitpack.io/#Lucem-Anb/CardSlide)
2+
This is a twitched animation that slides view from any side of the screen with a card effect
3+
This library extends `View` and adopts all methods used by the `FrameLayout`
4+
5+
### Illustration
6+
![Card Slide Preview](https://anbinsane.files.wordpress.com/2018/07/gif-first.gif)
7+
8+
### Implementation
9+
add this dependancy line in your build.gradle **app level**
10+
11+
` //to add//`
12+
13+
### Usage
14+
Wrap your view with the class `SliderAnimate`
15+
16+
```
17+
<com.lucem.anb.cardslide.SliderAnimate
18+
android:layout_width="wrap_content"
19+
android:layout_gravity="center"
20+
app:start="top_left"
21+
android:id="@+id/slider_animate"
22+
android:layout_height="wrap_content">
23+
24+
<!--Your views will be placed here-->
25+
<ImageView
26+
android:layout_width="160dp"
27+
android:contentDescription="@string/image"
28+
android:src="@drawable/ic_launcher"
29+
android:layout_height="160dp" />
30+
31+
</com.lucem.anb.cardslide.SliderAnimate>
32+
```
33+
34+
Initialize the animation in your java class
35+
36+
`findViewById(R.id.slider_animate).startSlide()`
37+
38+
39+
### Customisation
40+
41+
Define the starting point of the animation
42+
43+
in design: `app:start="top_left"`
44+
45+
in activity: `animate.setStartPoint(SliderAnimate.TOP_LEFT);`

0 commit comments

Comments
 (0)