Skip to content

Any plan to improve this library? #2

@haok3166

Description

@haok3166

Stevia.kt is brilliant for UI layout on Android. However, it is not perfect, for instance, I-password-forgot-I, only layout horizontally for first item.
// code snippet from the lib
// Embedded Horizontal layout.
(item as? Array)?.let { horizontalLayout ->

// Take first "View" type in the array to layout.
var secondItem = if (horizontalLayout.count() > 1) horizontalLayout[1] else null
var firstView = (horizontalLayout.firstOrNull() as? View)
        ?: (secondItem as? View)
firstView?.let {
    layoutView(it)
}

}

The expecting result should be layout horizontally for all item.

Is there any plan to improve this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions