PagerTitleStrip 中的文本(标题)在 onPageSelected 后消失
Text (title) in PagerTitleStrip disappears after onPageSelected
我有一个带有 PagerTitleStrip 的 ViewPager,它曾经可以正常工作...
更新到最新的支持库(v4:23)后,PagerTitleStrip中的文本在onPageSelected后消失。文本在我滚动时显示,但当我放开页面时又消失了 "snaps in".
getPageTitle() returns 正确的字符串。
这发生在两个不同的活动中。
这是一个已知的 AOSP 问题:
https://code.google.com/p/android/issues/detail?id=183127
我通过将支持库降级到 22.2.1 使其正常工作:
android {
compileSdkVersion 22
buildToolsVersion '23.0.1'
defaultConfig {
...
targetSdkVersion 22
...
}
...
dependencies {
...
compile 'com.android.support:support-v4:22.2.1'
...
}
我有一个带有 PagerTitleStrip 的 ViewPager,它曾经可以正常工作...
更新到最新的支持库(v4:23)后,PagerTitleStrip中的文本在onPageSelected后消失。文本在我滚动时显示,但当我放开页面时又消失了 "snaps in".
getPageTitle() returns 正确的字符串。
这发生在两个不同的活动中。
这是一个已知的 AOSP 问题:
https://code.google.com/p/android/issues/detail?id=183127
我通过将支持库降级到 22.2.1 使其正常工作:
android {
compileSdkVersion 22
buildToolsVersion '23.0.1'
defaultConfig {
...
targetSdkVersion 22
...
}
...
dependencies {
...
compile 'com.android.support:support-v4:22.2.1'
...
}