@nativescript-community/ui-material-core 6.2.18 → 6.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/package.json +2 -2
- package/platforms/android/include.gradle +3 -3
- package/platforms/android/ui_material_core.aar +0 -0
- package/platforms/android/java/com/nativescript/material/core/BottomNavigationBar.java +0 -311
- package/platforms/android/java/com/nativescript/material/core/TabItemSpec.java +0 -15
- package/platforms/android/java/com/nativescript/material/core/TabLayout.java +0 -441
- package/platforms/android/java/com/nativescript/material/core/TabStrip.java +0 -264
- package/platforms/android/java/com/nativescript/material/core/TabViewPager.java +0 -62
- package/platforms/android/java/com/nativescript/material/core/TabsBar.java +0 -442
- package/tab-navigation-base/react/index.d.ts +0 -60
- package/tab-navigation-base/react/index.js +0 -114
- package/tab-navigation-base/react/index.js.map +0 -1
- package/tab-navigation-base/tab-content-item/index.android.d.ts +0 -14
- package/tab-navigation-base/tab-content-item/index.android.js +0 -48
- package/tab-navigation-base/tab-content-item/index.android.js.map +0 -1
- package/tab-navigation-base/tab-content-item/index.d.ts +0 -11
- package/tab-navigation-base/tab-content-item/index.ios.d.ts +0 -7
- package/tab-navigation-base/tab-content-item/index.ios.js +0 -13
- package/tab-navigation-base/tab-content-item/index.ios.js.map +0 -1
- package/tab-navigation-base/tab-content-item/tab-content-item-common.d.ts +0 -7
- package/tab-navigation-base/tab-content-item/tab-content-item-common.js +0 -24
- package/tab-navigation-base/tab-content-item/tab-content-item-common.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index-common.d.ts +0 -27
- package/tab-navigation-base/tab-navigation/index-common.js +0 -58
- package/tab-navigation-base/tab-navigation/index-common.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index.android.d.ts +0 -78
- package/tab-navigation-base/tab-navigation/index.android.js +0 -852
- package/tab-navigation-base/tab-navigation/index.android.js.map +0 -1
- package/tab-navigation-base/tab-navigation/index.d.ts +0 -80
- package/tab-navigation-base/tab-navigation/index.ios.d.ts +0 -93
- package/tab-navigation-base/tab-navigation/index.ios.js +0 -819
- package/tab-navigation-base/tab-navigation/index.ios.js.map +0 -1
- package/tab-navigation-base/tab-navigation-base/index.d.ts +0 -68
- package/tab-navigation-base/tab-navigation-base/index.js +0 -247
- package/tab-navigation-base/tab-navigation-base/index.js.map +0 -1
- package/tab-navigation-base/tab-strip/index.d.ts +0 -24
- package/tab-navigation-base/tab-strip/index.js +0 -153
- package/tab-navigation-base/tab-strip/index.js.map +0 -1
- package/tab-navigation-base/tab-strip-item/index.d.ts +0 -34
- package/tab-navigation-base/tab-strip-item/index.js +0 -215
- package/tab-navigation-base/tab-strip-item/index.js.map +0 -1
@@ -1,14 +0,0 @@
|
|
1
|
-
import { View } from '@nativescript/core';
|
2
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
3
|
-
export * from './tab-content-item-common';
|
4
|
-
export declare class TabContentItem extends TabContentItemBase {
|
5
|
-
nativeViewProtected: org.nativescript.widgets.GridLayout;
|
6
|
-
tabItemSpec: com.nativescript.material.core.TabItemSpec;
|
7
|
-
index: number;
|
8
|
-
get _hasFragments(): boolean;
|
9
|
-
createNativeView(): org.nativescript.widgets.GridLayout;
|
10
|
-
initNativeView(): void;
|
11
|
-
_addViewToNativeVisualTree(child: View, atIndex?: number): boolean;
|
12
|
-
disposeNativeView(): void;
|
13
|
-
_getChildFragmentManager(): androidx.fragment.app.FragmentManager;
|
14
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
2
|
-
import { TabNavigationBase } from '../tab-navigation-base';
|
3
|
-
import { GridLayout, Trace, View } from '@nativescript/core';
|
4
|
-
import { TabContentItemBase, traceCategory } from './tab-content-item-common';
|
5
|
-
export * from './tab-content-item-common';
|
6
|
-
export class TabContentItem extends TabContentItemBase {
|
7
|
-
get _hasFragments() {
|
8
|
-
return true;
|
9
|
-
}
|
10
|
-
createNativeView() {
|
11
|
-
const layout = new org.nativescript.widgets.GridLayout(this._context);
|
12
|
-
layout.addRow(new org.nativescript.widgets.ItemSpec(1, org.nativescript.widgets.GridUnitType.star));
|
13
|
-
return layout;
|
14
|
-
}
|
15
|
-
initNativeView() {
|
16
|
-
super.initNativeView();
|
17
|
-
}
|
18
|
-
_addViewToNativeVisualTree(child, atIndex) {
|
19
|
-
if (this.nativeViewProtected && child.nativeViewProtected) {
|
20
|
-
GridLayout.setRow(child, 0);
|
21
|
-
}
|
22
|
-
return super._addViewToNativeVisualTree(child, atIndex);
|
23
|
-
}
|
24
|
-
disposeNativeView() {
|
25
|
-
super.disposeNativeView();
|
26
|
-
this.canBeLoaded = false;
|
27
|
-
}
|
28
|
-
_getChildFragmentManager() {
|
29
|
-
const tabView = this.parent;
|
30
|
-
let tabFragment = null;
|
31
|
-
const fragmentManager = tabView._getFragmentManager();
|
32
|
-
if (typeof this.index === 'undefined') {
|
33
|
-
Trace.write('Current TabContentItem index is not set', traceCategory, Trace.messageType.error);
|
34
|
-
}
|
35
|
-
const fragments = fragmentManager.getFragments().toArray();
|
36
|
-
for (let i = 0; i < fragments.length; i++) {
|
37
|
-
if (fragments[i].index === this.index) {
|
38
|
-
tabFragment = fragments[i];
|
39
|
-
break;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
if (!tabFragment) {
|
43
|
-
return tabView._getRootFragmentManager();
|
44
|
-
}
|
45
|
-
return tabFragment.getChildFragmentManager();
|
46
|
-
}
|
47
|
-
}
|
48
|
-
//# sourceMappingURL=index.android.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/index.android.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,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K,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAClG;QAED,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,CAAC;QAC3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,EAAE;gBACnC,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC3B,MAAM;aACT;SACJ;QAGD,IAAI,CAAC,WAAW,EAAE;YAOd,OAAO,OAAO,CAAC,uBAAuB,EAAE,CAAC;SAC5C;QAED,OAAO,WAAW,CAAC,uBAAuB,EAAE,CAAC;IACjD,CAAC;CACJ"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
2
|
-
export * from './tab-content-item-common';
|
3
|
-
export declare class TabContentItem extends TabContentItemBase {
|
4
|
-
private __controller;
|
5
|
-
setViewController(controller: UIViewController, nativeView: UIView): void;
|
6
|
-
disposeNativeView(): void;
|
7
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { TabContentItemBase } from './tab-content-item-common';
|
2
|
-
export * from './tab-content-item-common';
|
3
|
-
export class TabContentItem extends TabContentItemBase {
|
4
|
-
setViewController(controller, nativeView) {
|
5
|
-
this.__controller = controller;
|
6
|
-
this.setNativeView(nativeView);
|
7
|
-
}
|
8
|
-
disposeNativeView() {
|
9
|
-
this.__controller = undefined;
|
10
|
-
this.setNativeView(undefined);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=index.ios.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/index.ios.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,cAAc,2BAA2B,CAAC;AAE1C,MAAM,OAAO,cAAe,SAAQ,kBAAkB;IAI3C,iBAAiB,CAAC,UAA4B,EAAE,UAAkB;QACrE,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAEM,iBAAiB;QACpB,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;QAC9B,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;CAcJ"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { AddChildFromBuilder, ContentView, View, ViewBase } from '@nativescript/core';
|
2
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
3
|
-
export declare const traceCategory = "TabView";
|
4
|
-
export declare abstract class TabContentItemBase extends ContentView implements TabContentItemDefinition, AddChildFromBuilder {
|
5
|
-
eachChild(callback: (child: View) => boolean): void;
|
6
|
-
loadView(view: ViewBase): void;
|
7
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { CSSType, ContentView, View, ViewBase } from '@nativescript/core';
|
2
|
-
import { TabContentItem as TabContentItemDefinition } from '.';
|
3
|
-
import { TabNavigationBase } from '../tab-navigation-base';
|
4
|
-
export const traceCategory = 'TabView';
|
5
|
-
let TabContentItemBase = class TabContentItemBase extends ContentView {
|
6
|
-
eachChild(callback) {
|
7
|
-
if (this.content) {
|
8
|
-
callback(this.content);
|
9
|
-
}
|
10
|
-
}
|
11
|
-
loadView(view) {
|
12
|
-
const tabView = this.parent;
|
13
|
-
if (tabView && tabView.items) {
|
14
|
-
if (this.canBeLoaded) {
|
15
|
-
super.loadView(view);
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
};
|
20
|
-
TabContentItemBase = __decorate([
|
21
|
-
CSSType('MDTabContentItem')
|
22
|
-
], TabContentItemBase);
|
23
|
-
export { TabContentItemBase };
|
24
|
-
//# sourceMappingURL=tab-content-item-common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tab-content-item-common.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-content-item/tab-content-item-common.ts"],"names":[],"mappings":"AACA,OAAO,EAAuB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,cAAc,IAAI,wBAAwB,EAAE,MAAM,GAAG,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AAGvC,IAAsB,kBAAkB,GAAxC,MAAsB,kBAAmB,SAAQ,WAAW;IACjD,SAAS,CAAC,QAAkC;QAC/C,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SAC1B;IACL,CAAC;IAEM,QAAQ,CAAC,IAAc;QAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,MAA2B,CAAC;QACjD,IAAI,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE;YAE1B,IAAK,IAAiC,CAAC,WAAW,EAAE;gBAChD,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;aACxB;SACJ;IACL,CAAC;CACJ,CAAA;AAhBqB,kBAAkB;IADvC,OAAO,CAAC,kBAAkB,CAAC;GACN,kBAAkB,CAgBvC;SAhBqB,kBAAkB"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Color, CoreTypes, Property } from '@nativescript/core';
|
2
|
-
import { TabNavigationBase as TabNavigationBaseBase } from '../tab-navigation-base';
|
3
|
-
import { TabNavigation as TabsDefinition } from '.';
|
4
|
-
import { TabStripItem } from '../tab-strip-item';
|
5
|
-
export declare const traceCategory = "TabView";
|
6
|
-
export declare namespace knownCollections {
|
7
|
-
const items = "items";
|
8
|
-
}
|
9
|
-
export declare enum TabsPosition {
|
10
|
-
Top = "top",
|
11
|
-
Bottom = "bottom"
|
12
|
-
}
|
13
|
-
export declare class TabNavigationBase extends TabNavigationBaseBase implements TabsDefinition {
|
14
|
-
swipeEnabled: boolean;
|
15
|
-
offscreenTabLimit: number;
|
16
|
-
tabsPosition: TabsPosition;
|
17
|
-
animationEnabled: boolean;
|
18
|
-
rippleColor: Color;
|
19
|
-
protected mTextTransform: CoreTypes.TextTransformType;
|
20
|
-
protected getItemLabelTextTransform(tabStripItem: TabStripItem): CoreTypes.TextTransformType;
|
21
|
-
getTabBarTextTransform(): CoreTypes.TextTransformType;
|
22
|
-
getTabBarItemTextTransform(tabStripItem: TabStripItem): CoreTypes.TextTransformType;
|
23
|
-
}
|
24
|
-
export declare const swipeEnabledProperty: Property<TabNavigationBase, boolean>;
|
25
|
-
export declare const offscreenTabLimitProperty: Property<TabNavigationBase, number>;
|
26
|
-
export declare const tabsPositionProperty: Property<TabNavigationBase, TabsPosition>;
|
27
|
-
export declare const animationEnabledProperty: Property<TabNavigationBase, boolean>;
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { cssProperty } from '../../';
|
2
|
-
import { CSSType, Color, CoreTypes, Property, booleanConverter } from '@nativescript/core';
|
3
|
-
import { TabNavigationBase as TabNavigationBaseBase } from '../tab-navigation-base';
|
4
|
-
import { TabNavigation as TabsDefinition } from '.';
|
5
|
-
import { TabStripItem } from '../tab-strip-item';
|
6
|
-
export const traceCategory = 'TabView';
|
7
|
-
export var knownCollections;
|
8
|
-
(function (knownCollections) {
|
9
|
-
knownCollections.items = 'items';
|
10
|
-
})(knownCollections || (knownCollections = {}));
|
11
|
-
export var TabsPosition;
|
12
|
-
(function (TabsPosition) {
|
13
|
-
TabsPosition["Top"] = "top";
|
14
|
-
TabsPosition["Bottom"] = "bottom";
|
15
|
-
})(TabsPosition || (TabsPosition = {}));
|
16
|
-
export class TabNavigationBase extends TabNavigationBaseBase {
|
17
|
-
constructor() {
|
18
|
-
super(...arguments);
|
19
|
-
this.mTextTransform = 'none';
|
20
|
-
}
|
21
|
-
getItemLabelTextTransform(tabStripItem) {
|
22
|
-
const nestedLabel = tabStripItem.label;
|
23
|
-
let textTransform = null;
|
24
|
-
if (nestedLabel && nestedLabel.style.textTransform !== 'initial') {
|
25
|
-
textTransform = nestedLabel.style.textTransform;
|
26
|
-
}
|
27
|
-
else if (tabStripItem.style.textTransform !== 'initial') {
|
28
|
-
textTransform = tabStripItem.style.textTransform;
|
29
|
-
}
|
30
|
-
return textTransform || this.mTextTransform;
|
31
|
-
}
|
32
|
-
getTabBarTextTransform() {
|
33
|
-
return this.mTextTransform;
|
34
|
-
}
|
35
|
-
getTabBarItemTextTransform(tabStripItem) {
|
36
|
-
return this.getItemLabelTextTransform(tabStripItem);
|
37
|
-
}
|
38
|
-
}
|
39
|
-
__decorate([
|
40
|
-
cssProperty
|
41
|
-
], TabNavigationBase.prototype, "rippleColor", void 0);
|
42
|
-
export const swipeEnabledProperty = new Property({
|
43
|
-
name: 'swipeEnabled',
|
44
|
-
defaultValue: true,
|
45
|
-
valueConverter: booleanConverter
|
46
|
-
});
|
47
|
-
swipeEnabledProperty.register(TabNavigationBase);
|
48
|
-
export const offscreenTabLimitProperty = new Property({
|
49
|
-
name: 'offscreenTabLimit',
|
50
|
-
defaultValue: 1,
|
51
|
-
valueConverter: (v) => parseInt(v, 10)
|
52
|
-
});
|
53
|
-
offscreenTabLimitProperty.register(TabNavigationBase);
|
54
|
-
export const tabsPositionProperty = new Property({ name: 'tabsPosition', defaultValue: TabsPosition.Top });
|
55
|
-
tabsPositionProperty.register(TabNavigationBase);
|
56
|
-
export const animationEnabledProperty = new Property({ name: 'animationEnabled', defaultValue: true, valueConverter: booleanConverter });
|
57
|
-
animationEnabledProperty.register(TabNavigationBase);
|
58
|
-
//# sourceMappingURL=index-common.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-common.js","sourceRoot":"../src/","sources":["tab-navigation-base/tab-navigation/index-common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAA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C,YAA0B;QACxD,OAAO,IAAI,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC;CACJ;AApBgB;IAAZ,WAAW;sDAAoB;AAsBpC,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAA6B;IACzE,IAAI,EAAE,cAAc;IACpB,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,gBAAgB;CACnC,CAAC,CAAC;AACH,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,QAAQ,CAA4B;IAC7E,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,CAAC;IACf,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC;CACzC,CAAC,CAAC;AACH,yBAAyB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAAkC,EAAE,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC;AAC5I,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;AAMjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,QAAQ,CAA6B,EAAE,IAAI,EAAE,kBAAkB,EAAE,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC,CAAC;AACrK,wBAAwB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC"}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import { Color, CoreTypes, Font } from '@nativescript/core';
|
2
|
-
import { TabContentItem } from '../tab-content-item';
|
3
|
-
import { TabStrip } from '../tab-strip';
|
4
|
-
import { TabStripItem } from '../tab-strip-item';
|
5
|
-
import { TabNavigationBase } from './index-common';
|
6
|
-
export * from './index-common';
|
7
|
-
export { TabContentItem, TabStrip, TabStripItem };
|
8
|
-
export declare const PRIMARY_COLOR = "colorPrimary";
|
9
|
-
export interface PositionChanger {
|
10
|
-
onSelectedPositionChange(position: number, prevPosition: number): any;
|
11
|
-
}
|
12
|
-
export declare function getDefaultAccentColor(context: android.content.Context): number;
|
13
|
-
export declare const tabs: WeakRef<TabNavigation<any>>[];
|
14
|
-
export declare abstract class TabNavigation<T extends android.view.ViewGroup = any> extends TabNavigationBase {
|
15
|
-
nativeViewProtected: org.nativescript.widgets.GridLayout;
|
16
|
-
protected mTabsBar: T;
|
17
|
-
protected mViewPager: com.nativescript.material.core.TabViewPager;
|
18
|
-
protected mPagerAdapter: androidx.viewpager.widget.PagerAdapter;
|
19
|
-
protected mAndroidViewId: number;
|
20
|
-
_originalBackground: any;
|
21
|
-
protected mTextTransform: CoreTypes.TextTransformType;
|
22
|
-
protected mSelectedItemColor: Color;
|
23
|
-
protected mUnSelectedItemColor: Color;
|
24
|
-
fragments: androidx.fragment.app.Fragment[];
|
25
|
-
protected tabBarLayoutParams: org.nativescript.widgets.CommonLayoutParams;
|
26
|
-
constructor();
|
27
|
-
get _hasFragments(): boolean;
|
28
|
-
onItemsChanged(oldItems: TabContentItem[], newItems: TabContentItem[]): void;
|
29
|
-
createNativeView(): org.nativescript.widgets.GridLayout;
|
30
|
-
protected createNativeTabBar(context: android.content.Context): any;
|
31
|
-
protected abstract setTabBarItems(tabItems: com.nativescript.material.core.TabItemSpec[], viewPager: com.nativescript.material.core.TabViewPager): any;
|
32
|
-
protected abstract getTabBarItemView(index: number): any;
|
33
|
-
protected abstract getTabBarItemTextView(index: number): any;
|
34
|
-
protected abstract selectTabBar(oldIndex: number, newIndex: number): any;
|
35
|
-
private handleTabStripChanged;
|
36
|
-
onTabStripChanged(oldTabStrip: TabStrip, newTabStrip: TabStrip): void;
|
37
|
-
onSelectedIndexChanged(oldIndex: number, newIndex: number): void;
|
38
|
-
initNativeView(): void;
|
39
|
-
_onAttachedToWindow(): void;
|
40
|
-
_onDetachedFromWindow(): void;
|
41
|
-
_loadUnloadTabItems(newIndex: number): void;
|
42
|
-
onLoaded(): void;
|
43
|
-
onUnloaded(): void;
|
44
|
-
disposeNativeView(): void;
|
45
|
-
_onRootViewReset(): void;
|
46
|
-
private disposeTabFragments;
|
47
|
-
private removeFragment;
|
48
|
-
private shouldUpdateAdapter;
|
49
|
-
private setItems;
|
50
|
-
private setTabStripItems;
|
51
|
-
protected createTabItemSpec(tabStripItem: TabStripItem): com.nativescript.material.core.TabItemSpec;
|
52
|
-
private getIcon;
|
53
|
-
private getFixedSizeIcon;
|
54
|
-
protected abstract updateTabsBarItemAt(index: number, spec: com.nativescript.material.core.TabItemSpec): any;
|
55
|
-
protected abstract setTabsBarSelectedIndicatorColors(colors: number[]): any;
|
56
|
-
updateAndroidItemAt(index: number, spec: com.nativescript.material.core.TabItemSpec): void;
|
57
|
-
getTabBarBackgroundColor(): android.graphics.drawable.Drawable;
|
58
|
-
setTabBarBackgroundColor(value: android.graphics.drawable.Drawable | Color): void;
|
59
|
-
getTabBarHighlightColor(): number;
|
60
|
-
setTabBarHighlightColor(value: number | Color): void;
|
61
|
-
getTabBarSelectedItemColor(): Color;
|
62
|
-
setTabBarSelectedItemColor(value: Color): void;
|
63
|
-
getTabBarUnSelectedItemColor(): Color;
|
64
|
-
setTabBarUnSelectedItemColor(value: Color): void;
|
65
|
-
private updateItem;
|
66
|
-
setTabBarItemTitle(tabStripItem: TabStripItem, value: string): void;
|
67
|
-
setTabBarItemBackgroundColor(tabStripItem: TabStripItem, value: android.graphics.drawable.Drawable | Color): void;
|
68
|
-
_setItemColor(tabStripItem: TabStripItem): void;
|
69
|
-
protected setIconColor(tabStripItem: TabStripItem, color?: Color): void;
|
70
|
-
setTabBarItemColor(tabStripItem: TabStripItem, value: number | Color): void;
|
71
|
-
setTabBarIconColor(tabStripItem: TabStripItem, value: number | Color): void;
|
72
|
-
setTabBarIconSource(tabStripItem: TabStripItem, value: number | Color): void;
|
73
|
-
setTabBarItemFontInternal(tabStripItem: TabStripItem, value: Font): void;
|
74
|
-
setTabBarItemTextTransform(tabStripItem: TabStripItem, value: CoreTypes.TextTransformType): void;
|
75
|
-
setTabBarTextTransform(value: CoreTypes.TextTransformType): void;
|
76
|
-
onTabsBarSelectedPositionChange(position: number, prevPosition: number): void;
|
77
|
-
onTabsBarTap(position: number): boolean;
|
78
|
-
}
|