ljphawk / swipemenulayout Goto Github PK
View Code? Open in Web Editor NEW🔥一个零耦合的侧滑菜单,支持RecyclerView、ListView、GridView等不同条目布局,支持菜单在左或在右,可选滑动阻塞,是否禁用等功能
🔥一个零耦合的侧滑菜单,支持RecyclerView、ListView、GridView等不同条目布局,支持菜单在左或在右,可选滑动阻塞,是否禁用等功能
感觉是触发了长按的效果,但是我都改代码完全禁止长按了啊
感觉像是自动点了点击事件关闭
<cn.ljp.swipemenu.SwipeMenuLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/swipe_menu_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#e9e9e9"
app:isEnableLeftMenu="false"
app:isEnableSwipe="true"
app:isClickMenuAndClose="false"
app:isOpenChoke="true">
<RelativeLayout
android:id="@+id/ll_item"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--也可以是复杂的item布局-->
<TextView
android:id="@+id/tv_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"/>
</RelativeLayout>
<TextView
android:id="@+id/tv_menu1"
android:layout_width="60dp"
android:layout_height="match_parent"
android:background="#fff"
android:text="取消关注"/>
<TextView
android:id="@+id/tv_menu2"
android:layout_width="60dp"
android:layout_height="match_parent"
android:background="#f00"
android:text="删除"/>
</cn.ljp.swipemenu.SwipeMenuLayout>
这样写,菜单并不能填满高度
设置侧滑功能开启后,item的点击事件无效了
大概率滑动后又弹回去
长滑出来后会弹回去,短滑好像没问题,是不是超过这个长度后又重新触发了点击事件?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.