mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #73 from NativeScript/issue-3147
Add TabLayout.getItemCount method
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user