# # hikage-widget-androidx

This is a Hikage extension dependency for Jetpack Compact component-related features.

## # Configure Dependency

You can add this module to your project using the following method.

### # 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 inherits the available components from Jetpack Compact, which you can directly reference to use in Hikage.

> 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
        }
    }