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

Add new attributes #3

Closed
Dhruvkanani opened this issue Jul 5, 2020 · 2 comments
Closed

Add new attributes #3

Dhruvkanani opened this issue Jul 5, 2020 · 2 comments
Assignees

Comments

@Dhruvkanani
Copy link

I want to make the border of fliptabs as per the value I enter. I also want the text inside the fliptabs to be customisable like text size, text style, fontfamily,etc. There is also the problem in size as whenever I try to make it small it cuts from all sides. It will be a pleasure if you solve these problems. Thank You.

@Chrisvin Chrisvin self-assigned this Jul 8, 2020
@Chrisvin
Copy link
Owner

Resolved in version v1.3

Border width can be set programmatically using setBorderWidth or as an xml attribute app:borderWidth .
Text can be customized by getting the TextViews & applying necessary changes programmatically.
Eg:

//Modify properties of the textviews used in FlipTab
fliptab.getTextViews().forEach {
    it.setTypeface(it.typeface, Typeface.ITALIC)
}
//Or modify a specific textview
fliptab.getSelectedTextView().apply {
    setTypeface(typeface, Typeface.BOLD)
}
// Similarly, fliptab.getLeftTextView() & fliptab.getRightTextView() can be used

Have identified and fixed a size-related issue.

@Chrisvin
Copy link
Owner

If issue still persists, feel free to reopen the issue.

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