|
4 | 4 | **层叠View支持手势左右滑动,自动轮播,过渡动画** |
5 | 5 |
|
6 | 6 | 1.onMeasure通过StackAdapter适配器取到itemView加入到StackLayaout容器 |
| 7 | + |
| 8 | + onMeasure() through stackAdapter add view to StackLayout |
7 | 9 |
|
8 | 10 | 2.onLayout取到childView按照层叠布局 |
9 | 11 |
|
| 12 | + onLayout() get child view layout stack ui |
| 13 | + |
10 | 14 | 3.onInterceptTouchEvent处理手势支持子View及Velocity |
11 | 15 |
|
| 16 | + onInterceptTouchEvent() support child view gesture |
| 17 | + |
12 | 18 | 4.onTouchEvent处理手势,释放后播放动画平滑过渡 |
13 | 19 |
|
| 20 | + onTouchEvent() swipe animation,when release recover animation |
| 21 | + |
14 | 22 | ### Captures |
15 | 23 |
|
16 | 24 |  |
|
25 | 33 |
|
26 | 34 | *Name*| *Descript*|*Value* |
27 | 35 | -----|--------|--- |
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 |
32 | 40 | 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 |
37 | 45 |
|
38 | 46 | ``` |
39 | 47 | <?xml version="1.0" encoding="utf-8"?> |
@@ -94,18 +102,18 @@ stackEdgeModel|层叠位置|left/right |
94 | 102 | ### Version |
95 | 103 | *Version*| *Descript*|*Fixed* |
96 | 104 | ----|----|---- |
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 |
109 | 117 |
|
110 | 118 | ### License |
111 | 119 |
|
|
0 commit comments