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:

Using Java, in ANDROID STUDIO, there is a clicker game that has

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!