38 lines
1.1 KiB
Kotlin
38 lines
1.1 KiB
Kotlin
package com.cadoles.arcast_player
|
|
|
|
import android.content.Intent
|
|
import android.os.Bundle
|
|
import androidx.activity.ComponentActivity
|
|
import androidx.activity.compose.setContent
|
|
import androidx.compose.foundation.layout.fillMaxSize
|
|
import androidx.compose.material3.MaterialTheme
|
|
import androidx.compose.material3.Surface
|
|
import androidx.compose.material3.Text
|
|
import androidx.compose.runtime.Composable
|
|
import androidx.compose.ui.Modifier
|
|
import androidx.compose.ui.tooling.preview.Preview
|
|
import com.cadoles.arcast_player.ui.theme.ArcastplayerTheme
|
|
import org.gioui.GioActivity
|
|
|
|
class MainActivity : ComponentActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
startActivity(Intent(this, GioActivity::class.java))
|
|
}
|
|
}
|
|
|
|
@Composable
|
|
fun Greeting(name: String, modifier: Modifier = Modifier) {
|
|
Text(
|
|
text = "Hello $name!",
|
|
modifier = modifier
|
|
)
|
|
}
|
|
|
|
@Preview(showBackground = true)
|
|
@Composable
|
|
fun GreetingPreview() {
|
|
ArcastplayerTheme {
|
|
Greeting("Android")
|
|
}
|
|
} |