mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-07 11:09:52 +08:00
feat: update demo
This commit is contained in:
@@ -47,7 +47,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
ActivityMainBinding.inflate(layoutInflater).apply {
|
ActivityMainBinding.inflate(layoutInflater).apply {
|
||||||
setContentView(root)
|
setContentView(root)
|
||||||
yukiReflectionVersionText.text = "YukiReflection Version: ${YukiReflection.VERSION}"
|
yukiReflectionVersionText.text = "${YukiReflection.TAG} Version: ${YukiReflection.VERSION}"
|
||||||
testObjectDirectlyButton.setOnClickListener {
|
testObjectDirectlyButton.setOnClickListener {
|
||||||
tipText.text = Main("I am directly call of new object").getContent()
|
tipText.text = Main("I am directly call of new object").getContent()
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ import com.highcapable.yukireflection.type.java.StringClass
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun MainLayout() {
|
fun MainLayout() {
|
||||||
val currentVersion = "YukiReflection Version: ${YukiReflection.VERSION}"
|
val currentVersion = "${YukiReflection.TAG} Version: ${YukiReflection.VERSION}"
|
||||||
val operationState = remember { mutableStateOf("Waiting for your operation") }
|
val operationState = remember { mutableStateOf("Waiting for your operation") }
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize(),
|
||||||
@@ -135,7 +135,7 @@ fun MainLayout() {
|
|||||||
fun main() = application {
|
fun main() = application {
|
||||||
Window(
|
Window(
|
||||||
onCloseRequest = ::exitApplication,
|
onCloseRequest = ::exitApplication,
|
||||||
title = "YukiReflection",
|
title = YukiReflection.TAG,
|
||||||
resizable = false,
|
resizable = false,
|
||||||
state = rememberWindowState(width = 450.dp, height = 600.dp)
|
state = rememberWindowState(width = 450.dp, height = 600.dp)
|
||||||
) { MaterialTheme(colorScheme = MaterialTheme.colorScheme.copy(primary = Color(0xFF31A4FF.toInt()))) { MainLayout() } }
|
) { MaterialTheme(colorScheme = MaterialTheme.colorScheme.copy(primary = Color(0xFF31A4FF.toInt()))) { MainLayout() } }
|
||||||
|
Reference in New Issue
Block a user