Android: Jetpack Compose and XML in Activity

If you want to use a Compose in your XML file, you can add this to your layout file: <androidx.compose.ui.platform.ComposeView android:id=”@+id/my_composable” android:layout_width=”wrap_content” android:layout_height=”wrap_content” /> and then, set the content: findViewById<ComposeView>(R.id.my_composable).setContent { MaterialTheme { Surface { Text(text = “Hello!”) } } } If you want the opposite, i.e. to use an XML file in your compose, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)