Skip to content

Commit

Permalink
set the tabmode hugeterry#28
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeterry committed Dec 18, 2017
1 parent f059117 commit 8147698
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coordinatortablayout/coordinatortablayout.iml
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-integration-1.3" level="project" />
<orderEntry type="library" exported="" name="design-25.3.1" level="project" />
<orderEntry type="library" exported="" name="support-core-ui-25.3.1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="jsr305-2.0.1" level="project" />
<orderEntry type="library" exported="" name="support-core-utils-25.3.1" level="project" />
<orderEntry type="library" exported="" name="support-fragment-25.3.1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="jsr305-2.0.1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="espresso-core-2.2.2" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="exposed-instrumentation-api-publish-0.5" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="rules-0.5" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="javax.annotation-api-1.2" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="javax.inject-1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="javawriter-2.1.1" level="project" />
<orderEntry type="library" exported="" name="support-v4-25.3.1" level="project" />
<orderEntry type="library" exported="" name="support-media-compat-25.3.1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="javawriter-2.1.1" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
<orderEntry type="library" exported="" scope="TEST" name="junit-4.12" level="project" />
<orderEntry type="library" exported="" name="recyclerview-v7-25.3.1" level="project" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ public void onTabReselected(TabLayout.Tab tab) {
});
}

/**
* 设置TabLayout TabMode
*
* @param mode
* @return CoordinatorTabLayout
*/
public CoordinatorTabLayout setTabMode(@TabLayout.Mode int mode) {
mTabLayout.setTabMode(mode);
return this;
}

/**
* 设置与该组件搭配的ViewPager
*
Expand Down

0 comments on commit 8147698

Please sign in to comment.