android-transitions

Return transition not working correctly when using fragment shared transitions

我怕爱的太早我们不能终老 提交于 2019-12-10 12:29:17
问题 I have 2 fragments ListMovieFragment and DetailMovieFragment . I have an interface in ListMovieFragment that is implemented in the MainActivity . I am using shared element transition ; when I click the image view in ListMovieFragment the onMovieSelected is called in the MainActivity . Transitioning from the ListMovieFragment works. But when I click the back button, transitioning from the DetailMovieFragment to the ListMovieFragment fails to work. Here is the MainActivity. I think I have got

Material Transitions in pre lollipop apps

百般思念 提交于 2019-12-10 12:02:38
问题 I am trying to use the transitions which introduced in material design in pre - lollipop apps(Min API19). I was going through http://www.google.com/design/spec/animation/meaningful-transitions.html#meaningful-transitions-visual-continuity transitions. But couldn't find how to do these transition mainly the second one on click of list item it expands the details. Can anybody help me to do this. Thanks 回答1: You cannot use the " Material transitions " (or shared content animations) in pre

Shared element transition - animate only the visible part of the shared view

五迷三道 提交于 2019-12-10 02:28:42
问题 I'm working in an app that is similar to Google Calendar... There are events and when a user click one, the event grows and transforms into the detail view. The shared views (the events) are inside a ScrollView, so at some point those views may be partially visible. The problem is that when one partially visible View is selected, the full View appears above all and then the animation runs. Here is a capture of the problem: What can I do to make the Transition take only the visible part of the

How to remove the delay when opening an Activity with a DrawerLayout?

亡梦爱人 提交于 2019-12-08 15:49:53
问题 I have an activity with a DrawerLayout but whenever it opens there is a delay like a split-second where the screen is white then my screen is drawn. This happens after the Transition finishes. So it sort of looks like the screen animation transition is jumping. I tried putting this on my OnCreate after binding the views with ButterKnife but it did nothing. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { postponeEnterTransition(); drawerLayout.getViewTreeObserver()

Activity Navigation Translation Animation not working correctly on Samsung (s6)

不羁岁月 提交于 2019-12-08 14:08:29
The Samsung s6 has a nice transition between activities and it's similar to the one described here : So I decided to add this activity transition animation to my project and set duration to 600ms. Problem only is that somehow on the Samsung device the transition is taking way longer (about 2x as long). Anyone know how to solve this issue?? 来源: https://stackoverflow.com/questions/45735395/activity-navigation-translation-animation-not-working-correctly-on-samsung-s6

Activity Navigation Translation Animation not working correctly on Samsung (s6)

瘦欲@ 提交于 2019-12-08 04:55:15
问题 The Samsung s6 has a nice transition between activities and it's similar to the one described here: So I decided to add this activity transition animation to my project and set duration to 600ms. Problem only is that somehow on the Samsung device the transition is taking way longer (about 2x as long). Anyone know how to solve this issue?? 来源: https://stackoverflow.com/questions/45735395/activity-navigation-translation-animation-not-working-correctly-on-samsung-s6

Material Design parent-child navigational transition recyclerview entry to detail fragment

和自甴很熟 提交于 2019-12-08 04:46:36
问题 Background I am trying to implement the "parent-to-child" navigational transition specifically when you click a Recyclerview entry and the details appear in a fullscreen fragment. Something like this: Question How do I go about doing this with so many animation APIs available? (TransitionManager.beginDelayedTransition, SharedTransition, setExitTransition, etc) What I have tried InboxRecyclerView - This matches my requirements EXCEPT that it seems to only work when the detail view is in the

How to finish an activity when transition is done Android

岁酱吖の 提交于 2019-12-07 22:58:17
问题 i want to end a previous activity after the transition between 2 activities is completed i have tried ActivityCompat.finishAfterTransition(this); but it actually finishes the activity before the transition is done i have looked into this solution before but i couldn't understand the answer to it , it would be swell if someone can explain how to end an activity after the transition is done Updates : i just tried starting the next activity like this Intent intent = new Intent(LoginActivity.this

Animate image's saturation

心不动则不痛 提交于 2019-12-07 02:30:35
问题 Is it possible to animate the saturation of an image (e.g. png) over time? For example from grayscale to full color. Plus if I can use an Interpolator. I have seen the EffectFactory and the ColorMatrix classes but I cannot combine them with an animation/transition. E.g. applying grayscale saturation on a Drawable drawable : ColorMatrix matrix = new ColorMatrix(); matrix.setSaturation(0); ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix); drawable.setColorFilter(filter); and

How to finish an activity when transition is done Android

余生颓废 提交于 2019-12-06 15:42:12
i want to end a previous activity after the transition between 2 activities is completed i have tried ActivityCompat.finishAfterTransition(this); but it actually finishes the activity before the transition is done i have looked into this solution before but i couldn't understand the answer to it , it would be swell if someone can explain how to end an activity after the transition is done Updates : i just tried starting the next activity like this Intent intent = new Intent(LoginActivity.this, TaskActivity.class); startActivity(intent); the onStop code will be activated but when i use this