We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just updated to official release version of Android P, the tabs are all squared.
The text was updated successfully, but these errors were encountered:
I have the same issue, is possible to fix that?
Sorry, something went wrong.
I've fixed the issue by applying to AnimatedTabItemView an ViewOutlineProvider as described here: https://github.com/android/user-interface-samples/tree/master/ClippingBasic
AnimatedTabItemView
ViewOutlineProvider
This is the inner class I've made in AnimatedTabItemView:
private inner class ClipOutlineProvider : ViewOutlineProvider() { override fun getOutline(view: View, outline: Outline) { outline.setRoundRect(0, 0, mWidth.toInt(), mHeight.toInt(), radius) } }
And set it in init(...) function:
init(...)
outlineProvider = ClipOutlineProvider() clipToOutline = true
This is however a common issue with Android P: https://issuetracker.google.com/issues/111819103#comment5
The issue has be solved in #13. Use this instead, implementation 'com.github.iammert:AnimatedTabLayout:-SNAPSHOT'
implementation 'com.github.iammert:AnimatedTabLayout:-SNAPSHOT'
No branches or pull requests
Just updated to official release version of Android P, the tabs are all squared.
The text was updated successfully, but these errors were encountered: