Add TabLayout.getItemCount method

Related to https://github.com/NativeScript/NativeScript/issues/3147
This commit is contained in:
Rossen Hristov
2016-12-06 11:14:08 +02:00
parent 8fa645af10
commit a89b28d145

View File

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