You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, if you are new to this library, you can ignore this. If you have used the TitleBar library before, that is, versions below 9.0, you need to adapt after upgrading to version 9.0, otherwise Android Studio will report a compilation failed error. I apologize for this issue. The xml attribute naming in lower versions was not very standard. Now, optimizations have been made in versions 5.0 and 9.0. Although the cost of this change is relatively high, I will do it without hesitation. If you use TitleBar but do not want to adapt, please do not upgrade the library version.
Adaptation Plan for Upgrading from 10.5 to 10.6
Remove the ripple attribute value in barStyle, please use app:barStyle="transparent" and style="@style/TitleBarRippleClickStyle" to replace it.
Adaptation Plan for Upgrading from 10.2+ to 10.3
Rename the app:titleTextEllipsize attribute, please use app:titleOverflowMode instead (in higher versions, CollapsingToolbarLayout occupies the titleTextEllipsize attribute).
Rename the app:leftTitleTextEllipsize attribute, please use app:leftTitleOverflowMode instead.
Rename the app:rightTitleTextEllipsize attribute, please use app:rightTitleOverflowMode instead.
Adaptation Plan for Upgrading from 9.3+ to 9.5
Rename the app:childPaddingVertical attribute, please use app:childVerticalPadding instead.
Split the android:childPaddingHorizontal attribute. The original attribute is split into the following attributes:
Attribute renaming overview, just simple renaming, not much modification, you can use global replacement:
Version 5.0
Version 9.0
app:leftSize
app:leftTitleSize
app:rightSize
app:rightTitleSize
app:leftColor
app:leftTitleColor
app:rightColor
app:rightTitleColor
app:leftTint
app:leftIconTint
app:rightTint
app:rightIconTint
app:lineColor
app:lineDrawable
Both namespace and attributes have been changed (previously used system attributes). It is not recommended to use global replacement here, but to check one by one in the code:
Version 5.0
Version 9.0
android:paddingVertical
app:childPaddingVertical
android:paddingHorizontal
app:childPaddingHorizontal
Added text style settings for left and right titles (previous versions only had center title):
app:leftTitleStyle
app:rightTitleStyle
Added center title icon settings (previous versions only had left and right title icons):