Merge pull request #73 from NativeScript/issue-3147

Add TabLayout.getItemCount method
This commit is contained in:
Rossen Hristov
2016-12-07 17:22:21 +02:00
committed by GitHub

View File

@@ -210,6 +210,13 @@ public class TabLayout extends HorizontalScrollView {
return result;
}
/**
* Gets the number of realized tabs.
*/
public int getItemCount(){
return this.mTabStrip.getChildCount();
}
/**
* Create a default view to be used for tabs.
*/