Answered step by step
Verified Expert Solution
Link Copied!

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 = findViewById
9 flowers fruits flower fruits favoritespinner

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

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

purchased equipment costing $ 100000 0 answers

Answered: 1 week ago