So we need to customize the layout(shown in below image) where one Spinner is placed below the TextView and the other spinner is below the first spinner.Īs the options inside the second Spinner will depend on what we select in the first Spinner, hence initially the second spinner will be hidden and it will only appear when user has selected one option from the first spinner. The main layout of the application will contain our one TextView and two spinners as its child component views. In this tutorial, we are going to create an application that works with two Spinners, which are inder-dependent. So let's checkout an example and learn how we can implement it in our Android App. You have already studied about what Spinners are and how they work. Android SDK Manager & required Packages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |