Comments (1)
i know it's too late but maybe this be useful, so just add this to fragmentA(which list is there):
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
postponeEnterTransition()
val parentView = view.parent as ViewGroup
parentView.viewTreeObserver
.addOnPreDrawListener(object : ViewTreeObserver.OnPreDrawListener {
override fun onPreDraw(): Boolean {
parentView.viewTreeObserver.removeOnPreDrawListener(this)
startPostponedEnterTransition()
return true
}
})
super.onViewCreated(view, savedInstanceState)
}
from shared-element-transitions.
Related Issues (13)
- Method Missing HOT 1
- resize when back HOT 1
- Fragment to Activity Transiction HOT 1
- android ActivityOptions.isReturning() NullPointerException
- How to add more transition names
- blinking and flashing in fragment navigation component
- Simplifications for SimpleActivity sample HOT 6
- Unnecessarily complexity in RecyclerView sample HOT 1
- New Fragment added on top of previous one each time the activity is recreated HOT 2
- Gorilla is under a text in "Fragment to fragment" sample.
- postponeEnterTransition() does not work in "Picasso Fragment to Fragment" sample. HOT 5
- Flash fix does not works on Android 7.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shared-element-transitions.