slideView = (SlideView) convertView; if (slideView == null) { View itemView = mInflater.inflate(R.layout.item_listview_delete..., null); slideView = new SlideView(DeleteListViewMainActivity.this); slideView.setContentView(itemView...); holder = new ViewHolder(slideView); slideView.setOnSlideListener(DeleteListViewMainActivity.this...); slideView.setTag(holder); } else { holder = (ViewHolder) slideView.getTag(); } MessageItem item...= mMessageItems.get(position); item.slideView = slideView; item.slideView.shrink(); holder.icon.setImageResource
useExtendedLib": { "weui": true } 小程序开发者工具选择:菜单-工具-构建npm 就完成了weui的引入 3.2 使用 { "usingComponents": { "mp-slideview...": "weui-miniprogram/slideview/slideview" } } ...... 左滑可以删除(图标Button) 111 </mp-slideview
首先自定义个SlideView继承LinearLayout。...slideView = (SlideView) convertView; if (slideView == null) { // 这里是我们的item View itemView = mInflater.inflate...(R.layout.list_item, null); slideView = new SlideView(MainActivity.this); // 这里把item加入到slideView...slideView.setContentView(itemView); // 下面是做一些数据缓存 holder = new ViewHolder(slideView); slideView.setOnSlideListener...); } MessageItem item = mMessageItems.get(position); item.slideView = slideView; item.slideView.shrink
/miniprogram_npm/weui-miniprogram/cell/cell " } } 6、点击文档中的组件示例代码,开始ctrl C + ctrl V吧~ 官方文档链接(这里是Slideview...): 链接: https://developers.weixin.qq.com/miniprogram/dev/extended/weui/slideview.html. vant-weapp 小程序组件库
(assign) NSInteger currentPage; 19 20 ///@brife 下面滑动的View 21 @property (strong, nonatomic) UIView *slideView...- 初始化滑动的指示View -(void) initSlideView{ CGFloat width = _mViewFrame.size.width / _tabCount; _slideView...= [[UIView alloc] initWithFrame:CGRectMake(0, TOPHEIGHT - 5, width, 5)]; [_slideView setBackgroundColor...:[UIColor redColor]]; [self addSubview:_slideView]; } 5.ScrollView的初始化代码如下, 指定ScrollView的大小位置以及背景颜色...; 19 frame.origin.x = scrollView.contentOffset.x/_tabCount; 20 _slideView.frame = frame
van-radio-group": "@vant/weapp/radio-group/index", "van-button": "@vant/weapp/button/index", "mp-slideview...": "weui-miniprogram/slideview/slideview" } } </mp-slideview
7449/SlideView 模仿微信通讯录侧边快速索引 https://github.com/7449/SlideView
import android.view.Display; import android.view.WindowManager; //import com.android.internal.widget.SlideView...R.id.gradientView_layout); FrameLayout slide_shutdown = (FrameLayout)view.findViewById(R.id.slide_layout); SlideView...= null) { dismissDialog(); } } } }; public class SlideView extends View { public float mTouchX...mSlideDrawable; public float mDownX,mdx; private boolean isPower=false; private Context mContext; public SlideView...(Context context, AttributeSet attrs) { this(context); } public SlideView(Context context) { super
Float) valueAnimator.getAnimatedValue(); invalidate(); } }); anim.start(); } 这就是完成滑动解锁的主要步骤,最后github地址在SlideView
/scf-openapi/scf-openapi', 'packageExtend/pages/form/cell/cell', 'packageExtend/pages/form/slideview.../slideview', 'packageExtend/pages/form/form/form', 'packageExtend/pages/form/uploader/uploader
View 随着手指移动 [51945415e49244eeaa35ebfcc7b5b6e7.gif] public class SlideView1(context: Context?...) canvas.drawCircle(300f, 300f, 150f, paint) } } **第二种 setX/setY 方式** public class SlideView2
审批展示和操作 │ │ ├── MapView.vue // 地图预览位置 │ │ ├── SlideView.vue
slideview - 一个简单却很棒的滑动按钮,可实现和谐。 MultiType - MultiType 提供了便捷的方法来轻松开发复杂的 ListContainer。
领取专属 10元无门槛券
手把手带您无忧上云