Question
Create an application in Android Studio using the XML document provided below and the video demo https://watch.screencastify.com/v/cGwSMTeNi53Bpzdo2hRK) Displays a text view Select the Stream of
Create an application in Android Studio using the XML document provided below and the video demo
https://watch.screencastify.com/v/cGwSMTeNi53Bpzdo2hRK)
Displays a text view "Select the Stream of your Choice" and a ListView with four elements: "Science", "Accounting", "Arts", and "Computing Science (use Array Adapter)
Add a long click listener on the items in ListView, which will show an AlertDialog
setTitle Course details
setMessage
name of the Stream selected.
Courses that you can take (Check Video or picture)
If "Science" is selected display "Physics, Chemistry", "Atmospheric Sciences", "Soil ecology."
If "Accounting" is selected display "Commerce","Economics", "Maths", "Statistics."
If "Arts" is selected display " Sociology ","Political Science", "History", "Psychology."
If "Computing Science" is selected display " Maths ","Programming 1 ", "Microeconomics", "Professional Writing.
Set the positive button.
Set the title of the button as "Add to schedule" and display a Toast message on its click (Courses Successfully added to schedule) to indicate that the courses have been added to the schedule successfully.
Set the neutral button.
Set the title of the button as "Select again" and on its click, simply dismiss the AlertDialog.
Test your app to make sure it works as expected.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started