Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.


public class PagerTitleStrip
extends ViewGroup

   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ androidx.viewpager.widget.PagerTitleStrip

PagerTitleStrip is a non-interactive indicator of the current, next, and previous pages of a ViewPager. It is intended to be used as a child view of a ViewPager widget in your XML layout. Add it as a child of a ViewPager in your layout file and set its android:layout_gravity to TOP or BOTTOM to pin it to the top or bottom of the ViewPager. The title from each page is supplied by the method PagerAdapter.getPageTitle(int) in the adapter supplied to the ViewPager.

For an interactive indicator, see PagerTabStrip.


Inherited constants

Inherited fields

Public constructors

PagerTitleStrip(Context context)
PagerTitleStrip(Context context, AttributeSet attrs)

Public methods

int getTextSpacing()
void requestLayout()
void setGravity(int gravity)

Set the Gravity used to position text within the title strip.

void setNonPrimaryAlpha(float alpha)

Set the alpha value used for non-primary page titles.

void setTextColor(int color)

Set the color value used as the base color for all displayed page titles.

void setTextSize(int unit, float size)

Set the default text size to a given unit and value.

void setTextSpacing(int spacingPixels)

Set the required spacing between title segments.

Protected methods

void onAttachedToWindow()
void onDetachedFromWindow()
void onLayout(boolean changed, int l, int t, int r, int b)
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Inherited methods