mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-06 18:55:32 +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.API_VERSION_NAME}(${YukiReflection.API_VERSION_CODE})"
|
yukiReflectionVersionText.text = "YukiReflection 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.API_VERSION_NAME}(${YukiReflection.API_VERSION_CODE})"
|
val currentVersion = "YukiReflection 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(),
|
||||||
|
Reference in New Issue
Block a user