rxbinding 中的新功能。
我的架构是MVP。
我正在尝试在微调器中设置数组。但不能前进。
<string-array name="country_array">
<item>Nepal</item>
<item>India</item>
<item>Pakistan</item>
<item>Bangladesh</item>
<item>Bhutan</item>
<item>Iraq</item>
<item>Iran</item>
<item>Saudi Arabia</item>
</string-array>
//这是微调器类
<Spinner
android:id="@+id/et_country_name"
style="@style/SpinnerTheme"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30dp"
android:focusable="false"
android:paddingLeft="@dimen/_40sdp" />
//演示者类
class SignUpPresenter(private val signUpView: SignUpView, private val signUpModel: SignUpModel) {
private val compositeDisposable = CompositeDisposable()
fun onCreateView() {
onClick()
}
private fun setSpinnner(){
RxAdapterView.itemSelections...........................
}