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

Cannot show or hide Bootstrap button (visibility change) #220

Open
CazimirRoman opened this issue Aug 14, 2018 · 4 comments
Open

Cannot show or hide Bootstrap button (visibility change) #220

CazimirRoman opened this issue Aug 14, 2018 · 4 comments

Comments

@CazimirRoman
Copy link

Hi,

Calling setVisibility(View.GONE) or setVisibility(View.VISIBLE) does not have any effect on a BootstrapButton object. Also setting these flags in the XML does not change the visibility. The only option as I see it is to change the width to Odp. Thoughts?

@kksal55
Copy link

kksal55 commented Sep 26, 2018

Did you find a solution to the problem?

@LluisFelip
Copy link

I'm facing the same issue with this, I'm trying to figure out why... if I find something, I'll post it here!

@LluisFelip
Copy link

I found a "kind-of-workaround"... By using databinding for the visibility, it seems it works properly.

I suppose the rendering phase when it isn't applying the visibility you set in the xml (or in the onCreate/onResume or wherever you are setting the visibility dynamically) is in the very beginning. So, using databinding, it updates the visibility state later, and it applies it correctly.

Anyway, I just realised this library hasn't been updated for a couple years.

@cyrixmorten
Copy link

This does not seem to be an issue in 2.3.0

I suspect this commit to the 2.3.2 release to be causing the issue: 0edd1ae

Have not fully investigated it but looks as if a non-empty string will cause AwesomeTextView to have visibility set to VISIBLE, not considering if it was set to GONE or HIDDEN.

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

4 participants