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… Read More »
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… Read More »
We will go straight to the code. This is the layout containing the EditText and the Button.