Part 1: change theme (50 pts) Using android studio. In this part,…
Question Answered step-by-step Part 1: change theme (50 pts) Using android studio. In this part,… Part 1: change theme (50 pts) Using android studio.In this part, you need to create a supported activity to change the theme. You can name the activity whatever you like (I called it SettingActivity). In addition, you need to download an icon which is used as the button to fire the SettingActivity. In the SettingActivity, there is a spinner for user to select different themes. There are four themes: Spring, Summer, Fall and winter. There is also a confirm button for user to confirm the selected theme. When the confirm button is pressed, the MainActivity will be shown on the foreground and the theme will be changed according to the user’s selection from the SettingActivity. Below is an example flow when user change the theme. (Note: all layout should look like the example below, but you are allowed to add new things or change font style or color).Part 2: remember the theme (40 pts)After the theme is changed, the new theme should be remembered. Thus, when the user goes back to the SettingActivity again, the default item on the spinner should be the most recent theme. Please see below for an example. (hint: you can use the spinner.setSelection(ITME_INDEX) to select spinner item). Note: your theme change should remain even when you terminate or restart your application or perform rotate. This means that after changing the theme, we will manually terminate your app by swiping the application page up, then we need to see our selected theme after relaunching your app.Part 3: handle rotation (10 pts)When you rotate your phone (from Portrait to Landscape), your theme should not get changed. For example, if the current theme is Winter, the theme also needs to be Winter when you rotate your phone. Below is an example. (Note: you are allowed to disable the profile picture on the Landscape mode due to the limited screen space). Engineering & Technology Computer Science CCCS 325 Share QuestionEmailCopy link Comments (0)


