Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to improve this library? #2

Open
haok3166 opened this issue Jan 6, 2020 · 0 comments
Open

Any plan to improve this library? #2

haok3166 opened this issue Jan 6, 2020 · 0 comments

Comments

@haok3166
Copy link

haok3166 commented Jan 6, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant