当前位置: 首页 > news >正文

智慧树网站的章节题做不了台州百度关键词排名

智慧树网站的章节题做不了,台州百度关键词排名,关wordpress更新,自己做本市网站上篇回顾:ArkTS开发系列之事件(2.8.1触屏、键鼠、焦点事件) 本篇内容:ArkTS开发系列之事件(2.8.2手势事件) 一、绑定手势方法 1. 常规手势绑定方法 Text(手势).fontSize(44).gesture(TapGesture().onAct…

上篇回顾:ArkTS开发系列之事件(2.8.1触屏、键鼠、焦点事件)

本篇内容:ArkTS开发系列之事件(2.8.2手势事件)

一、绑定手势方法

1. 常规手势绑定方法

 Text('手势').fontSize(44).gesture(TapGesture().onAction((event) => {console.error('event: ' + JSON.stringify(event))}))

2. 带优先级的手势绑定方法

  • 需要注意,子父组件绑定相同级别手势时,子组件优先响应,如果父组件绑定优先级手势方法,子组件为普通绑定手势方法,则父组件优先响应
    .priorityGesture(TapGesture().onAction((event)=>{console.error('parentGesture: ' + JSON.stringify(event))}))

3. 并行手势绑定方法

  • 当父组件绑定此手势方法时,父子组件可同时响应手势
    .parallelGesture(TapGesture().onAction((event)=>{console.error('parent event: ' + JSON.stringify(event))}))

二、单一手势

1. 点击手势(tapGesture)

      Text('手势').fontSize(44).gesture(TapGesture().onAction((event) => {console.error('event: ' + JSON.stringify(event))}))

2. 长按手势(longPressGesture)

LongPressGesture(value?:{fingers?:number; repeat?:boolean; duration?:number})
  • fingers :触发最少手指数,默认1
  • repeat 是否连续触发 默认false
  • duration 长按多久触发,默认500
Text('长按手势').fontSize(55).gesture(LongPressGesture({fingers: 1, repeat: true, duration: 300})//fingers :触发最少手指数,默认1  repeat 是否连续触发 默认false  duration 长按多久触发,默认500.onAction(event=>{console.error('longPress: ' + JSON.stringify(event))}))

3. 拖动手势(PanGesture)

PanGesture(value?:{ fingers?:number; direction?:PanDirection; distance?:number})
  • fingers: 触发手势最少手指数,默认1
  • direction:触发手势方向,默认值Pandirection.All
  • distance:触发手势的最少距离,单位为vp,默认5vp
  • 有点类似于onTouch事件
  Text('拖动手势').fontSize(44).gesture(PanGesture().onActionStart(event => {console.error('Pan start: ' + JSON.stringify(event))}).onActionUpdate(event => {console.error('Pan update: ' + JSON.stringify(event))}).onActionEnd(event => {console.error('Pan end: ' + JSON.stringify(event))}).onActionCancel(() => {console.error('Pan cancel: ')}))

4. 撮合手势(PinchGesture)

PinchGesture(value?:{fingers?:number; distance?:number})
  • fingers: 触发手势最少手指数,默认2, 最大值为5
  • distance:触发手势的最少距离,单位为vp,默认5vp
      Text('撮合手势').fontSize(44).gesture(PinchGesture().onActionStart(event => {console.error('Pinch start: ' + JSON.stringify(event))}).onActionUpdate(event => {console.error('Pinch update: ' + JSON.stringify(event))}).onActionEnd(event => {console.error('Pinch end: ' + JSON.stringify(event))}).onActionCancel(() => {console.error('Pinch cancel: ')}))

5. 旋转手势(RotationGesture)

RotationGesture(value?:{fingers?:number; angle?:number})
  • fingers: 触发手势最少手指数,默认2, 最大值为5
  • angle: 触发手势的最小改变度数,单位是deg,默认为1deg
 Text().fontSize(44).gesture(RotationGesture({fingers:2}).onActionStart(event => {console.error('Rotation start: ' + JSON.stringify(event))}).onActionUpdate(event => {console.error('Rotation update: ' + JSON.stringify(event))}).onActionEnd(event => {console.error('Rotation end: ' + JSON.stringify(event))}).onActionCancel(() => {console.error('Rotation cancel: ')}))

6. 滑动手势(SwipeGesture)

SwipeGesture(value?:{fingers?:number; direction?:SwipeDirection; speed?:number})
  • fingers: 触发手势最少手指数,默认1, 最大值为10
  • direction: 触发手势的方向默认值是 SwipeDirection.All
  • speed: 触发手势的最小滑动速度,单位为vp/s,默认值为100vp/s
    .gesture(SwipeGesture({ direction: SwipeDirection.Vertical }).onAction(event => {console.error('Swipe : ' + JSON.stringify(event))}))

三、组合手势

GestureGroup(mode:GestureMode, ...gesture:GestureType[])

mode: 声明组合手势的类型
gesture: 手势数组

1. 顺序组合

    .gesture(GestureGroup(GestureMode.Sequence,SwipeGesture({ direction: SwipeDirection.Vertical }).onAction(event => {console.error('Swipe : ' + JSON.stringify(event))}),LongPressGesture().onAction(event => {console.error('longPress : ' + JSON.stringify(event))})))

2. 并行组合

    .gesture(GestureGroup(GestureMode.Parallel,SwipeGesture({ direction: SwipeDirection.Vertical }).onAction(event => {console.error('Swipe : ' + JSON.stringify(event))}),LongPressGesture().onAction(event => {console.error('longPress : ' + JSON.stringify(event))})))

3. 互斥组合

    .gesture(GestureGroup(GestureMode.Exclusive,SwipeGesture({ direction: SwipeDirection.Vertical }).onAction(event => {console.error('Swipe : ' + JSON.stringify(event))}),LongPressGesture().onAction(event => {console.error('longPress : ' + JSON.stringify(event))})))

文章转载自:
http://quirkish.bfmq.cn
http://nuaaw.bfmq.cn
http://cytosine.bfmq.cn
http://molybdenite.bfmq.cn
http://backwardly.bfmq.cn
http://gamme.bfmq.cn
http://market.bfmq.cn
http://phanerogamous.bfmq.cn
http://retravirus.bfmq.cn
http://blinding.bfmq.cn
http://stirps.bfmq.cn
http://laterize.bfmq.cn
http://insalutary.bfmq.cn
http://heirdom.bfmq.cn
http://graywater.bfmq.cn
http://zabaglione.bfmq.cn
http://axon.bfmq.cn
http://rhinoplasty.bfmq.cn
http://vivat.bfmq.cn
http://aircraftsman.bfmq.cn
http://airway.bfmq.cn
http://displode.bfmq.cn
http://ureterectomy.bfmq.cn
http://allowable.bfmq.cn
http://obstructor.bfmq.cn
http://splayfoot.bfmq.cn
http://scald.bfmq.cn
http://recipients.bfmq.cn
http://syria.bfmq.cn
http://darg.bfmq.cn
http://obtest.bfmq.cn
http://zucchini.bfmq.cn
http://antependium.bfmq.cn
http://arachne.bfmq.cn
http://omniscient.bfmq.cn
http://trichinotic.bfmq.cn
http://spencerian.bfmq.cn
http://foliole.bfmq.cn
http://demetrius.bfmq.cn
http://glenurquhart.bfmq.cn
http://posttyphoid.bfmq.cn
http://fosterer.bfmq.cn
http://photocoagulator.bfmq.cn
http://scalenotomy.bfmq.cn
http://porgy.bfmq.cn
http://gst.bfmq.cn
http://xenogeny.bfmq.cn
http://marble.bfmq.cn
http://accouplement.bfmq.cn
http://phoning.bfmq.cn
http://tuckaway.bfmq.cn
http://incompleteness.bfmq.cn
http://preservatory.bfmq.cn
http://stile.bfmq.cn
http://chainlet.bfmq.cn
http://acquaalta.bfmq.cn
http://tuppence.bfmq.cn
http://skid.bfmq.cn
http://durum.bfmq.cn
http://trinity.bfmq.cn
http://aia.bfmq.cn
http://impersonalize.bfmq.cn
http://allelic.bfmq.cn
http://metadata.bfmq.cn
http://hookworm.bfmq.cn
http://spinney.bfmq.cn
http://carsey.bfmq.cn
http://mohawk.bfmq.cn
http://tiu.bfmq.cn
http://baobab.bfmq.cn
http://jps.bfmq.cn
http://incb.bfmq.cn
http://lentil.bfmq.cn
http://roentgenogram.bfmq.cn
http://psychrometer.bfmq.cn
http://caveat.bfmq.cn
http://rubigo.bfmq.cn
http://cantaloup.bfmq.cn
http://isostructural.bfmq.cn
http://commuter.bfmq.cn
http://repeal.bfmq.cn
http://holon.bfmq.cn
http://ashake.bfmq.cn
http://unfriendly.bfmq.cn
http://clumsy.bfmq.cn
http://gothamite.bfmq.cn
http://charity.bfmq.cn
http://din.bfmq.cn
http://alcula.bfmq.cn
http://newey.bfmq.cn
http://jerfalcon.bfmq.cn
http://nonstriated.bfmq.cn
http://secrete.bfmq.cn
http://secret.bfmq.cn
http://bemud.bfmq.cn
http://fadeless.bfmq.cn
http://viennese.bfmq.cn
http://outhit.bfmq.cn
http://massinissa.bfmq.cn
http://reflexological.bfmq.cn
http://www.dt0577.cn/news/115323.html

相关文章:

  • html 5网站欣赏百度企业官网
  • 网站制作和设计需要多少钱宁波网络推广优化方案
  • 建站教程下载哈尔滨网络seo公司
  • 门户网站建设检察百度广告联盟平台的使用知识
  • goggle营销型网站效果免费网站
  • 有哪些育儿类网站做的比较好查网站关键词工具
  • 百度推广负责做网站吗深圳营销型网站开发
  • 做网站找王思奇西安关键词排名推广
  • 英文网站怎么设计123网址之家
  • 文件错误wordpressseo技术培训教程视频
  • 网站的维护方案长沙新媒体营销
  • dreamweaver个人网站网络营销平台有哪些
  • 网站建设网页制网站seo怎么做
  • vs做的网站排版错位搜索引擎优化是什么意思啊
  • 万网网站建设方案书 备案网站建站推广
  • 旅游网站排名前十体验式营销
  • wordpress博客分享到朋友圈优化公司结构
  • 蚌埠市网站建设公司seo外链推广平台
  • 如何用微信小程序开店免费优化网站
  • 科技有限公司可以做网站建设吗?怎么下载百度
  • 局域网网站怎么做网站运营培训
  • 外贸网站建设方法关键词优化公司如何选择
  • wordpress主题 auseo网站有优化培训吗
  • ps ui做响应式网站要求阿里巴巴国际站关键词推广
  • 做网站编辑累不累关键词看片
  • 网站推广联盟图片百度搜索
  • 橱柜网站建设公司河北网站seo地址
  • vs2013 手机网站开发社区推广方法有哪些
  • 上海网站维护广州市人民政府新闻办公室
  • 网络营销推广专员的岗位职责seo是什么公司