Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Liveeventbus | 3,051 | 2 years ago | 2 | May 07, 2021 | 90 | apache-2.0 | Java | |||
:mailbox_with_mail:EventBus for Android,消息总线,基于LiveData,具有生命周期感知能力,支持Sticky,支持AndroidX,支持跨进程,支持跨APP | ||||||||||
Geeknews | 225 | 3 years ago | Kotlin | |||||||
An MVVM practice app that uses Kotlin, DataBinding, LiveData, ViewModel and Room. The app's data source is from https://gank.io/api | ||||||||||
Elegantbus | 215 | 17 days ago | apache-2.0 | Java | ||||||
🔥🔥Android 平台,基于LivaData的EventBus,无侵入,更优雅,支持跨进程,跨应用粘性事件,优先级,自定义事件等功能。 | ||||||||||
Livedatabinding | 106 | 5 years ago | 2 | mit | Kotlin | |||||
Kotlin example with LiveData and Data Binding usage | ||||||||||
Awesomegithub | 59 | 3 years ago | apache-2.0 | Kotlin | ||||||
🔥Android Github客户端,基于组件化开发,支持账户密码与认证登陆。使用Kotlin语言进行开发,项目架构是基于JetPack&DataBinding的MVVM;项目中使用了Arouter、Retrofit、Coroutine、Glide、Dagger与Hilt等流行开源技术。 | ||||||||||
Todolistziro | 52 | 3 years ago | Kotlin | |||||||
ZIRO MEANS ZERO No more cutty commissions On our platform, we don’t charge Captains any per trip commissions—zero. When you drive with us we’re on equal footing, so why should we take away from what you earn? Plus, we have the lowest booking fee compared to those being collected by other ridesharing companies. | ||||||||||
Bloglist | 45 | 2 years ago | 52 | |||||||
我的博文列表,按系列分类,方便查找。地址:https://flywith24.gitee.io/ | ||||||||||
Popularmovies | 22 | 3 years ago | n,ull | Kotlin | ||||||
Discover the most popular movies playing with this Android App | ||||||||||
Android Links | 21 | 2 days ago | apache-2.0 | |||||||
Manually curated collection of resources for android developers. | ||||||||||
Weathyandroid | 19 | a year ago | 4 | Kotlin | ||||||
웨디의 안드로이드 저장소 ⭐️ 힘차게 가보으자 🚀 |
build.gradle
allprojects {
repositories {
//...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Flywith24:WrapperLiveDataDemo:1.0.2'
}
1.0.2
1.0.1 onLoading
LiveData [] SnackBarNavigation LiveDataSingleLiveEvent
class ListViewModel : ViewModel {
private val _navigateToDetails = MutableLiveData<Event<String>>()
val navigateToDetails : LiveData<Event<String>>
get() = _navigateToDetails
fun userClicksOnButton(itemId: String) {
_navigateToDetails.value = Event(itemId) // Trigger the event by setting a new Event as a new value
}
}
myViewModel.navigateToDetails.observe(this, Observer {
it.getContentIfNotHandled()?.let { // Only proceed if the event has never been handled
startActivity(DetailsActivity...)
}
})
// LiveData<Event<T>> EventLiveData<T>
typealias EventMutableLiveData<T> = MutableLiveData<Event<T>>
typealias EventLiveData<T> = LiveData<Event<T>>
typealias
// MutableLiveData<Event<Boolean>>(Event(false))
val eventContent = EventMutableLiveData<Boolean>(Event(false))
kotlin
demo LiveData LiveData<Boolean>
EventLiveData<Boolean>
onChanged Toast
typealias +
demo