Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
Students Have Also Explored These Related Databases Questions!