How to stick Title for ViewPager to the TOP. PagerTitleStrip Android
Date : March 29 2020, 07:55 AM
I hope this helps you . Take a look at the viewPager layout set up I have that works correctly with the strip on top: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1">
<android.support.v4.view.PagerTitleStrip
android:id="@+id/pager_title_strip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:background="#33b5e5"
android:textColor="#fff"
android:paddingTop="4dp"
android:paddingBottom="4dp"/>
</android.support.v4.view.ViewPager>
|
Date : March 29 2020, 07:55 AM
|
Date : March 29 2020, 07:55 AM
|
How can we work-around the blank title in PagerTitleStrip and PagerTabStrip?
Date : March 29 2020, 07:55 AM
should help you out This issue was fixed in version 23.1.0 com.android.support:support-v4:23.1.0
|
Date : March 29 2020, 07:55 AM
To fix this issue As CommonsWare pointed out, this is a bug with appcompat-v4 23.0.1. I managed to solve this by returning to support appcompat-v7 and appcompat-v4 version 22.2.0. This answer to a duplicate question offers an alternative solution.
|