enoler/imovil2014 — pull request #27 by Naroh091 (2014-04-09 21:29:51+00:00)
Title: Animations available for everyone

Animation method added to BaseExerciseFragment, now you can call _showAnimationAnswer(boolean)_ from your fragment to show an animation after checking if the user input is correct or not. The method receives a boolean value, true if the user's answer is correct, false otherwise.

In order to make the animation work your layout must have two new views: a RelativeLayout (another type would work too) with an ImageView inside. The ID of the RelativeLayout must be "_result_", and the ImageView ID must be "_resultImage_". Anyway, you don't have to reference those views in your Java code, that part is managed by the BaseExerciseFragment.

An example of the implementation working is available in my fragment and layout, HexadecimalExerciseFragment.