Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm using android studio in Kotlin. I am trying to figure out how to call a toast to print text after the user clicks on
I'm using android studio in Kotlin. I am trying to figure out how to call a toast to print text after the user clicks on an item in a spinner. I have it working on the initial choice of fruit and flower but i am unsure of how to continuously display the toast text after each click, thank you This is my code for this particular activity.
class FavoriteActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_favorite) val goback = findViewById9 flowers fruits flower fruits favoritespinner
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