Skip to content
xiaojinzi123 edited this page Jun 26, 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_en Not AndroidX please see Dependence and Config

Use Annotation to mark Activity

进阶配置请查看 RouterAnno Annotation

@RouterAnno( host = "app", path = "info" ) public class InfoAct extends AppCompatActivity { // ...... }

First Routering

More usage please see Code routering or Api routering

Router.with(context)
      .host("app")
      .path("info")
      .navigate();

Routering fail?

Clone this wiki locally