Last active
March 2, 2018 12:58
-
-
Save sharifulislam52/f8aa2bf75512c40c1eb49d361a54110c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Transparency 0% to 100% --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fillAfter="true"> | |
<alpha | |
android:duration="@android:integer/config_longAnimTime" | |
android:fromAlpha="0.0" | |
android:toAlpha="1.0" | |
android:interpolator="@android:anim/accelerate_interpolator" /> | |
</set> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Animation animation = AnimationUtils.loadAnimation(your_Activity.getApplicationContext(),R.anim.animation_xml_file); | |
AnyView target_view = (AnyView)findViewById(R.id.target_view_id); | |
target_view.startAnimation(animation); | |
// animation, your_Activity, animation_xml_file, AnyView, target_view, target_view_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment