0

哪个包包含 WidgetObservable?我从 JakeWharton/RxBinding 添加了所有可能的包,但 WidgetObservable 在代码中仍然不可用

构建.gradle

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.0'
testCompile 'junit:junit:4.12'
compile 'com.jakewharton:butterknife:8.4.0'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'io.reactivex:rxjava:1.2.0'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-support-v4:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-design:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-leanback-v17:0.4.0'}
4

1 回答 1

0

WidgetObservable除其他外,已被 ie 取代RxView。“ WidgetObservable 和 ViewObservable 已被纳入(并改进)RxBinding”问题指出:

这整个库是替代品。例如, RxView.clicks(view) 为任何视图提供点击事件。

于 2016-09-26T10:31:42.947 回答