feat: update demo

This commit is contained in:
2023-09-23 22:49:40 +08:00
parent a85b795a06
commit 373899ba5a
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
ActivityMainBinding.inflate(layoutInflater).apply {
setContentView(root)
yukiReflectionVersionText.text = "YukiReflection Version: ${YukiReflection.VERSION}"
yukiReflectionVersionText.text = "${YukiReflection.TAG} Version: ${YukiReflection.VERSION}"
testObjectDirectlyButton.setOnClickListener {
tipText.text = Main("I am directly call of new object").getContent()
}

View File

@@ -59,7 +59,7 @@ import com.highcapable.yukireflection.type.java.StringClass
@Composable
fun MainLayout() {
val currentVersion = "YukiReflection Version: ${YukiReflection.VERSION}"
val currentVersion = "${YukiReflection.TAG} Version: ${YukiReflection.VERSION}"
val operationState = remember { mutableStateOf("Waiting for your operation") }
Column(
modifier = Modifier.fillMaxSize(),
@@ -135,7 +135,7 @@ fun MainLayout() {
fun main() = application {
Window(
onCloseRequest = ::exitApplication,
title = "YukiReflection",
title = YukiReflection.TAG,
resizable = false,
state = rememberWindowState(width = 450.dp, height = 600.dp)
) { MaterialTheme(colorScheme = MaterialTheme.colorScheme.copy(primary = Color(0xFF31A4FF.toInt()))) { MainLayout() } }