googlearchive / android-activityscenetransitionbasic Goto Github PK
View Code? Open in Web Editor NEWMigrated:
Home Page: https://github.com/android/animation
Migrated:
Home Page: https://github.com/android/animation
During the shared element transition, the ImageView
is animated perfectly. However, the TextView
does not animate smoothly across the two Activities. For example, at the end of the enter transition, the TextView
abruptly increases in size. Also, at the end of the return transition, the TextView
abruptly shrinks in size. At the very beginning of the return transition, the entire TextView
is abruptly clipped to its original bounds in the main grid activity.
In other words, the sample does not properly animate the TextView
's text size property during the shared element transition... and it seems like overall using a ChangeBounds
transition is not ideal for use with TextView
s that have different text sizes and layout bounds in either Activity. I am reporting this as a bug because it is not clear whether or not it is intentional.
A video of the buggy behavior is illustrated in this screen capture video: http://youtu.be/oLhhy8o7xQc
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Affected Modules: Application
Hi, I have seen this your demo, But can I achieve this Scene Transition animation on the map marker. Please, the map image with the marker (Yeats), I want to perform shared Transition animation on the maker click, We are using below code in Scene Transition animation.
ActivityOptionsCompat activityOptions = ActivityOptionsCompat.makeSceneTransitionAnimation();
this method takes sharedElement (view), but in the case of google map marker, we can not send Marker object in this method.
anyone guide me how can I perform shared Transition on map marker click
Request a fragment transition sample like this. Samples on the internet are mostly for activities. However, I can't really find samples about shared transition and enter/exit/return transition for fragments.
The SampleTests.java
file does not compile.
Was this tests package committed to the project by accident? Because the tests don't do much, and I don't know what purpose they serve even if they did compile properly.
Deleting the SampleTests.java
file fixed the problem for me.
The new version of the ActivitySceneTransition has appeared in the Android 5.0 SDK Samples.
Unfortunately, it is broken and does not start.
E/AndroidRuntime( 5964): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.activityscenetransitionbasic/com.example.android.activityscenetransitionbasic.MainActivity}: java.lang.RuntimeException: Unknown scene name: moveImage
E/AndroidRuntime( 5964): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
E/AndroidRuntime( 5964): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
E/AndroidRuntime( 5964): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime( 5964): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
E/AndroidRuntime( 5964): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5964): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5964): at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 5964): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5964): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5964): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 5964): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime( 5964): Caused by: java.lang.RuntimeException: Unknown scene name: moveImage
E/AndroidRuntime( 5964): at android.transition.TransitionInflater.createTransitionFromXml(TransitionInflater.java:177)
E/AndroidRuntime( 5964): at android.transition.TransitionInflater.createTransitionFromXml(TransitionInflater.java:181)
E/AndroidRuntime( 5964): at android.transition.TransitionInflater.inflateTransition(TransitionInflater.java:77)
E/AndroidRuntime( 5964): at com.android.internal.policy.impl.PhoneWindow.getTransition(PhoneWindow.java:3696)
E/AndroidRuntime( 5964): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3657)
E/AndroidRuntime( 5964): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:367)
E/AndroidRuntime( 5964): at android.app.Activity.setContentView(Activity.java:2144)
E/AndroidRuntime( 5964): at com.example.android.activityscenetransitionbasic.MainActivity.onCreate(MainActivity.java:50)
E/AndroidRuntime( 5964): at android.app.Activity.performCreate(Activity.java:5933)
E/AndroidRuntime( 5964): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 5964): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
E/AndroidRuntime( 5964): ... 10 more
W/ActivityManager( 745): Force finishing activity com.example.android.activityscenetransitionbasic/.MainActivity
moveImage
should be replaced by changeBounds
and changeImageTransform
.
the method View().setViewName(java.lang.String) used in MainActivity and DetailActivity,
but there no method setViewName(java.lang.String)
During the shared element transition, the ImageView
is animated perfectly. However, the TextView
does not animate smoothly across the two Activities. For example, at the end of the enter transition, the TextView
abruptly increases in size. Also, at the end of the return transition, the TextView
abruptly shrinks in size. At the very beginning of the return transition, the entire TextView
is abruptly clipped to its original bounds in the main grid activity.
In other words, the sample does not properly animate the TextView
's text size property during the shared element transition... and it seems like overall using a ChangeBounds
transition is not ideal for use with TextView
s that have different text sizes and layout bounds in either Activity. I am reporting this as a bug because it is not clear whether or not it is intentional.
A video of the buggy behavior is illustrated in this screen capture video: http://youtu.be/oLhhy8o7xQc
Is it possible to do such a thing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.