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

定制网站开发的目的是什么深圳正规网站制作哪里好

定制网站开发的目的是什么,深圳正规网站制作哪里好,手机网站导航菜单源码,恐怖小说网站怎么做一般的刷新动画是一个圈圈在转#xff0c;而头条的比较特殊#xff0c;直接上写好的效果图(一直不知道怎么把图片尺寸调小o(╯□╰)o)吧~刷新动画_.gif首先整个效果是通过SVG和vector来实现的#xff0c;如果不是很了解#xff0c;请看大佬的文章#xff1a;SVG学习--Anim…一般的刷新动画是一个圈圈在转而头条的比较特殊直接上写好的效果图(一直不知道怎么把图片尺寸调小o(╯□╰)o)吧~刷新动画_.gif首先整个效果是通过SVG和vector来实现的如果不是很了解请看大佬的文章SVG学习--AnimatedVectorDrawable的使用动画思路整个view可以分为五个部分1、最外面的壳(不需要动画)2、中间矩形框3、矩形框中的灰色矩形块4、三根短线5、三根长线第一步在drawable文件夹下新建名为refresh的vector文件android:width200dpandroid:height200dpandroid:viewportHeight200android:viewportWidth200android:nameout_rectandroid:pathDataM70,60L130,60Q140,60 140,70L140,130Q140,140 130,140L70,140Q60,140 60,130L60,70Q60,60 70,60android:strokeColorcolor/colorCustomHeaderLineandroid:strokeWidth2 /android:namemiddle_rectandroid:pathDataM71,75L100,75L100,95L72,95L72,75android:strokeColorcolor/colorCustomHeaderLineandroid:strokeWidth2 /android:nameinner_rectandroid:fillColorcolor/colorCustomHeaderInnerandroid:pathDataM73,76L99,76L99,94L73,94 /android:nameshort_linesandroid:pathDataM108,75L128,75M108,85L128,85M108,95L128,95android:strokeColorcolor/colorCustomHeaderLineandroid:strokeWidth2 /android:namelong_linesandroid:pathDataM72,105L128,105M72,115L128,115M72,125L128,125android:strokeColorcolor/colorCustomHeaderLineandroid:strokeWidth2 /打开xml右边的预览我们可以看到效果效果图.png第二步在drawable文件夹下新建名为refresh_vector的animated-vectorandroid:drawabledrawable/refreshandroid:namemiddle_rectandroid:animationanimator/anim_middle_rect /android:nameshort_linesandroid:animationanimator/anim_short_lines /android:namelong_linesandroid:animationanimator/anim_long_lines /android:nameinner_rectandroid:animationanimator/anim_inner_rect /这里需要注意几点1、android:drawabledrawable/refresh这里一定要引用上面的refresh文件2、target标签下的name一定要和refresh中的path标签下的名字一致第三步新建animator文件夹(不是anim)并在下面新建短线、长线、中间矩形框和里面矩形对应的objectAnimator集合anim_middle_rect.xml:android:orderingsequentiallyandroid:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM71,75L100,75L100,95L72,95L72,75android:valueToM99,75L128,75L128,95L100,95L100,75android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM99,75L128,75L128,95L100,95L100,75android:valueToM99,105L128,105L128,125L100,125L100,105android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM99,105L128,105L128,125L100,125L100,105android:valueToM71,105L100,105L100,125L72,125L72,105android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM71,105L100,105L100,125L72,125L72,105android:valueToM71,75L100,75L100,95L72,95L72,75android:valueTypepathType /anim_short_lines.xml:android:orderingsequentiallyandroid:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM108,75L128,75M108,85L128,85M108,95L128,95android:valueToM72,105L128,105M72,115L128,115M72,125L128,125android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,105L128,105M72,115L128,115M72,125L128,125android:valueToM72,105L92,105M72,115L92,115M72,125L92,125android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,105L92,105M72,115L92,115M72,125L92,125android:valueToM72,75L128,75M72,85L128,85M72,95L128,95android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,75L128,75M72,85L128,85M72,95L128,95android:valueToM108,75L128,75M108,85L128,85M108,95L128,95android:valueTypepathType /anim_long_lines.xml:android:orderingsequentiallyandroid:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,105L128,105M72,115L128,115M72,125L128,125android:valueToM72,75L92,75M72,85L92,85M72,95L92,95android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,75L92,75M72,85L92,85M72,95L92,95android:valueToM72,75L128,75M72,85L128,85M72,95L128,95android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM72,75L128,75M72,85L128,85M72,95L128,95android:valueToM108,105L128,105M108,115L128,115M108,125L128,125android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM108,105L128,105M108,115L128,115M108,125L128,125android:valueToM72,105L128,105M72,115L128,115M72,125L128,125android:valueTypepathType /anim_inner_rect.xmlandroid:orderingsequentiallyandroid:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM73,76L99,76L99,94L73,94android:valueToM101,76L127,76L127,94L101,94android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM101,76L127,76L127,94L101,94android:valueToM101,106L127,106L127,124L101,124android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM101,106L127,106L127,124L101,124android:valueToM73,106L99,106L99,124L73,124android:valueTypepathType /android:duration500android:interpolatorandroid:interpolator/decelerate_cubicandroid:propertyNamepathDataandroid:valueFromM73,106L99,106L99,124L73,124android:valueToM73,76L99,76L99,94L73,94android:valueTypepathType /最后一步在activity中android:idid/imageViewandroid:layout_widthwrap_contentandroid:layout_heightwrap_content/final AnimatedVectorDrawable animatedVectorDrawable (AnimatedVectorDrawable) ContextCompat.getDrawable(this, R.drawable.refresh_vector);findViewById(R.id.imageView).setImageDrawable(animatedVectorDrawable);animatedVectorDrawable.start();//循环动画貌似只能这样。。。final Handler mainHandler new Handler(Looper.getMainLooper());animatedVectorDrawable.registerAnimationCallback(new Animatable2.AnimationCallback() {Overridepublic void onAnimationEnd(Drawable drawable) {mainHandler.post(new Runnable() {Overridepublic void run() {animatedVectorDrawable.start();}});}});
http://www.sadfv.cn/news/145382/

相关文章:

  • 国外网站html5从上到下连续变动优盖网logo在线设计
  • 辽宁奔之流建设工程有限公司网站com域名类别
  • 网站子目录怎么做反向代理设置微信公众平台登录入口内村完小
  • 网站开发流程怎么写给手机做网站的公司
  • 如何使用wordpress制作网站门户网站建设的企业
  • 网站后台建设教程下载营销成功案例分享及感悟
  • 网站开发需要注册账户吗智联招聘网站多少钱做的
  • 笔记本电脑做网站比较畅快做网站要开发嘛
  • 网站首页模板设计图深圳小程序搭建
  • 邯郸建立网站费用ps制作网站导航图片
  • 小猫济南网站建设公司合肥关键词排名首页
  • 网站制作代码大全上海网站建设价钱
  • 电商网站的建设的主要目的龙岗平湖网站建设公司
  • 网站开发使用软件有哪些永川网站制作
  • 用6数字域名做网站的是网业翻译成中文
  • 网站前期设计企业信息查询单在哪里打印
  • 聊城集团网站建设流程徐州市徐州市城乡建设局网站首页
  • 个人网站制作教程wordpress 登录评论
  • 福州专业网站建设价格手机app软件开发公司排名
  • CQ网络科技网站建设广东近期新闻
  • 中通服建设有限公司网站料远若近网站建设
  • 找印度人做网站松阳建设局网站
  • dede电影网站模版wordpress 火车采集
  • 优化网站定制网站关键字代码
  • 阳泉住房和城乡建设厅网站公司logo设计价格
  • 网站收录怎么提高提供佛山网站制作
  • 怎么建网站不用买空间学校网站建设经验介绍
  • 仁怀网站建设江苏财经职业技术学院会计系示范校建设专题网站
  • 人才网站建设cms大型网站频道的建设需多人协同开发
  • 国外游戏商城网站欣赏自己如何做链接推广