Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Objective: Develop an Android application that demonstrates a day - night cycle animation using Android Studio. The app should have a gradual transition between day

Objective:
Develop an Android application that demonstrates a day-night cycle animation using Android Studio. The app should have a gradual transition between day and night, including the rotation of the sun and moon, as well as cloud movement.
Assets Required:
Day background image.
Night background image.
Sun image (with a transparent background in PNG format).
Moon image (with a transparent background in PNG format).
Cloud image (with a transparent background in PNG format).
Animation Logic:
Sun Animation:
The sun rotates in and out of the screen.
The rotation center for the sun and moon animations is set at the middle of the screen on the x-axis and at the bottom of the screen on the Y-axis.
Day-Night Transition:
The simulation begins in the middle of the day (the sun is in the middle of the x-axis).
While the sun is moving (clockwise), the day background remains apparent.
Gradually fade in the night background after the sun is out of the screen and start rotating the moon on the same path as the sun (also clockwise).
The moon will enter the screen from the left side and will move exactly like the sun and will leave the screen from the right side.
As the moon exits the screen, fade out the night background smoothly to show the day background.
Transition back to the day background with the sun's appearance.
Cloud Movement:
Have two cloud images moving in translation across the screen (on the x-axis).
One cloud should be above the sun and one behind it, so if the sun happens to be in the same position as the first cloud, the sun will be behind. And if the sun and the second cloud were in the same position, the cloud would be behind.
One of the clouds translation duration should be 8 seconds, the other cloud 12 seconds.
1
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

What is the command to find a file on a system?

Answered: 1 week ago

Question

7.3 Describe considerations in the preliminary applicant screening.

Answered: 1 week ago

Question

7.2 Explain the selection process.

Answered: 1 week ago