Skip to content

Commit 364b6e9

Browse files
author
uis
committed
update readme
1 parent 0ba712a commit 364b6e9

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

README.md

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44
**层叠View支持手势左右滑动,自动轮播,过渡动画**
55

66
1.onMeasure通过StackAdapter适配器取到itemView加入到StackLayaout容器
7+
8+
onMeasure() through stackAdapter add view to StackLayout
79

810
2.onLayout取到childView按照层叠布局
911

12+
onLayout() get child view layout stack ui
13+
1014
3.onInterceptTouchEvent处理手势支持子View及Velocity
1115

16+
onInterceptTouchEvent() support child view gesture
17+
1218
4.onTouchEvent处理手势,释放后播放动画平滑过渡
1319

20+
onTouchEvent() swipe animation,when release recover animation
21+
1422
### Captures
1523

1624
![效果图](/pic/pic001.jpeg)
@@ -25,15 +33,15 @@
2533

2634
*Name*| *Descript*|*Value*
2735
-----|--------|---
28-
stackSpace|间距|默认值:10dp
29-
stackEdge|边界距离|默认值:10dp
30-
stackZoomX|x方向缩放| 0<x<=1,1表示等间距,默认值:1
31-
stackPadX|x方向偏移|表示偏移间距,默认值:0
36+
stackSpace|间距(space)|默认值(default):10dp
37+
stackEdge|边界距离(edge)|默认值(default):10dp
38+
stackZoomX|x方向缩放(x zoom)| 0<x<=1,1表示等间距,默认值(default):1
39+
stackPadX|x方向偏移(x padding)|表示偏移间距,默认值:0
3240
stackPadX|PadX*(Size-1) < Space|PadX优先级高于ZoomX
33-
stackZoomY|y方向缩放| 0<y<=1,1表示和顶层等高度,默认值:0.9
34-
stackLooper|自动轮播|false/true
35-
stackSize|层叠数量|3
36-
stackEdgeModel|层叠位置|left/right
41+
stackZoomY|y方向缩放(y zoom)| 0<y<=1,1表示和顶层等高度,默认值:0.9
42+
stackLooper|自动轮播(looper)|false/true
43+
stackSize|层叠数量(stack size)|3
44+
stackEdgeModel|层叠位置(stack model)|left/right
3745

3846
```
3947
<?xml version="1.0" encoding="utf-8"?>
@@ -94,18 +102,18 @@ stackEdgeModel|层叠位置|left/right
94102
### Version
95103
*Version*| *Descript*|*Fixed*
96104
----|----|----
97-
0.0.1|自动轮播,滑动从顶部移除,整体上浮|初始版本
98-
0.0.2|滑动从顶层加入,整体下沉|fixed 内部view点击事件
99-
0.1.0|zoomX,zoomY呈等比数列|更改属性
100-
0.1.1|只有一条数据时|fixed
101-
0.1.2|增加动画、轮播时间设置,获取当前选中位置|新增方法
102-
0.2.0|只有一个元素,不支持轮播和滑动|新增功能
103-
0.2.1|减少child层级,见child.measure()|新增功能
104-
0.3.0|增加联动效果(缩放+平移)|新增功能
105-
0.3.1|联动动画平滑过度|fixed
106-
0.3.2|联动动画去抖动及adapter数据更新会多出层|优化
107-
0.3.3|adapter数据更新ui展示错误|fixed
108-
0.3.4|滑动促发item点击事件|fixed
105+
0.0.1|自动轮播,滑动从顶部移除,整体上浮|support auto looper and animation
106+
0.0.2|滑动从顶层加入,整体下沉|fixed child view clicked event
107+
0.1.0|zoomX,zoomY呈等比数列|modify attribute
108+
0.1.1|只有一条数据时|fixed adapter itemSize=1
109+
0.1.2|增加动画、轮播时间设置,获取当前选中位置|add animation,looper time
110+
0.2.0|只有一个元素,不支持轮播和滑动|only one child,can't swipe
111+
0.2.1|减少child层级,见child.measure()|child.measure() opt
112+
0.3.0|增加联动效果(缩放+平移)|support whole animation
113+
0.3.1|联动动画平滑过度|fixed animation smooth
114+
0.3.2|联动动画去抖动及adapter数据更新会多出层|opt animation shake
115+
0.3.3|adapter数据更新ui展示错误|opt adapter changed display
116+
0.3.4|滑动促发item点击事件|fixed item clicked event
109117

110118
### License
111119

0 commit comments

Comments
 (0)