Rx小吃店 这是Android Snackbar的RxJava / RxKotlin适配器 用法 Kotlin Observable .just( true ) .withNextSnackBar(view, " Data is coming! " ) // will show "Number is comming!" .subscribe() // will show "Some data" and Undo action Observable .just( " Some data " ) .withNextSnackBar(view, actionName = " Undo " ) { view -> someUndoAction() } .subscribe() 安装 Gradle allprojects { repositories {