Question: Using Java, in ANDROID STUDIO, there is a clicker game that has to be made. The following image is an example: What I need the
Using Java, in ANDROID STUDIO, there is a clicker game that has to be made. The following image is an example:

What I need the code for is for:
When I click the cookie ImageView, a +1 animation appears at a random place within the ImageView. I created a textview which says +1 in my MainActivity using LayoutParams and ConstraintSet. Given that newLayout is this textview I created in my mainActivity, I need to make this textview (which says +1) translate to random locations and then fade afterwards. I need to use TranslateAnimation to make it move to the areas and then AlphaAnimation to make it fade out. When the animation is finished, I also need to remove the View. I am pretty sure you need an animationListener (which will have the onAnimationEnd method), where the View can be removed using the removeView call.
2 cookies per second :o 2 cookies per second :o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
