hikage-extension-compose
This is a Hikage extension dependency for Jetpack Compose component-related features.
Configure Dependency
You can add this module to your project using the following method.
Notice
This module relies on the Jetpack Compose compiler plugin. Please make sure that your project has integrated Jetpack Compose-related dependencies. Please refer to here for details.
SweetDependency (Recommended)
Add dependency in your project's SweetDependency
configuration file.
libraries:
com.highcapable.hikage:
hikage-extension-compose:
version: +
Configure dependency in your project build.gradle.kts
.
implementation(com.highcapable.hikage.hikage.extension.compose)
Traditional Method
Configure dependency in your project build.gradle.kts
.
implementation("com.highcapable.hikage:hikage-extension-compose:<version>")
Please change <version>
to the version displayed at the top of this document.
Function Introduction
You can view the KDoc click here.
Use Jetpack Compose in Hikage
You can use the following methods to embed Jetpack Compose components in a Hikage layout.
The following example
Hikageable {
ComposeView(
lparams = LayoutParams(matchParent = true)
) {
Text("Hello, World!")
}
}
Use Hikage in Jetpack Compose
You can use the following methods to embed Hikage components in a Jetpack Compose layout.
The following example
Column(
modifier = Modifier.fillMaxSize()
) {
HikageView {
TextView(
lparams = LayoutParams(matchParent = true)
) {
text = "Hello, World!"
textSize = 20f
}
}
}