Gustavo Barbosa Barreto
12/04/2023, 9:21 AMSaeed Darvish
12/04/2023, 10:50 AMAndroidViewBinding
you can load fragments to a compose.
@Composable
fun LoginFragmentViewBindingExample() {
AndroidViewBinding(LoginViewBinding::inflate) {
exampleView.setBackgroundColor(Color.GRAY)
}
}
Saeed Darvish
12/04/2023, 10:51 AMSaeed Darvish
12/04/2023, 10:51 AMGustavo Barbosa Barreto
12/04/2023, 11:01 AMSaeed Darvish
12/04/2023, 11:06 AMNavHost(navController = navController, startDestination = "profile") {
composable("profile") { Profile(/*...*/) }
composable("loginActivity") { /* Start activity here* }
/*...*/
}
Gustavo Barbosa Barreto
12/04/2023, 11:10 AMEnol Simón
12/04/2023, 2:07 PMGustavo Barbosa Barreto
12/04/2023, 6:32 PMEnol Simón
12/06/2023, 9:02 AM