Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

TabPageIndicator

Rey Pham edited this page Dec 11, 2015 · 5 revisions

TabPageIndicator

Usage

Declare in XML:

    <com.rey.material.widget.TabPageIndicator
        style="@style/Material.Widget.TabPageIndicator"
        android:layout_width="match_parent"
        android:layout_height="48dp"/>

Attributes

  • tpi_tabPadding - The padding between tabs.

  • tpi_tabRipple - The ripple effect style of each tab.

  • tpi_indicatorColor - The color of indicator bar.

  • tpi_indicatorHeight - The height of indicator bar.

  • tpi_indicatorAtTop - Indicate that indicator should stick to top of tabs.

  • tpi_tabSingleLine - Indicate that should show text in single line or not.

  • tpi_mode - The mode of TabPageIndicator. There're 2 modes: scroll and fixed.

  • android:textAppearance - The appearance settings of tab's text.

Clone this wiki locally