Check out example codes for "android java xml combo box". It will help you in understanding the concepts better.

Code Example 1

<androidx.appcompat.widget.AppCompatSpinner
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/spinner" />

Learn ReactJs, React Native from akashmittal.com