Tag Archives: requestFocus

How to hide and show a Fragment with animation in Android? and How to retain a state in a Fragment in Android?

Hello everyone This posts helps you to hide and show a fragment with animation (without XML files animation). And also it shows how to retain a saved state(for eg: a value in a textview). A little about Fragments A Fragments is an independent component which can be connected to an activity. A Fragment typically defines a part of… Read More »

How to create a rotate 3D Animation between a ListView and an ImageView in Android?

At first we will create a class called “Rotate3dAnimation” which is responsible for the 3D Animation. The Rotate3dAnimation.java looks like this. The Matrix class holds a 3×3 matrix for transforming coordinates. Matrix does not have a constructor, so it must be explicitly initialized using either reset() – to construct an identity matrix, or one of the set..() functions… Read More »