productlist = ObservableArrayList() 下拉列表数据
itemPosition = ObservableInt(0) 选择的item的索引
android:prompt="@{请选择
}" 这个没有起作用
<androidx.appcompat.widget.AppCompatSpinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:entries="@{vm.dropDownList}"
android:prompt="@{`请选择`}"
android:selectedItemPosition="@={vm.itemPosition}"
/>