【问题标题】:What package contains RxBinding WidgetObservable?什么包包含 RxBinding WidgetObservable?
【发布时间】:2016-09-26 10:19:24
【问题描述】:

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

build.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'}

【问题讨论】:

    标签: android android-studio rx-java rx-android rx-binding


    【解决方案1】:

    WidgetObservable 等被 RxView 取代。 "WidgetObservable and ViewObservable have been rolled into (and improved in) RxBinding" 问题指出:

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

    【讨论】:

      猜你喜欢
      • 2011-08-18
      • 2013-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多