We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// MainActivity findViewById<View>(R.id.tv_hello).setOnClickListener { TheRouter.build("second") // .withString("name", "zhangsan") .navigation(this) } @Route(path = "second") class SecondActivity : AppCompatActivity() { @Autowired(required = true) var name: String = "" override fun onCreate(savedInstanceState: Bundle?) { TheRouter.inject(this) super.onCreate(savedInstanceState) enableEdgeToEdge() setContentView(R.layout.activity_second) ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets -> val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()) v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom) insets } findViewById<TextView>(R.id.tv_result).text = name } }
The text was updated successfully, but these errors were encountered:
预期应该是会 crash,但是一切正常显示空字符串
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: