transition

Conent Transition NPE with empty shared elements

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am adding content transitions to a pretty large app and in most cases I do not have any shared elements but still want to use the transition animations. I have tracked the problem down to this line of code: ActivityOptionsCompat.makeSceneTransitionAnimation(activity, ????); I have tried setting Pair array to null or an empty array and I have tried just leaving it out. Everything results in the following error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewRootImpl.setPausedForTransition(boolean)'

d3.js transition() not working when browser is minimised

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The transition() selection which i use to shift the position of svg elements when new data comes in, works perfectly when browser window is open but when I open another tab or minimize the window, the transition() function piles the svg elements on top of each other. when i open the window i see piled up svg elements on top of each other. The exit() selection moves out of screen however. 回答1: D3 uses requestAnimationFrame to enable smooth and efficient drawing. Here is more info on the topic. The basic problem many people have is, when a

d3.js v4 wacky link transition in collapsible tree example

瘦欲@ 提交于 2019-12-03 08:00:47
If you play with the collapsible tree below you'll see that when you get to the end of the tree, and expand and collapse the nodes the lines are doing some wacky stuff and I am no entirely sure what drives the behavior or if my rewriting of enter link description here is completely off base. I went off a flat data structure and used stratify to transform it into a tree layout. The only issue so far is the line transitions...any thoughts? var data = [{ "name": "Hazer 5000", "parent": "CFO", "img": "https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-342/stephen.jpg" }, { "name": "Employee 1",

Transition Navigation Bar Title

寵の児 提交于 2019-12-03 07:21:22
In an app called "Luvocracy" the title of the navigation bar is changed when the user swipes up on the screen. The old title is pushed up, while the new one is transitioned in. I don't have a video of it now, but here are some screen shots: https://www.dropbox.com/s/sns0bsxkdv7pw3l/Photo%20Apr%2008%2C%2011%2001%2005%20AM.png https://www.dropbox.com/s/ys9a49u3dyxrlcm/Photo%20Apr%2008%2C%2011%2001%2009%20AM.png https://www.dropbox.com/s/dlcfvfvqqov3ag7/Photo%20Apr%2008%2C%2011%2001%2013%20AM.png How can I animate or transition in a new navigation bar title as shown? Edit: The app is no longer

Interactive Delegate Methods Never Called

十年热恋 提交于 2019-12-03 07:09:45
问题 I want to make an interactive transition between a ViewController (1) and a NavigationViewController (2). The NavigationController is called by a button, so there's no interactive transition when presenting. It can be dismissed by a button or a UIPanGestureRecognizer, so it can be dismissed interactively or not. I have an object named TransitionManager for the transition, subclass of UIPercentDrivenInteractiveTransition. The problem with the code below is that the two delegate methods

Animate selector/state transitions

穿精又带淫゛_ 提交于 2019-12-03 05:30:19
问题 I have a simple selector for my ListView <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/yellow_arc" android:state_activated="true"/> <item android:drawable="@drawable/yellow_nonarc" android:state_activated="false"/> </selector> I want to animate the transition between these drawables when the state of the views are changed from activated to not-activated and vica versa. If you run the example in

CSS filter grayscale not working in Firefox

99封情书 提交于 2019-12-03 05:11:52
I'm having troubles doing a transition from grayscale to colored, it works in chrome, but that is it. Here is the HTML: <div id="post" style="background-image:url('bg.png');background-repeat:no-repeat;"> <p><a href="/post.php?id=1">Title - Date</a></p> </div> Here is the CSS: #post{ padding:0; margin:0 auto; margin-bottom:25px; border:solid 1px #000; height:150px; width:750px; display:block; filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'saturate\' values=\'0.5\'/></filter></svg>#grayscale"); filter: gray alpha

How to fade out and in between two images?

…衆ロ難τιáo~ 提交于 2019-12-03 04:51:12
Okay a little help here, so I have two images loading in my splash screen. The first image opens (starting the splash screen) then the second image opens, once the second image closes the mainactivity starts. Now my question is how do I make my first image fade out, then fade in with my second image? -Oh yes, and no cross fading -Just a complete fade out and in transition -Thanks in advance -The splash.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android

Kaldi随笔(二)

馋奶兔 提交于 2019-12-03 04:06:58
今天思考的还是昨天那个问题的延续。 现在已经知道了nnet-forward输出的矩阵的每一列对应的是一个pdf,我的最终目的是想要知道每一帧(除了sil)转换成每一个phone的概率是多少。 首先我看到了Kaldi的kaldi-trunk\egs\wsj\s5\steps\nnet下有一个align.sh的脚本。 然后我找到了之前跑TIMIT实验的时候这个脚本处理后得到的ali文件,解压之后查看了一下文件内容(大概形式): FAEM0_SI1392 2 1 4 3 3 3 3 3 3 6 5 472 471 471 471 471...... 3281 3281 3336 3335 3335 3335 2 4 3 3 3 3 3 3 6 FAEM0_SI2022 2 1 4 3 3 3 3 3 3 3 6 5 5 5 5 5 5 5 5 2...... 406 405 405 405 405 405 2 1 1 1 1 4 3 3 3 3 6 5 每一个句子对应了一行数据,这一行的数据元素的个数是474个。 然后我又找到了当时的训练数据的特征文件,用nnet-forward跑了一遍得到矩阵文件。 矩阵文件的中一个句子的对应的矩阵的行数也是474。 与此同时,还有一个发现是ali文件里面最大的数字是4090。 4090是什么? 这就要用到上一篇博文里面提到了show

css---8 过渡属性刨析

狂风中的少年 提交于 2019-12-03 04:06:14
1. transition-property 默认值为 all,表示所有可被动画的属性都表现出过渡动 可以指定多个 property 属性值: none 没有过渡动画。 all 所有可被动画的属性都表现出过渡动画。 IDENT 属性名称 (可以指定多个) transition-property: width,height; transition-duration: 9s,1s; 2 transition-duration 属性以秒或毫秒为单位指定过渡动画所需的时间。 默认值为 0s ,表示不出现过渡动画。 可以指定多个时长,每个时长会被应用到由 transition-property 指定的对应属性上。如果指定的时长个数小于属性个数,那么时长列表会重复。如果时长列表更长,那么该列表会被裁减。两种情况下,属性列表都保持不变。 属性值 以毫秒或秒为单位的数值 <time> 类型。表示过渡属性从旧的值转变到新的值所需要的时间。如果时长是 0s ,表示不会呈现过渡动画,属性会瞬间完成转变。不接受负值。一定要加单位(不能写0 一定要写0s 1s,0s,1s)! transition-property:width,background; <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title