Skip to content

Commit

Permalink
完善demo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxutong committed Sep 27, 2017
1 parent 6a68169 commit 8d3cae2
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
67 changes: 67 additions & 0 deletions .idea/markdown-navigator.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/markdown-navigator/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
mAdapter = new CommonAdapter<SwipeBean>(getContext(), mDatas, R.layout.item_cst_swipe) {
@Override
public void convert(final ViewHolder holder, SwipeBean swipeBean) {
((SwipeMenuLayout) holder.itemView).setLeftSwipe(mIndex == 0 ? false : true);//这句话关掉IOS阻塞式交互效果 并依次打开左滑右滑
((SwipeMenuLayout) holder.itemView).setIos(true).setLeftSwipe(mIndex == 0 ? false : true);// 并依次打开左滑右滑

holder.setText(R.id.content, swipeBean.name + (mIndex == 0 ? "我左青龙" : "我右白虎"));

Expand Down

0 comments on commit 8d3cae2

Please sign in to comment.