Skip to content

Commit 5e3e579

Browse files
2 parents b88f28d + c9f94b2 commit 5e3e579

1 file changed

Lines changed: 53 additions & 1 deletion

File tree

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,54 @@
11
# CardViewPlus
2-
### An small library to animate Card View shadow
2+
An small library to animate Card View shadow
3+
<br/>
4+
<br/>
5+
6+
## How to add
7+
Add it in your root build.gradle at the end of repositories:
8+
9+
allprojects {
10+
repositories {
11+
...
12+
maven { url 'https://jitpack.io' }
13+
}
14+
}
15+
Step 2. Add the dependency
16+
17+
dependencies {
18+
implementation 'com.github.AliBardide5124:CardViewPlus:1.0'
19+
}
20+
<br/>
21+
22+
## How to use
23+
You can use CardViewPlus just like a noraml CardView
24+
But it give you some more attributes
25+
26+
app:minElevation="2dp"
27+
app:maxElevation="5dp"
28+
app:animationEnabled="true"
29+
app:clickMode="collapse"
30+
<br/>
31+
32+
Lets know whats this attributes do
33+
<br/>
34+
35+
#### minElevation - Dimension:
36+
You can set minimum shadow elevation by this attribute. Its like cardElevation on a regular CardView. By default its set to "2dp"
37+
<br/>
38+
#### maxElevation - Dimension:
39+
This attribute determines how large the shadow of your card can be. When user touch the CardViewPlus, The shadow expands to this value and returns to the original value after the CardViewPlus is released. By default its set to "5dp"
40+
<br/>
41+
#### animationEnabled - Boolean:
42+
You can enable or disable CardViewPlus shadow animation by this attribute. By default its set to "true".
43+
<br/>
44+
#### clickMode - collapse.release:
45+
You can specify when the CardViewPlus is clicked . When it value is equals "collase", CardViewPlus click after its released and it shadow was collapsed. When it value is equals "release", CardViewPlus click just after its released.
46+
<br/>
47+
<br/>
48+
49+
Thank you for using this library.
50+
<br/>
51+
You can send your suggestions to my email:
52+
53+
alibardide5124@gmail.com
54+

0 commit comments

Comments
 (0)