amar_1995
11/13/2019, 9:27 AMsetContentView
which is responsible to load xml layout and setContent
in single activity class ?Luca Nicoletti
11/13/2019, 9:37 AMsetContent
is calling setContentView
internally so it will override itamar_1995
11/13/2019, 10:39 AMLuca Nicoletti
11/13/2019, 10:40 AMMichal Bacik
11/13/2019, 12:52 PM@GenerateView
annotation that will generate a view from @Composable
function, then you'll be able to mix compose with classic view hierarchy.Luca Nicoletti
11/13/2019, 12:53 PMMichal Bacik
11/13/2019, 12:55 PMamar_1995
11/13/2019, 12:58 PMMichal Bacik
11/13/2019, 1:01 PMamar_1995
11/13/2019, 1:05 PMsetContentView(R.layout.main_login)
setContent {
MaterialTheme(
colors = lightThemeColors,
typography = themeTypography
) {
MonitorScreenCompose(id, applicationContext, this)
}
}
In above code there is one layout and other one is compose ui. I want to first display layout from xml and below that layout, I want to add compose ui.
Is it possible ?Luca Nicoletti
11/13/2019, 1:05 PMamar_1995
11/13/2019, 1:06 PMLuca Nicoletti
11/13/2019, 1:06 PMoverride
does not mean add to bottom
Adam Powell
11/13/2019, 1:34 PMsetContent
as a ViewGroup extension that you can try outLuca Nicoletti
11/13/2019, 1:35 PMAdam Powell
11/13/2019, 1:35 PMamar_1995
11/15/2019, 7:17 AM