Exception or error: Is there a way to animate only the TextView’s text size without scaling the entire TextView’s layout? Am trying to achieve a similar effect, Note the text re-sizes to a single line while its size becomes smaller. How to solve: This could be achieved with a ValueAnimator and from the top of …
Tag: animation
animation – Stop AnimatorSet of ObjectAnimators in Android-ThrowExceptions
Exception or error: Im trying to stop the animation of an ImageView when a button is clicked. The animation I am using is an AnimatorSet consisting of 5 ObjectAnimators… The problem is that I can’t figure how to stop and clear this animation from the ImageView when the button is clicked as btn.clearAnimation() obviously doesn’t …
android – Animate visibility of a view from gone to visible with animation-ThrowExceptions
Exception or error: I have a view that is invisible by default(Just for the first time). Now I need to switch the visibility to VISIBLE with this animation: if (myView.getVisibility() == View.INVISIBLE) { myView.setVisibility(View.VISIBLE); myView.animate().translationY(0); } (Like the SnackBar default animation) But this isn’t working. It will turn visible with default animation Is there any …
android – How to connect multiple recyclerview or fragment for animation like shown-ThrowExceptions
Exception or error: One of my client recently came up with a strange inspiration, which we really wants to integrate in his application I am trying my hard to achieve this but I am really confused. Can somebody just guide me the steps to achieve this type of transition with animation. Let me just ask …
android – Animation between Activities and shared views: glitchy/hack at the ends of animation?-ThrowExceptions
Exception or error: So, the problem I am facing is that the animation I do between two Activities and two shared views is not looking great. The problem is that its “glitchy”, when going from Activity2 back to Activity1, the TextViews being shared sort of blinks at the end of the animation, revealing the “bigger …
android – Simple tween animation example-ThrowExceptions
Exception or error: I’m trying to implement the “hyperspace” tween animation described at http://developer.android.com/guide/topics/resources/animation-resource.html (“Animation Resources”) – however it does not seem to work as written. When I run the application, I just get a blank view below the application title bar. What am I doing wrong? Per the example, here is my code. I’ve …
android – Animations and setVisibility-ThrowExceptions
Exception or error: I have a LinearLayout that I want to be able to show/hide by clicking on a “more details” link. I do this by calling moreDetailsSection.setVisibility(View.VISIBLE); or moreDetailsSection.setVisibility(View.GONE); to show/hide it. This works fine, but I wanted to add an animation that makes the layout fields slide in nicely, but this is only …
android – Set animation listener to Activity animations-ThrowExceptions
Exception or error: I am using overridePendingTransition method to perform custom Activity animations. I would like to know when the animation ends ( a callback/listener ). Is there any direct way of achieving this, if not please suggest me some work around. How to solve: overridePendingTransition does not have a listener. Like I wrote an …
android – java.lang.RuntimeException: Unknown animation name: objectAnimator-ThrowExceptions
Exception or error: I am getting this error when using getActivity().getSupportFragmentManager() .beginTransaction() .setCustomAnimations( R.animator.card_flip_right_in, R.animator.card_flip_right_out, R.animator.card_flip_left_in, R.animator.card_flip_left_out) .replace(R.id.content_fragment, new DaysSinceBirthSettingFragment()) .addToBackStack(null) .commit(); But when i change it to getActivity().getFragmentManager() .beginTransaction() .setCustomAnimations( R.animator.card_flip_right_in, R.animator.card_flip_right_out, R.animator.card_flip_left_in, R.animator.card_flip_left_out) .replace(R.id.content_fragment, new DaysSinceBirthSettingFragment()) .addToBackStack(null) .commit(); It works perfect. but i need to support older version, so i have to use …