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