https://github.com/octree/swipelayout
Android 水平滑动显示操作菜单
https://github.com/octree/swipelayout
Last synced: 6 months ago
JSON representation
Android 水平滑动显示操作菜单
- Host: GitHub
- URL: https://github.com/octree/swipelayout
- Owner: octree
- Created: 2014-12-05T06:05:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-19T07:12:40.000Z (over 11 years ago)
- Last Synced: 2023-02-27T06:11:57.153Z (over 3 years ago)
- Language: Java
- Homepage:
- Size: 2.88 MB
- Stars: 21
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SwipeLayout
===========
Android 滑动显示菜单
##Demo
 -------- 
##使用方法
```java
//adapter
class MyAdapater extends SwipeLayoutAdapter
{
public MyAdapater(Activity context,int contentViewResourceId,int actionViewResourceId,List objects)
{
super(context,contentViewResourceId,actionViewResourceId,objects);
}
@Override
public void setContentView(View contentView, int position, HorizontalScrollView scrollParent) {
//设置内容区
}
@Override
public void setActionView(View actionView,final int position, final HorizontalScrollView scrollParent) {
//重写 设置滑动要显示的View
}
}
//then set Adapter
listView.setAdapter(new MyAdapter(......));
```