hikage-widget-androidx
This is a Hikage declaration dependency for Jetpack AndroidX components.
Configure Dependency
You can add this module to your project using the following method.
We recommend that you first refer to hikage-bom to use BOM for unified version management.
Version Catalog (Recommended)
Add dependency in your project's gradle/libs.versions.toml.
[versions]
hikage-widget-androidx = "<version>"
[libraries]
hikage-widget-androidx = { module = "com.highcapable.hikage:hikage-widget-androidx", version.ref = "hikage-widget-androidx" }Configure dependency in your project's build.gradle.kts.
implementation(libs.hikage.widget.androidx)Please change <version> to the version displayed at the top of this document.
Traditional Method
Configure dependency in your project's build.gradle.kts.
implementation("com.highcapable.hikage:hikage-widget-androidx:<version>")Please change <version> to the version displayed at the top of this document.
Function Introduction
This dependency declares the available components from Jetpack AndroidX that you can directly reference and use in Hikage.
You need to manually introduce the relevant dependencies of Jetpack AndroidX as needed, this dependency does not provide automatic introduction of related dependencies.
Tips
This dependency needs to be used in conjunction with hikage-gradle-plugin, the plugin will automatically read the view declaration files in the dependency and generate corresponding Hikage layout component functions (Hikage Performer) in the current module through hikage-compiler.
The following example
LinearLayoutCompact(
lparams = LayoutParams(matchParent = true) {
topMargin = 16.dp
},
init = {
orientation = LinearLayoutCompat.VERTICAL
gravity = Gravity.CENTER
}
) {
AppCompatTextView {
text = "Hello, World!"
textSize = 16f
gravity = Gravity.CENTER
}
}99abe3c-Bump hikage-core, hikage-extension, hikage-extension-betterandroid, hikage-extension-compose, hikage-compiler, hikage-widget-androidx, hikage-widget-material version to 1.0.0