We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0691b commit 851625fCopy full SHA for 851625f
capture.gif
1.03 MB
readme.md
@@ -0,0 +1,27 @@
1
+
2
+
3
4
+3d卡片效果
5
+=======
6
7
+##使用
8
9
10
+ CardView cardView = (CardView) findViewById(R.id.cardView1);
11
+ //设置间距
12
+ cardView.setItemSpace(Utils.convertDpToPixelInt(this, 20));
13
+ //设置可见数量,默认4个
14
+ cardView.setMaxVisibleCount(4);
15
+ //点击顶部card监听
16
+ cardView.setOnCardClickListener(new OnCardClickListener(){
17
+ public void onCardClick(View view, int position) {
18
+ }
19
+ });
20
21
22
+##问题
23
24
+- `CardView`高度设置为`wrap_content`卡片会显示不全。
25
+- `CardView`设置`padding`和`margin`,旋转动画会有被截断的效果。最后一张卡片距离顶部的距离时在CardView内部指定的,为固定值。
26
+- ……
27
0 commit comments