ITeye博客

2015 年文章归档

共 1 篇文章

listview 左滑弹出删除按钮,需要折腾一下

基本上关键点在, 1事件, android:longClickable="true" android:descendantFocusability="blocksDescendants" 这个是在item子控件返回true 而使onInterceptTouchEvent 不停有事件来, 2 layout ,的设计,onLayout方法,relativeonLayout好像比较难达到这种拖后还有显示删除按钮 3,一些回调接口,方便toggle import android.annotation.SuppressLint; import android.content.Context; impo…

2015-07-10 10:30 · android