Skip to content

Lyons-Hoo/TabLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

TabLayout

Usage:

    In your Layout file:
    
    <com.example.lyons.demo.customerview.TabLayout
            android:id="@+id/tl_test"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />
    
    In your Activity Or Fragment:
    
    CharSequence[] titles = new CharSequence[mFragments.size()];
    for (int i = 0; i < mFragments.size(); i++) {
        titles[i] = "tab" + i;
    }
    tab.setTabs(titles);
    tab.setViewPager(mViewPager);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages