Anshulupadhyay03
04/01/2023, 2:08 PMclass MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val viewModel by viewModels<AdsViewModel>()
setContent {
AdsTheme {
// A surface container using the 'background' color from the theme
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colors.background
) {
// Greeting("Android")
AdsScreen(viewModel,{
NavigateShowAll(viewModel = viewModel)
} ,{
NavigateClickBuy(it)
})
}
}
}
}
}
@Composable
private fun NavigateShowAll(viewModel: AdsViewModel) {
AdsViewAllScreen(viewModel)
}
@Composable
private fun NavigateClickBuy(url: String) {
}
jw
04/01/2023, 2:31 PMAnshulupadhyay03
04/01/2023, 3:07 PMScott Kruse
04/01/2023, 3:54 PMAnshulupadhyay03
04/01/2023, 3:58 PMandylamax
04/03/2023, 9:56 AM