Skip to content

Commit ef439ab

Browse files
XiandengWangXiandengWang
authored andcommitted
feat: 添加readme文件
1 parent af3216d commit ef439ab

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

.idea/misc.xml

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**利用RecyelerView打造的炫酷滑动卡片,支持左滑右滑删除**
2+
3+
**具体细节可移步[《如何利用RecyclerView打造炫酷滑动卡片》](http://www.jianshu.com/p/7977006d2d6a),欢迎大家fork AND star!**

app/src/main/java/com/wangxiandeng/swipecardrecyclerview/SwipeCardLayoutManager.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State
2727
int width = getDecoratedMeasuredWidth(child);
2828
int height = getDecoratedMeasuredHeight(child);
2929
layoutDecorated(child, 0, 0, width, height);
30+
//缩放
3031
if (i < getItemCount() - 1) {
3132
child.setScaleX(0.8f);
3233
child.setScaleY(0.8f);
3334
}
3435
}
35-
Log.e("Swipe", "onLayout");
36-
37-
3836
}
3937
}

app/src/main/res/layout/layout_item.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
android:layout_width="wrap_content"
1313
android:layout_height="wrap_content"
1414
android:textColor="#ffffff"
15-
android:textSize="20sp"/>
15+
android:textStyle="bold"
16+
android:textSize="28sp"/>
1617

1718
</LinearLayout>

0 commit comments

Comments
 (0)