
Android Animation
文章平均质量分 60
fyfcauc
这个作者很懒,什么都没留下…
展开
-
Activity overridePendingTransition
/** * Call immediately after one of the flavors of {@link #startActivity(Intent)} * or {@link #finish} to specify an explicit transition animation to * perform next. * *转载 2015-01-06 14:07:57 · 839 阅读 · 0 评论 -
Android Animator setTarget
一直以来,在使用ObjectAnimator等Animator的时候, animator的Target一般都是直接设置为某个View,常规都是这么用,通过Animator的不断的改变 target view的属性,从而实现动画, 今天发现了一种非常规的用法,比如一个奇葩的需求或者场景, 有两个view,对于view1 要求scale效果,对于view2要求alpha效果,常规可以给这两个view分原创 2015-01-19 13:30:00 · 2318 阅读 · 0 评论 -
android ValueAnimator 源码track
private void start(boolean playBackwards) { if (Looper.myLooper() == null) { throw new AndroidRuntimeException("Animators may only be run on Looper threads"); } mPlayingBackwards =原创 2014-12-22 10:44:05 · 772 阅读 · 0 评论 -
Tab 模块 (四)
Tab 模块 (四)TabViewListView是真正负责显示TabView,以及相关TabView交互的View,extends AdapterView, 使用AdapterView而不是更为现成的ListView的原因是,ListView虽然在展现List方面很方便很现成,但是ListView不支持对某个ListItem的Touch复杂交互,要在ListView的基础原创 2015-03-08 17:44:10 · 686 阅读 · 0 评论 -
Choreographer 翩翩起舞
/** * Callback type: Input callback. Runs first. * @hide */ public static final int CALLBACK_INPUT = 0; /** * Callback type: Animation callback. Runs before traversals.原创 2015-01-30 15:02:34 · 1999 阅读 · 2 评论 -
Night模块(一)
Night模块(一)Night模块是前期的试手项目,虽然比较简单,不过因为本blog的目的就是记录所有自己的工作点滴,因此这个也不会漏掉.NightMode其中一个组件就是提供一个夜间日间模式切换的动画,产品和设计给的设计稿就是一个太阳/月亮按照某种可计算的轨迹升起/落下,并且伴随着整个APP界面的渐变亮/暗.此UI组件NightToggleAnimatioVi原创 2015-03-10 22:04:40 · 633 阅读 · 0 评论 -
Android postTranslate和preTranslate的理解
From: http://blog.youkuaiyun.com/rav009/article/details/7763223 matrix.setScale(interpolatedTime, interpolatedTime); matrix.preTranslate(-centerX, -centerY); matrix.postTranslat转载 2015-03-06 13:33:02 · 456 阅读 · 0 评论 -
Tab 模块 (一)
Tab 模块 (一)做该模块的时间早于Download.MoveMenu extends FrameLayout, 可以响应手势或者按钮出现/消失. 提供了几种手势滑动方向,并且是可以set的并且在APP的setting中持久化.手势滑动方向被enum化:UNDEFINED,LEFT,RIGHT,LEFT_RIGHT,FORBID_DRAG,原创 2015-03-06 13:59:32 · 1118 阅读 · 0 评论 -
浅析Android4.0 Animator框架
一、 前言Animator框架是Android 4.0中新添加的一个动画框架,和之前的Animation框架相比,Animator可以进行更多和更精细化的动画控制,而且比之前更简单和更高效。在4.0源码中随处都可以看到Animator的使用。 二、 Animation和Animator比较如下图,是Animation和Animator两个转载 2015-01-04 11:45:50 · 423 阅读 · 0 评论 -
[Android]Fragment自定义动画、动画监听以及兼容性包使用 - Ginsan
From: http://www.cnblogs.com/lcyty/p/3383960.htmFragment是Android在API 11之后加入的一个组件,对提高Android开发中的布局合理性和布局效率都有很大作用,尤其是在Android平板等大屏幕设备的开发中,Fragment的引入能更好地利用较大的屏幕空间。本文主要说明Fragment使用简介、Fragment自定义动画的转载 2015-02-17 11:42:18 · 551 阅读 · 0 评论 -
Android自定义Animation动画
本文链接地址: http://www.icodelogic.com/?p=616产品需求中有一个动画效果:TextureView按照曲线路径进行移动,并且同时做Scale和Alpha变化。当然,同时进行多个动画只需要使用AnimationSet就行了,但是对于”曲线”这样的移动效果,只能采用多个TranslateAnimation来顺序进行以模拟曲线的效果了。这样的实现方式没有问题转载 2015-02-15 23:16:21 · 686 阅读 · 0 评论 -
overridePendingTransition
/** * Call immediately after one of the flavors of {@link #startActivity(Intent)} * or {@link #finish} to specify an explicit transition animation to * perform next. * * As of原创 2015-01-19 18:16:01 · 652 阅读 · 0 评论 -
EventThread线程对VSync的接收
From: http://blog.chinaunix.net/uid-13164110-id-3481832.htmlEventThread被设计用来接收VSync事件通知,并分发VSync通知给系统中的每一个感兴趣的注册者。VSync来源自底层硬件驱动程序的上报,对于Android能看到的接口来说,它是来自HAL层的hwc_composer_device的抽象硬件设备。若硬件不支持,则转载 2015-02-03 10:45:45 · 689 阅读 · 0 评论 -
用android:clipChildren来实现红心变大特效
From: http://www.cnblogs.com/xitang/p/3606578.html最近在看别人技术博客(http://www.cnblogs.com/over140/p/3508335.html)的时候,发现一个属性:android:clipChildren属性。翻文档找到下面介绍android:clipChildrensetClipChi转载 2015-01-13 17:42:37 · 533 阅读 · 0 评论 -
android:clipToPadding和android:clipChildren
From: http://www.alloyteam.com/2014/10/androidcliptopadding-he-androidclipchildren/假设我们要做一个效果,界面最顶部是一个ActionBar并且是半透明的,ActionBar下面是一个ListView,在初始状态下,ListView是top是在ActionBar的bottom位置的,但当ListView滚动的转载 2015-01-13 18:55:58 · 748 阅读 · 0 评论 -
Animator cancel end
/** * Cancels the animation. Unlike {@link #end()}, cancel() causes the animation to * stop in its tracks, sending an * {@link android.animation.Animator.AnimatorListener#onAnimation原创 2015-01-14 09:44:59 · 1323 阅读 · 0 评论