Skip to content

Commit 81d5d6d

Browse files
author
uis
committed
Merge branch 'dev' of https://github.com/luiing/StackViewLayout into dev
2 parents 0884802 + ef425e4 commit 81d5d6d

11 files changed

Lines changed: 823 additions & 650 deletions

File tree

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@
1919

2020
onTouchEvent() swipe animation,when release recover animation
2121

22-
### Captures
22+
#### Captures
2323

2424
![效果图](/pic/pic001.jpeg)
25-
![效果图](/pic/demo20.gif)
26-
27-
![尺寸说明](/pic/biaozhu.png)
28-
29-
<li>注释:此图解释参数意义,展示效果不太精确,图片真实宽度为**上层橙色**
3025

3126
### Use
32-
implementation 'com.uis:stacklayout:0.3.4'
27+
implementation 'com.uis:stacklayout:0.5.0'
3328

3429
*Name*| *Descript*|*Value*
3530
-----|--------|---
@@ -99,22 +94,6 @@ stackEdgeModel|层叠位置(stack model)|left/right
9994
stackViewLayout.setPosition(10);//指定位置
10095
```
10196

102-
### Version
103-
*Version*| *Descript*|*Fixed*
104-
----|----|----
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
117-
11897
### License
11998

12099
Copyright 2018, uis

demo/src/main/java/com/uis/stackview/demo/activity/StackAdapter.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import android.view.ViewGroup;
77
import android.widget.ImageView;
88
import com.bumptech.glide.Glide;
9-
import com.facebook.drawee.view.SimpleDraweeView;
109
import com.uis.stackview.demo.R;
1110
import com.uis.stackview.demo.entity.ItemEntity;
1211
import com.uis.stackview.StackLayout;
@@ -72,11 +71,6 @@ public static ArrayList<ItemEntity> initDataList(Context context) {
7271
return dataList;
7372
}
7473

75-
public static class ViewHolder {
76-
ImageView imageView;
77-
SimpleDraweeView dv;
78-
}
79-
8074
static class StackVH extends RecyclerView.ViewHolder{
8175
StackLayout stackLayout;
8276
List<ItemEntity> stackData = new ArrayList<>();

demo/src/main/res/layout/stack_left.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
android:id="@+id/stacklayout"
55
android:layout_width="match_parent"
66
android:layout_height="wrap_content"
7-
stack:stackSpace="10dp"
8-
stack:stackEdge="10dp"
9-
stack:stackZoomX="1"
10-
stack:stackZoomY="0.9"
11-
stack:stackLooper = "true"
7+
stack:stackAspectRatio="3"
8+
stack:stackPaddingX="10dp"
9+
stack:stackOffsetX="1dp"
10+
stack:stackOffsetY="5dp"
11+
stack:stackPaddingY="20dp"
1212
stack:stackSize = "5"
13-
stack:stackEdgeModel = "left">
13+
stack:stackModel="left">
1414
</com.uis.stackview.StackLayout>

demo/src/main/res/layout/stack_right.xml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
android:id="@+id/stacklayout"
55
android:layout_width="match_parent"
66
android:layout_height="150dp"
7-
stack:stackSpace="15dp"
8-
stack:stackEdge="10dp"
9-
stack:stackZoomX="1"
10-
stack:stackPadX="5dp"
11-
stack:stackZoomY="0.9"
12-
stack:stackLooper = "false"
7+
stack:stackPaddingX="10dp"
8+
stack:stackOffsetX="1dp"
9+
stack:stackOffsetY="5dp"
10+
stack:stackPaddingY="20dp"
1311
stack:stackSize = "3"
14-
stack:stackEdgeModel = "right">
12+
stack:stackModel="right">
1513
</com.uis.stackview.StackLayout>

demo/src/main/res/values/attrs.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

pic/biaozhu.png

-74.7 KB
Binary file not shown.

pic/demo20.gif

-1.02 MB
Binary file not shown.

pic/pic001.jpeg

-68.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)