Skip to content

Commit 079173f

Browse files
2 parents 59cf8e7 + 586ff8b commit 079173f

1 file changed

Lines changed: 7 additions & 25 deletions

File tree

README.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# CardViewPlus [![](https://jitpack.io/v/AliBardide5124/CardViewPlus.svg)](https://jitpack.io/#AliBardide5124/CardViewPlus)
22
An small library to animate Card View shadow
33
<br/>
4-
[![](https://drive.google.com/uc?authuser=0&id=1M0buUC6WQiKrr7oQEtO1y0rH53j5MXl9&export=download)](https://drive.google.com/file/d/1M0buUC6WQiKrr7oQEtO1y0rH53j5MXl9/view?usp=drivesdk)
4+
[![](https://drive.google.com/uc?export=download&id=1Fyztx2EGxhkuNGGaaifAC9mu71m1n30A)]
55
<br/>
66
<br/>
77
<br/>
8-
Download demo app
9-
<br/>
10-
[![](https://drive.google.com/uc?authuser=0&id=1d4cH9m1ev8TLYwQHBcXsBcXUbee7PudO&export=download)](https://drive.google.com/uc?authuser=0&id=1PGaxhKUXieBOdJNAn2VwCsLl_6knV7DK&export=download)
8+
Download demo app from [![]()here](https://drive.google.com/uc?export=download&id=1b1Po-bWm__8Dc3UjuRYG8FU_a8_9qdVV)
119
<br/>
1210
<br/>
1311

@@ -23,34 +21,18 @@ Add it in your root build.gradle at the end of repositories:
2321
Step 2. Add the dependency
2422

2523
dependencies {
26-
implementation 'com.github.AliBardide5124:CardViewPlus:1.0.0'
24+
implementation 'com.github.AliBardide5124:CardViewPlus:1.0.1'
2725
}
2826
<br/>
2927

3028
## How to use
3129
You can use CardViewPlus just like a noraml CardView
3230
But it give you some more attributes
3331

34-
app:minElevation="2dp"
35-
app:maxElevation="5dp"
36-
app:animationEnabled="true"
37-
app:clickMode="collapse"
38-
<br/>
39-
40-
Lets know whats this attributes do
41-
<br/>
42-
43-
#### minElevation - Dimension:
44-
You can set minimum CardViewPlus elevation by this attribute. Its like cardElevation on a regular CardView. This is the CardViewPlus elevation before touching. By default its set to "2dp"
45-
<br/>
46-
#### maxElevation - Dimension:
47-
You can set maximum CardViewPlus elevation. This is the CardViewPlus elevation after touching. By default its set to "5dp"
48-
<br/>
49-
#### animationEnabled - Boolean:
50-
You can enable or disable CardViewPlus shadow animation by this attribute. if you want to use CardViewPlus just like a regular CardView, set this to "false". By default its set to "true".
51-
<br/>
52-
#### clickMode - collapse.release:
53-
You can specify when CardViewPlus is clicked. When it value is equal to "collapse", CardViewPlus is clicked after its released and its shadow is collapsed. When it value is equal to "release", CardViewPlus is clicked right after release.
32+
app:normalElevation="2dp" // Dimension - Set CardViewPlus elevation in noraml state. Default: 2dp
33+
app:maxElevation="5dp" // Dimension - Set CardViewPlus elevation in pressed state. Default: 5dp
34+
app:animationEnabled="true" // boolean - Enable or Disable CardViewPlus shadow animation. Default: true.
35+
app:clickMode="collapse" // 'collapse' & 'release' - Set delay after click CardViewPlus. 1- collapse: Click after CardViewPlus released and shadow was restored to normal state. 2- release: Just after CardViewPlus released. Default: 'collapse'
5436
<br/>
5537
<br/>
5638

0 commit comments

Comments
 (0)