Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Having difficulty getting the code to work when the device is rotated, plus lots of bugs in my code, so hoping for a better aolution

Having difficulty getting the code to work when the device is rotated, plus lots of bugs in my code, so hoping for a better aolution
Introduction
In this assignment, you will create a movie application where users can explore movies based on different genres. For example, users can select "comedy" and view a list of comedy movies. You have the freedom to choose any genre for this assignment. While you have the flexibility to select your favorite color for the application, all layout and functionalities should remain consistent with the provided video demonstration.
Part 1: Create MainActivity and Movies List Fragment (30 points) Develop a list fragment to showcase the chosen movies. Users should be able to select any movie from the list by clicking on the item. Customize the text color and style within the list, and change the background color of the list item. Ensure that the selected list item is highlighted when clicked.
Part 2: Fragments in Pager Viewer (30 points)
Create two fragments: Poster and Description. Users can navigate through these fragments by clicking on the tabs at the top or by swiping right or left. The poster fragment should display the poster of the selected movie, while the description fragment should include details such as the movie's name, brief description, director, and stars.
Ensure that when a user selects a different movie item from the movie list fragment, the current fragment in the pager viewer (the current tab) is immediately refreshed.
Part 3: Movie Genres Options from Menu (30 points)
Implement a menu for users to select different genres. Provide at least three genres for users to choose from. Ensure that all fragments (poster and description) are promptly refreshed when the genre is changed. Additionally, ensure that the first item is selected by default when switching to a new genre.
Part 4: Handle Landscape (10 points)
Ensure that the application's functionality remains consistent in landscape mode. Refer to the provided video demonstration for the landscape layout, and ensure that the current user-selected item is retained.
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

Modern Datalog Engines In Databases

Authors: Bas Ketsman ,Paraschos Koutris

1st Edition

1638280428, 978-1638280422

More Books

Students also viewed these Databases questions

Question

Comment should this MNE have a global LGBT policy? Why/ why not?

Answered: 1 week ago