Skip to content
xiaojinzi123 edited this page Jul 7, 2019 · 40 revisions

Foreword

Welcome to Component Wiki, Here you will get more infomation aboat Component.

If you have some questions after reading, please commit your issue.

Here will describe how to set up project with least code.

Config

If you use Androidx, please see Dependence and Config AndroidX Not AndroidX please see Dependence and Config

Use Annotation to mark Activity

Advanced Use see RouterAnno Annotation

@RouterAnno(
        host = "app", //  host is optional, default host is the value which you config in build.gralde
        path = "info"
)
public class InfoAct extends AppCompatActivity {
// ......
}

First Routering

More usage please see code routering or api routering

Router.with().hostAndPath("app/info").navigate();

Routering fail?

Clone this wiki locally