You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use CardViewPlus just like a noraml CardView
32
30
But it give you some more attributes
33
31
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
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'
0 commit comments