Skip to content

AndroidCore make you get the most rapid development.

Notifications You must be signed in to change notification settings

yzzzd/androidcore-lite

Repository files navigation

androidcore-lite

AndroidCore make you get the most rapid development.

Release

Download

Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and:

dependencies {
    implementation 'com.nuryazid:androidcore-lite:{latest version}'
}

Usage

1. Extend CoreActivity

To get DataBinding and ViewModel implementation

class HomeActivity : CoreActivity<ActivityHomeBinding, HomeViewModel>(R.layout.activity_home) {
  override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // auto generate binding and viewModel variable
        binding.lifecycleOwner = this
        binding.viewModel = viewModel
  }
}

2. Extend BasicActivity

To get DataBinding without ViewModel implementation

class HomeActivity : BasicActivity<ActivityHomeBinding>(R.layout.activity_home) {
  override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // auto generate binding variable
        binding.lifecycleOwner = this
  }
}

License

Licensed under the Apache License, Version 2.0,

About

AndroidCore make you get the most rapid development.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages