Spinner | Android Studio | Java
Spinner Example | Android Studio | Java In this tutorial, we will learn how to use Spinner. Android spinner is like the drop-down menu with multiple values from which the end-user can select only one value. Android spinner is associated with AdapterView. So you need to use one of the adapter classes with spinner. We will select an item from the Spinner and set it to the TextView. >>Watch For Kotlin Step 1: Create a new project OR Open your project Step 2: Code activity_main.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:app= "http://schemas.android.com/apk/res-auto" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" android:padding= "5dp" tools:context= ".MainActivity"