-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add BootstrapLayout #151
Comments
BTW, there is iconics library from Mike Penz, which do like to user as inner content of button. |
I think it makes more sense to put the BootstrapButton into a custom ViewGroup than to make it extend one. The BootstrapButtonGroup has some limited support for grouping buttons (but doesn't support any other views, and has quite a limited API that doesn't let you change colors individually). It might even make sense to implement the whole Bootstrap grid system as a ViewGroup if we're going down this route. But I suspect that would take quite a bit of work. Also this library supports custom fonts - at the minute only Typicon and FontAwesome are included by default, but it's possible to add your own. |
I need ViewGroup with rounded corners in bootstrap-style colors. |
There is BootstrapButton view, which (as I understood) acts like an TextView and supports text and FontAwesome icons inside.
But it doesn't support custom view inside.
Use-case: I want to put color-selector anchor to the right side of the button.
So I suggest to create so-called "BootstrapLayout" which will act like and ViewGroup and provide basic functionality:
In other words, the same as BootstrapButton does, but without text="..." attribute.
Then BootstrapButton can be inherited from BootstrapLayout,
via defining TextView or AwesomeTextView inside.
Main idea - that I need clickable custom view with standard borders + rounded + disable flag for my custom content.
The text was updated successfully, but these errors were encountered: