使用共享元素和FLAG_ACTIVITY_REORDER_TO_FRONT标志启动活动无效

时间:2019-01-21 11:08:49

标签: java android android-5.0-lollipop shared-element-transition

我正在尝试使用//declare private ngUnsubscribe: Subject<any> = new Subject<any>(); //add takeUntill where subscribing to observables this.myService.serviceFunction() .pipe(takeUntil(this.ngUnsubscribe)) .subscribe( res => { // use res }, err => {} ); //unsubscribe all ngOnDestroy() { this.ngUnsubscribe.next(); this.ngUnsubscribe.complete(); } 的{​​{1}}标志从后堆栈开始一项活动

但它不起作用,其行为类似于FLAG_ACTIVITY_REORDER_TO_FRONT

我的代码是这样的:

Shared Elements

0 个答案:

没有答案