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

Could not set textSize on BootstrapButton via layout.xml #163

Closed
tmtysk opened this issue May 18, 2016 · 1 comment
Closed

Could not set textSize on BootstrapButton via layout.xml #163

tmtysk opened this issue May 18, 2016 · 1 comment

Comments

@tmtysk
Copy link

tmtysk commented May 18, 2016

I could not set textSize on BootstrapButton via layout.xml:

<com.beardedhen.androidbootstrap.BootstrapButton
 android:id="@+id/check_button"
 app:fontAwesomeIcon="fa_check_circle"
 app:bootstrapBrand="success"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 android:layout_weight="1"
 android:textSize="120sp" />

but succeeded to set it via application source code:

check_button.setTextSize(120.0f)

Can I set it via lauout.xml?

@jamie-beardedhen
Copy link
Contributor

The textsize of BootstrapButton is set via its bootstrapSize attribute, so this is expected behaviour when inflating the view. If you require further customisation then setting the text size programatically is the correct approach.

See: https://github.com/Bearded-Hen/Android-Bootstrap/wiki/Bootstrap-Button

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

2 participants