Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 675 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 675 Bytes

base

页面基类 BaseActivity/BaseFragment 统一了子类初始化UI(onSetupUI)的位置

Gradle

repositories {
    maven { url "https://gitee.com/ezy/repo/raw/cosmo/"}
}
dependencies {
    implementation "me.reezy.cosmo:base:0.8.0"
}

使用

class MainActivity : BaseActivity(R.layout.activity_main) {

    override fun onSetupUI() {
         // TODO
    } 
}

class SimpleFragment: BaseFragment(R.layout.layout_simple) {

    override fun onSetupUI() {
         // TODO
    }

    override fun onLazyLoad() {
         // TODO
    }
}

LICENSE

The Component is open-sourced software licensed under the Apache license.