上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 75 下一页
摘要: 前几篇给大家讲了ValueAnimator、ObjectAnimator的知识,讲解了它们ofInt(),ofFloat(),ofObject()函数的用法。细心的同学可能会注意到,ValueAnimator、ObjectAnimator除了这些创建Animator实例的方法以外,都还有一个方法: 阅读全文
posted @ 2017-12-04 14:24 夜行过客 阅读(1160) 评论(0) 推荐(1)
摘要: 一、概述 1、引入 上几篇给大家讲了ValueAnimator,但ValueAnimator有个缺点,就是只能对数值对动画计算。我们要想对哪个控件操作,需要监听动画过程,在监听中对控件操作。这样使用起来相比补间动画而言就相对比较麻烦。 为了能让动画直接与对应控件相关联,以使我们从监听动画过程中解放出 阅读全文
posted @ 2017-12-01 16:42 夜行过客 阅读(19983) 评论(0) 推荐(0)
摘要: 一、ofObject()概述 前面我们讲了ofInt()和ofFloat()来定义动画,但ofInt()只能传入Integer类型的值,而ofFloat()则只能传入Float类型的值。那如果我们需要操作其它类型的变量要怎么办呢?其实ValueAnimator还有一个函数ofObject(),可以传 阅读全文
posted @ 2017-12-01 10:07 夜行过客 阅读(600) 评论(0) 推荐(0)
摘要: 一、插值器 插值器,也叫加速器;有关插值器的知识,我在《Animation动画详解(二)——Interpolator插值器》中专门讲过,大家可以先看看这篇文章中各个加速器的效果。这里再讲一下什么是插值器。我们知道,我们通过ofInt(0,400)定义了动画的区间值是0到400;然后通过添加Anima 阅读全文
posted @ 2017-11-29 16:55 夜行过客 阅读(979) 评论(0) 推荐(0)
摘要: 一、概述 long long ago,我写过几篇有关Animation的文章,讲解了传统的alpha、scale、translate、rotate的用法及代码生成方法。其实这三篇文章讲的所有动画效果叫做Tween Animation(补间动画) 在Android动画中,总共有两种类型的动画View 阅读全文
posted @ 2017-11-28 14:55 夜行过客 阅读(11337) 评论(1) 推荐(1)
摘要: public interface Interpolator implements TimeInterpolator android.view.animation.Interpolator Known Indirect Subclasses AccelerateDecelerateInterpolat 阅读全文
posted @ 2017-11-28 13:28 夜行过客 阅读(475) 评论(0) 推荐(0)
摘要: 一.ScaleAnimation ScaleAnimation(float fromX, float toX, float fromY, float toY, int pivotXType, float pivotXValue, int pivotYType, float pivotYValue) 阅读全文
posted @ 2017-11-27 11:13 夜行过客 阅读(1410) 评论(0) 推荐(0)
摘要: 一.fork() fork()用来创建一个子进程,子进程复制父进程的0-3G空间和父进程内核中的PCB,但子进程和父进程的id号不同。 fork()调用一次,返回两次 在父进程中返回子进程的PID,在子进程中返回0。 例: 运行结果: cur process is parentcur pid is: 阅读全文
posted @ 2017-11-24 22:08 夜行过客 阅读(254) 评论(0) 推荐(0)
摘要: View 提供了如下 5 种方法获取 View 的坐标:1. View.getTop()、View.getLeft()、View.getBottom()、View.getRight();2. View.getX()、View.getY();3. View.getTranslationX()、View 阅读全文
posted @ 2017-11-23 14:40 夜行过客 阅读(2375) 评论(0) 推荐(0)
摘要: 一.stat()&fstat()&lstat() 获取文件详细信息(文件大小,硬链接个数,ino编号,文件最近访问和修改时间,文件权限,文件类型,文件所有者ID和组ID) 运行结果: yongdaimi@ubuntu:~/Documents/linux-sys/02-文件系统$ ./app empt 阅读全文
posted @ 2017-11-08 20:53 夜行过客 阅读(356) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 75 下一页
点击右上角即可分享
微信分享提示