Skip to content

Commit 851625f

Browse files
author
luobl
committed
add readme
1 parent 2d0691b commit 851625f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

capture.gif

1.03 MB
Loading

readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
![效果图](capture.gif)
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

Comments
 (0)