Spinner
Spinner is used to create drop-down list in the android application. Spinner contains set of items and we can display items when we click on it.
Suppose if we want to make a drop-down list in which we have to choose one country from the set of country then we use Spinner concept.
Syntax of Spinner-
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/spr"
tools:ignore="MissingConstraints"></Spinner>
Spinner can be implemented in two different ways-
1.Default Spinner-
By default Spinner widget we can create only Single column dropdown list.
2.Custom Spinner
Comments
Post a Comment