Tag: animation

在Android上animation改变视图背景颜色

你如何animationAndroid上的一个视图的背景颜色的变化? 例如: 我有一个红色背景颜色的视图。 视图的背景颜色变成蓝色。 我怎样才能平滑过渡的颜色? 如果这不能与意见,可以select一个替代scheme。

如何在基于导航的应用程序中更改推送和stream行animation

我有一个基于导航的应用程序,我想改变推动和stream行animation的animation。 我该怎么做?

在Swing中显示animationBG

一个animation(循环)GIF可以显示在JLabel或HTML(格式化的文本组件,如JEditorPane ),并被看作循环。 但是要加载一个图像作为容器的背景,我通常会使用ImageIO.read()或Toolkit.getImage() (后者当我怀念上一个千年时)。 加载图像的方法都不是循环图像,通常只是第一帧。 如何加载animation图像的背景?

我如何淡入淡出图像?

我有一个从JPanelinheritance而来的类,我想要设置一个小animation来显示面板/图像,然后在事件触发时淡出。 我大概设置了一个线程,并开始animation,但我该怎么做,实际上做淡出?

Android左到右滑动animation

我有三个活动的发起模式是单一实例。 使用onfling() ,我左右摆动它们。 问题是,当我从右向左滑动幻灯片转换是好的,但是当我从左向右滑动时,我从左向右滑动过渡。 我知道这是为什么发生,因为我总是发送新的意图。 但是,现在我需要改变从左向右滑动的animation。 我知道有一个名为overridingTransitionPending()的方法,但我不知道如何用XML定义我的animation。

如何在表行上使用slideDown(或show)函数?

我想添加一行到一个表,并将该行滑入视图,但滑动function似乎是添加一个显示:块样式的表格行弄乱布局。 任何想法如何解决这个问题? 代码如下: $.get('/some_url', { 'val1': id }, function (data) { var row = $('#detailed_edit_row'); row.hide(); row.html(data); row.slideDown(1000); } );

启animation面等待,直到线程完成

我仍然有一个启animation面的问题。 我不想使用属性SC.TopMost=true 。 现在我的应用场景如下: 在progeram.cs中: [STAThread] static void Main() { new SplashScreen(_tempAL);// where _tempAL is an arrayList Application.Run(new Form1(_tempAL)); } 在SplashScreen类中: public SplashScreen(ArrayList _Data) { DisplaySplash() } private void DisplaySplash() { this.Show(); this.TopMost = true; this.CenterToScreen(); this.SetTopLevel(true); _allServerNarrators = new string[10]; for (int i = 0; i < _allServerNarrators.Length; i++) _allServerNarrators[i] = null; GetFromServer(); this.Hide(); […]

Android:展开/折叠animation

比方说,我有一个垂直线性布局: [v1] [v2] 默认v1有visibily = GONE。 我想用展开的animation展示v1,同时按下v2。 我尝试了这样的事情: Animation a = new Animation() { int initialHeight; @Override protected void applyTransformation(float interpolatedTime, Transformation t) { final int newHeight = (int)(initialHeight * interpolatedTime); v.getLayoutParams().height = newHeight; v.requestLayout(); } @Override public void initialize(int width, int height, int parentWidth, int parentHeight) { super.initialize(width, height, parentWidth, parentHeight); initialHeight = height; […]

我如何animation约束更改?

我正在使用AdBannerView更新旧应用程序,当没有广告时,它会滑出屏幕。 当有广告时,它会在屏幕上滑动。 基本的东西。 旧的风格,我在一个animation块中设置框架。 新的风格,我有一个IBOutlet决定Y位置的约束,在这种情况下,它是从超视图底部的距离,并修改常数。 – (void)moveBannerOffScreen { [UIView animateWithDuration:5 animations:^{ _addBannerDistanceFromBottomConstraint.constant = -32; }]; bannerIsVisible = FALSE; } – (void)moveBannerOnScreen { [UIView animateWithDuration:5 animations:^{ _addBannerDistanceFromBottomConstraint.constant = 0; }]; bannerIsVisible = TRUE; } 横幅移动,正如所料,但没有animation。 更新:我重新观看了包含animation的WWDC12video“ 掌握自动布局的最佳实践 ”。 它讨论了如何使用CoreAnimation更新约束。 我已经尝试了下面的代码,但得到完全相同的结果。 – (void)moveBannerOffScreen { _addBannerDistanceFromBottomConstraint.constant = -32; [UIView animateWithDuration:2 animations:^{ [self.view setNeedsLayout]; }]; bannerIsVisible = FALSE; } […]

如何使用jQuery创build“Please Wait,Loading …”animation?

我想在我的网站上放置一个“请稍候,加载”旋转圈animation。 我应该如何使用jQuery来完成这个任务?