diff --git a/apps/app/App_Resources/Android/AndroidManifest.xml b/apps/app/App_Resources/Android/AndroidManifest.xml
index b73635900e..93e4c008e0 100644
--- a/apps/app/App_Resources/Android/AndroidManifest.xml
+++ b/apps/app/App_Resources/Android/AndroidManifest.xml
@@ -29,7 +29,7 @@
diff --git a/apps/app/App_Resources/Android/app.gradle b/apps/app/App_Resources/Android/app.gradle
index 79598a2d4c..3a25fb4f73 100644
--- a/apps/app/App_Resources/Android/app.gradle
+++ b/apps/app/App_Resources/Android/app.gradle
@@ -14,3 +14,4 @@ android {
additionalParameters "--no-version-vectors"
}
}
+project.ext.useAndroidX=true
\ No newline at end of file
diff --git a/apps/app/perf-app/recycling/main-page.ts b/apps/app/perf-app/recycling/main-page.ts
index 3c715eede7..fe6a3e3e76 100644
--- a/apps/app/perf-app/recycling/main-page.ts
+++ b/apps/app/perf-app/recycling/main-page.ts
@@ -29,8 +29,8 @@ export function navigatingTo(args) {
application.android.on(application.AndroidApplication.activityRequestPermissionsEvent, handler);
- if ((android.support.v4.content.ContextCompat).checkSelfPermission(application.android.currentContext, (android).Manifest.permission.WRITE_EXTERNAL_STORAGE) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
- (android.support.v4.app.ActivityCompat).requestPermissions(application.android.currentContext, [(android).Manifest.permission.WRITE_EXTERNAL_STORAGE], 1234);
+ if ((androidx.core.content.ContextCompat).checkSelfPermission(application.android.currentContext, (android).Manifest.permission.WRITE_EXTERNAL_STORAGE) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
+ (androidx.core.app.ActivityCompat).requestPermissions(application.android.currentContext, [(android).Manifest.permission.WRITE_EXTERNAL_STORAGE], 1234);
}
} else {
console.log("Permission for write to external storage GRANTED!")
diff --git a/apps/package.json b/apps/package.json
index a548304ff2..0a1b05ca62 100644
--- a/apps/package.json
+++ b/apps/package.json
@@ -21,7 +21,7 @@
"babylon": "6.8.3",
"lazy": "1.0.11",
"nativescript-dev-typescript": "next",
- "tns-platform-declarations": "*",
+ "tns-platform-declarations": "androidx",
"typescript": "^3.1.6"
}
-}
\ No newline at end of file
+}
diff --git a/tests/app/App_Resources/Android/app.gradle b/tests/app/App_Resources/Android/app.gradle
index 725fb59b18..a6dd873035 100644
--- a/tests/app/App_Resources/Android/app.gradle
+++ b/tests/app/App_Resources/Android/app.gradle
@@ -13,3 +13,4 @@ android {
additionalParameters "--no-version-vectors"
}
}
+project.ext.useAndroidX=true
\ No newline at end of file
diff --git a/tests/app/ui/action-bar/action-bar-tests.android.ts b/tests/app/ui/action-bar/action-bar-tests.android.ts
index bf6abab52a..1106182d06 100644
--- a/tests/app/ui/action-bar/action-bar-tests.android.ts
+++ b/tests/app/ui/action-bar/action-bar-tests.android.ts
@@ -11,7 +11,7 @@ export function test_actionItem_visibility() {
actionItem.text = "Test";
const page = actionTestsCommon.createPageAndNavigate();
page.actionBar.actionItems.addItem(actionItem);
- const toolbar = page.actionBar.nativeViewProtected;
+ const toolbar = page.actionBar.nativeViewProtected;
const menu = toolbar.getMenu();
TKUnit.assertTrue(menu.hasVisibleItems(), "Visibility does not work");
@@ -25,7 +25,7 @@ export function test_navigationButton_visibility() {
const page = actionTestsCommon.createPageAndNavigate();
page.actionBar.navigationButton = actionItem;
- const toolbar = page.actionBar.nativeViewProtected;
+ const toolbar = page.actionBar.nativeViewProtected;
TKUnit.assertNotNull(toolbar.getNavigationIcon(), "Visibility does not work");
actionItem.visibility = Visibility.collapse;
@@ -40,7 +40,7 @@ export function test_navigationButton_contentDecription() {
const page = actionTestsCommon.createPageAndNavigate();
page.actionBar.navigationButton = actionItem;
- const toolbar = page.actionBar.nativeViewProtected;
+ const toolbar = page.actionBar.nativeViewProtected;
TKUnit.assertEqual(toolbar.getNavigationContentDescription(), actionItemText, "Navigation Button should have an content decription");
}
diff --git a/tests/app/ui/tab-view/tab-view-navigation-tests.ts b/tests/app/ui/tab-view/tab-view-navigation-tests.ts
index 9290128851..920efc45f7 100644
--- a/tests/app/ui/tab-view/tab-view-navigation-tests.ts
+++ b/tests/app/ui/tab-view/tab-view-navigation-tests.ts
@@ -191,7 +191,7 @@ function tabViewIsFullyLoaded(tabView: TabView): boolean {
}
if (tabView.android) {
- var viewPager: android.support.v4.view.ViewPager = (tabView)._viewPager;
+ var viewPager: androidx.viewpager.widget.ViewPager = (tabView)._viewPager;
if (viewPager.getChildCount() === 0) {
return false;
}
@@ -265,7 +265,7 @@ export function testLoadedAndUnloadedAreFired_WhenNavigatingAwayAndBack() {
function _clickTheFirstButtonInTheListViewNatively(tabView: TabView) {
if (tabView.android) {
- var viewPager: android.support.v4.view.ViewPager = (tabView)._viewPager;
+ var viewPager: androidx.viewpager.widget.ViewPager = (tabView)._viewPager;
var androidListView = viewPager.getChildAt(0);
var stackLayout = androidListView.getChildAt(0);
var button = stackLayout.getChildAt(0);
diff --git a/tests/app/ui/tab-view/tab-view-tests-native.android.ts b/tests/app/ui/tab-view/tab-view-tests-native.android.ts
index 4c89d5bada..4edbda3f1b 100644
--- a/tests/app/ui/tab-view/tab-view-tests-native.android.ts
+++ b/tests/app/ui/tab-view/tab-view-tests-native.android.ts
@@ -1,19 +1,19 @@
import { TabView } from "tns-core-modules/ui/tab-view";
export function getNativeTabCount(tabView: TabView): number {
- const pagerAdapter: android.support.v4.view.PagerAdapter = (tabView)._pagerAdapter;
+ const pagerAdapter: androidx.viewpager.widget.PagerAdapter = (tabView)._pagerAdapter;
return pagerAdapter ? pagerAdapter.getCount() : 0;
}
export function selectNativeTab(tabView: TabView, index: number): void {
- const viewPager: android.support.v4.view.ViewPager = (tabView)._viewPager;
+ const viewPager: androidx.viewpager.widget.ViewPager = (tabView)._viewPager;
if (viewPager) {
viewPager.setCurrentItem(index);
}
}
export function getNativeSelectedIndex(tabView: TabView): number {
- const viewPager: android.support.v4.view.ViewPager = (tabView)._viewPager;
+ const viewPager: androidx.viewpager.widget.ViewPager = (tabView)._viewPager;
return viewPager ? viewPager.getCurrentItem() : -1;
}
diff --git a/tests/app/ui/tab-view/tab-view-tests.ts b/tests/app/ui/tab-view/tab-view-tests.ts
index 0bc2bab433..75ccad9385 100644
--- a/tests/app/ui/tab-view/tab-view-tests.ts
+++ b/tests/app/ui/tab-view/tab-view-tests.ts
@@ -59,7 +59,7 @@ export class TabViewTest extends UITest {
}
if (tabView.android) {
- var viewPager: android.support.v4.view.ViewPager = (tabView)._viewPager;
+ var viewPager: androidx.viewpager.widget.ViewPager = (tabView)._viewPager;
if (viewPager.getChildCount() === 0) {
return false;
}
diff --git a/tns-core-modules-widgets/android/build.gradle b/tns-core-modules-widgets/android/build.gradle
index a443fad340..8168b5bf67 100644
--- a/tns-core-modules-widgets/android/build.gradle
+++ b/tns-core-modules-widgets/android/build.gradle
@@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.1.3'
+ classpath 'com.android.tools.build:gradle:3.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -23,3 +23,5 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
+
+project.ext.useAndroidX=true
\ No newline at end of file
diff --git a/tns-core-modules-widgets/android/widgets/build.gradle b/tns-core-modules-widgets/android/widgets/build.gradle
index ce1451440d..32771c7dbb 100644
--- a/tns-core-modules-widgets/android/widgets/build.gradle
+++ b/tns-core-modules-widgets/android/widgets/build.gradle
@@ -24,6 +24,15 @@ def computeBuildToolsVersion() {
}
}
+def computeAndroidXVersion() {
+ if(project.hasProperty("androidxVersion")) {
+ return androidxVersion
+ }
+ else {
+ return "1.0.0"
+ }
+}
+
def computeSupportVersion() {
if(project.hasProperty("supportVersion")) {
return supportVersion
@@ -62,7 +71,16 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:support-v4:' + computeSupportVersion()
+
+ if(project.hasProperty("useAndroidX")) {
+ println 'Using androix'
+ def androidxVersion = computeAndroidXVersion()
+ implementation 'androidx.viewpager:viewpager:' + androidxVersion
+ implementation 'androidx.fragment:fragment:' + androidxVersion
+ } else {
+ println 'Using support library'
+ implementation 'com.android.support:support-v4:' + computeSupportVersion()
+ }
}
task cleanBuildDir (type: Delete) {
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java
index 247caa6a6c..0abf8d26b2 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java
@@ -17,7 +17,7 @@
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.Shader;
-import android.support.annotation.NonNull;
+import androidx.annotation.NonNull;
import org.nativescript.widgets.image.BitmapOwner;
import org.nativescript.widgets.image.Fetcher;
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FlexboxLayout.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FlexboxLayout.java
index 5316086c34..ca02e30079 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FlexboxLayout.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FlexboxLayout.java
@@ -20,9 +20,9 @@
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
-import android.support.annotation.IntDef;
-import android.support.annotation.NonNull;
-import android.support.v4.view.ViewCompat;
+import androidx.annotation.IntDef;
+import androidx.annotation.NonNull;
+import androidx.core.view.ViewCompat;
import android.util.AttributeSet;
import android.util.SparseIntArray;
import android.view.View;
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FragmentBase.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FragmentBase.java
index 66873bde9c..88a2217196 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FragmentBase.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/FragmentBase.java
@@ -1,7 +1,7 @@
package org.nativescript.widgets;
import android.animation.Animator;
-import android.support.v4.app.Fragment;
+import androidx.fragment.app.Fragment;
public abstract class FragmentBase extends Fragment {
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/Image/Cache.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/Image/Cache.java
index 0e1b327b89..bb14f2c387 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/Image/Cache.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/Image/Cache.java
@@ -26,7 +26,7 @@
import android.os.Build.VERSION_CODES;
import android.os.Environment;
import android.os.StatFs;
-import android.support.v4.util.LruCache;
+import android.util.LruCache;
import android.util.Log;
import java.io.File;
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/SegmentedBarColorDrawable.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/SegmentedBarColorDrawable.java
index 525a7282d3..02b0ace1c8 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/SegmentedBarColorDrawable.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/SegmentedBarColorDrawable.java
@@ -2,7 +2,7 @@
import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
-import android.support.annotation.ColorInt;
+import androidx.annotation.ColorInt;
/**
* Created by hhristov on 2/23/17.
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java
index 285bec2773..bbcf04e55b 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabLayout.java
@@ -18,8 +18,8 @@
import android.content.Context;
import android.graphics.Typeface;
-import android.support.v4.view.PagerAdapter;
-import android.support.v4.view.ViewPager;
+import androidx.viewpager.widget.PagerAdapter;
+import androidx.viewpager.widget.ViewPager;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.SparseArray;
diff --git a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java
index 75a3b447ad..e115c6bd94 100644
--- a/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java
+++ b/tns-core-modules-widgets/android/widgets/src/main/java/org/nativescript/widgets/TabViewPager.java
@@ -4,7 +4,7 @@
package org.nativescript.widgets;
import android.content.Context;
-import android.support.v4.view.ViewPager;
+import androidx.viewpager.widget.ViewPager;
import android.util.AttributeSet;
import android.view.View;
import android.view.MotionEvent;
diff --git a/tns-core-modules/application/application.android.ts b/tns-core-modules/application/application.android.ts
index f0588976db..fa2a82d135 100644
--- a/tns-core-modules/application/application.android.ts
+++ b/tns-core-modules/application/application.android.ts
@@ -44,8 +44,8 @@ export class AndroidApplication extends Observable implements AndroidApplication
public paused: boolean;
public nativeApp: android.app.Application;
public context: android.content.Context;
- public foregroundActivity: android.support.v7.app.AppCompatActivity;
- public startActivity: android.support.v7.app.AppCompatActivity;
+ public foregroundActivity: androidx.appcompat.app.AppCompatActivity;
+ public startActivity: androidx.appcompat.app.AppCompatActivity;
public packageName: string;
// we are using these property to store the callbacks to avoid early GC collection which would trigger MarkReachableObjects
private callbacks: any = {};
@@ -235,7 +235,7 @@ global.__onLiveSync = function __onLiveSync(context?: ModuleContext) {
};
function initLifecycleCallbacks() {
- const setThemeOnLaunch = profile("setThemeOnLaunch", (activity: android.support.v7.app.AppCompatActivity) => {
+ const setThemeOnLaunch = profile("setThemeOnLaunch", (activity: androidx.appcompat.app.AppCompatActivity) => {
// Set app theme after launch screen was used during startup
const activityInfo = activity.getPackageManager().getActivityInfo(activity.getComponentName(), android.content.pm.PackageManager.GET_META_DATA);
if (activityInfo.metaData) {
@@ -246,11 +246,11 @@ function initLifecycleCallbacks() {
}
});
- const notifyActivityCreated = profile("notifyActivityCreated", function (activity: android.support.v7.app.AppCompatActivity, savedInstanceState: android.os.Bundle) {
+ const notifyActivityCreated = profile("notifyActivityCreated", function (activity: androidx.appcompat.app.AppCompatActivity, savedInstanceState: android.os.Bundle) {
androidApp.notify({ eventName: ActivityCreated, object: androidApp, activity, bundle: savedInstanceState });
});
- const subscribeForGlobalLayout = profile("subscribeForGlobalLayout", function (activity: android.support.v7.app.AppCompatActivity) {
+ const subscribeForGlobalLayout = profile("subscribeForGlobalLayout", function (activity: androidx.appcompat.app.AppCompatActivity) {
const rootView = activity.getWindow().getDecorView().getRootView();
// store the listener not to trigger GC collection before collecting the method
this.onGlobalLayoutListener = new android.view.ViewTreeObserver.OnGlobalLayoutListener({
@@ -264,7 +264,7 @@ function initLifecycleCallbacks() {
});
const lifecycleCallbacks = new android.app.Application.ActivityLifecycleCallbacks({
- onActivityCreated: profile("onActivityCreated", function (activity: android.support.v7.app.AppCompatActivity, savedInstanceState: android.os.Bundle) {
+ onActivityCreated: profile("onActivityCreated", function (activity: androidx.appcompat.app.AppCompatActivity, savedInstanceState: android.os.Bundle) {
setThemeOnLaunch(activity);
if (!androidApp.startActivity) {
@@ -278,7 +278,7 @@ function initLifecycleCallbacks() {
}
}),
- onActivityDestroyed: profile("onActivityDestroyed", function (activity: android.support.v7.app.AppCompatActivity) {
+ onActivityDestroyed: profile("onActivityDestroyed", function (activity: androidx.appcompat.app.AppCompatActivity) {
if (activity === androidApp.foregroundActivity) {
androidApp.foregroundActivity = undefined;
}
@@ -292,7 +292,7 @@ function initLifecycleCallbacks() {
gc();
}),
- onActivityPaused: profile("onActivityPaused", function (activity: android.support.v7.app.AppCompatActivity) {
+ onActivityPaused: profile("onActivityPaused", function (activity: androidx.appcompat.app.AppCompatActivity) {
if ((activity).isNativeScriptActivity) {
androidApp.paused = true;
notify({ eventName: suspendEvent, object: androidApp, android: activity });
@@ -301,21 +301,21 @@ function initLifecycleCallbacks() {
androidApp.notify({ eventName: ActivityPaused, object: androidApp, activity: activity });
}),
- onActivityResumed: profile("onActivityResumed", function (activity: android.support.v7.app.AppCompatActivity) {
+ onActivityResumed: profile("onActivityResumed", function (activity: androidx.appcompat.app.AppCompatActivity) {
androidApp.foregroundActivity = activity;
androidApp.notify({ eventName: ActivityResumed, object: androidApp, activity: activity });
}),
- onActivitySaveInstanceState: profile("onActivitySaveInstanceState", function (activity: android.support.v7.app.AppCompatActivity, outState: android.os.Bundle) {
+ onActivitySaveInstanceState: profile("onActivitySaveInstanceState", function (activity: androidx.appcompat.app.AppCompatActivity, outState: android.os.Bundle) {
androidApp.notify({ eventName: SaveActivityState, object: androidApp, activity: activity, bundle: outState });
}),
- onActivityStarted: profile("onActivityStarted", function (activity: android.support.v7.app.AppCompatActivity) {
+ onActivityStarted: profile("onActivityStarted", function (activity: androidx.appcompat.app.AppCompatActivity) {
androidApp.notify({ eventName: ActivityStarted, object: androidApp, activity: activity });
}),
- onActivityStopped: profile("onActivityStopped", function (activity: android.support.v7.app.AppCompatActivity) {
+ onActivityStopped: profile("onActivityStopped", function (activity: androidx.appcompat.app.AppCompatActivity) {
androidApp.notify({ eventName: ActivityStopped, object: androidApp, activity: activity });
})
});
diff --git a/tns-core-modules/application/application.d.ts b/tns-core-modules/application/application.d.ts
index f85972e8ba..6d391a7b90 100644
--- a/tns-core-modules/application/application.d.ts
+++ b/tns-core-modules/application/application.d.ts
@@ -308,7 +308,7 @@ export interface AndroidActivityEventData {
/**
* The activity.
*/
- activity: any /* android.support.v7.app.AppCompatActivity */;
+ activity: any /* androidx.appcompat.app.AppCompatActivity */;
/**
* The name of the event.
@@ -408,7 +408,7 @@ export class AndroidApplication extends Observable {
/**
* The currently active (loaded) [android Activity](http://developer.android.com/reference/android/app/Activity.html). This property is automatically updated upon Activity events.
*/
- foregroundActivity: any /* android.support.v7.app.AppCompatActivity */;
+ foregroundActivity: any /* androidx.appcompat.app.AppCompatActivity */;
/**
* @deprecated use startActivity, foregroundActivity or context instead
@@ -418,7 +418,7 @@ export class AndroidApplication extends Observable {
/**
* The main (start) Activity for the application.
*/
- startActivity: any /* android.support.v7.app.AppCompatActivity */;
+ startActivity: any /* androidx.appcompat.app.AppCompatActivity */;
/**
* The name of the application package.
diff --git a/tns-core-modules/package.json b/tns-core-modules/package.json
index 2be229ac8b..afb5ef5075 100644
--- a/tns-core-modules/package.json
+++ b/tns-core-modules/package.json
@@ -26,12 +26,12 @@
"license": "Apache-2.0",
"typings": "tns-core-modules.d.ts",
"dependencies": {
- "tns-core-modules-widgets": "next",
+ "tns-core-modules-widgets": "androidx",
"tslib": "^1.9.3"
},
"devDependencies": {
"@types/node": "~7.0.5",
- "tns-platform-declarations": "*"
+ "tns-platform-declarations": "androidx"
},
"scripts": {
"version": "conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md"
diff --git a/tns-core-modules/ui/action-bar/action-bar.android.ts b/tns-core-modules/ui/action-bar/action-bar.android.ts
index 112b84d6d7..adab14a460 100644
--- a/tns-core-modules/ui/action-bar/action-bar.android.ts
+++ b/tns-core-modules/ui/action-bar/action-bar.android.ts
@@ -22,7 +22,7 @@ function generateItemId(): number {
}
interface MenuItemClickListener {
- new(owner: ActionBar): android.support.v7.widget.Toolbar.OnMenuItemClickListener;
+ new(owner: ActionBar): androidx.appcompat.widget.Toolbar.OnMenuItemClickListener;
}
let appResources: android.content.res.Resources;
@@ -33,10 +33,10 @@ function initializeMenuItemClickListener(): void {
return;
}
- AppCompatTextView = (android).support.v7.widget.AppCompatTextView;
+ AppCompatTextView = androidx.appcompat.widget.AppCompatTextView;
- @Interfaces([android.support.v7.widget.Toolbar.OnMenuItemClickListener])
- class MenuItemClickListenerImpl extends java.lang.Object implements android.support.v7.widget.Toolbar.OnMenuItemClickListener {
+ @Interfaces([androidx.appcompat.widget.Toolbar.OnMenuItemClickListener])
+ class MenuItemClickListenerImpl extends java.lang.Object implements androidx.appcompat.widget.Toolbar.OnMenuItemClickListener {
constructor(public owner: ActionBar) {
super();
return global.__native(this);
@@ -111,7 +111,7 @@ export class NavigationButton extends ActionItem {
export class ActionBar extends ActionBarBase {
private _android: AndroidActionBarSettings;
- public nativeViewProtected: android.support.v7.widget.Toolbar;
+ public nativeViewProtected: androidx.appcompat.widget.Toolbar;
constructor() {
super();
@@ -135,7 +135,7 @@ export class ActionBar extends ActionBarBase {
}
public createNativeView() {
- return new android.support.v7.widget.Toolbar(this._context);
+ return new androidx.appcompat.widget.Toolbar(this._context);
}
public initNativeView(): void {
@@ -393,7 +393,7 @@ export class ActionBar extends ActionBarBase {
}
[flatProperty.setNative](value: boolean) {
- const compat = android.support.v4.view.ViewCompat;
+ const compat = androidx.core.view.ViewCompat;
if (compat.setElevation) {
if (value) {
compat.setElevation(this.nativeViewProtected, 0);
@@ -405,7 +405,7 @@ export class ActionBar extends ActionBarBase {
}
}
-function getAppCompatTextView(toolbar: android.support.v7.widget.Toolbar): typeof AppCompatTextView {
+function getAppCompatTextView(toolbar: androidx.appcompat.widget.Toolbar): typeof AppCompatTextView {
for (let i = 0, count = toolbar.getChildCount(); i < count; i++) {
const child = toolbar.getChildAt(i);
if (child instanceof AppCompatTextView) {
diff --git a/tns-core-modules/ui/animation/animation.android.ts b/tns-core-modules/ui/animation/animation.android.ts
index 549be00e95..a42d5f2587 100644
--- a/tns-core-modules/ui/animation/animation.android.ts
+++ b/tns-core-modules/ui/animation/animation.android.ts
@@ -69,13 +69,13 @@ export function _resolveAnimationCurve(curve: string | CubicBezierAnimationCurve
}
return bounce();
case "ease":
- return (android).support.v4.view.animation.PathInterpolatorCompat.create(0.25, 0.1, 0.25, 1.0);
+ return (androidx).core.view.animation.PathInterpolatorCompat.create(0.25, 0.1, 0.25, 1.0);
default:
if (traceEnabled()) {
traceWrite("Animation curve resolved to original: " + curve, traceCategories.Animation);
}
if (curve instanceof CubicBezierAnimationCurve) {
- return (android).support.v4.view.animation.PathInterpolatorCompat.create(curve.x1, curve.y1, curve.x2, curve.y2);
+ return (androidx).core.view.animation.PathInterpolatorCompat.create(curve.x1, curve.y1, curve.x2, curve.y2);
} else if (curve && (curve).getInterpolation) {
return curve;
} else if ((curve) instanceof android.view.animation.LinearInterpolator) {
diff --git a/tns-core-modules/ui/core/view/view.android.ts b/tns-core-modules/ui/core/view/view.android.ts
index 0f6e936e4e..72a4624904 100644
--- a/tns-core-modules/ui/core/view/view.android.ts
+++ b/tns-core-modules/ui/core/view/view.android.ts
@@ -55,7 +55,7 @@ interface TouchListener {
}
interface DialogFragment {
- new(): android.support.v4.app.DialogFragment;
+ new(): androidx.fragment.app.DialogFragment;
}
function initializeTouchListener(): void {
@@ -133,7 +133,7 @@ function initializeDialogFragment() {
}
}
- class DialogFragmentImpl extends android.support.v4.app.DialogFragment {
+ class DialogFragmentImpl extends androidx.fragment.app.DialogFragment {
public owner: View;
private _fullscreen: boolean;
private _stretched: boolean;
@@ -155,7 +155,7 @@ function initializeDialogFragment() {
this._stretched = options.stretched;
this._dismissCallback = options.dismissCallback;
this._shownCallback = options.shownCallback;
- this.setStyle(android.support.v4.app.DialogFragment.STYLE_NO_TITLE, 0);
+ this.setStyle(androidx.fragment.app.DialogFragment.STYLE_NO_TITLE, 0);
let theme = this.getTheme();
if (this._fullscreen) {
@@ -255,14 +255,14 @@ function getModalOptions(domId: number): DialogOptions {
export class View extends ViewCommon {
public static androidBackPressedEvent = androidBackPressedEvent;
- public _dialogFragment: android.support.v4.app.DialogFragment;
+ public _dialogFragment: androidx.fragment.app.DialogFragment;
private _isClickable: boolean;
private touchListenerIsSet: boolean;
private touchListener: android.view.View.OnTouchListener;
private layoutChangeListenerIsSet: boolean;
private layoutChangeListener: android.view.View.OnLayoutChangeListener;
- private _manager: android.support.v4.app.FragmentManager;
- private _rootManager: android.support.v4.app.FragmentManager;
+ private _manager: androidx.fragment.app.FragmentManager;
+ private _rootManager: androidx.fragment.app.FragmentManager;
private _originalElevation: number;
private _originalStateListAnimator: any; /* android.animation.StateListAnimator; */
@@ -296,19 +296,19 @@ export class View extends ViewCommon {
}
}
- public _getChildFragmentManager(): android.support.v4.app.FragmentManager {
+ public _getChildFragmentManager(): androidx.fragment.app.FragmentManager {
return null;
}
- public _getRootFragmentManager(): android.support.v4.app.FragmentManager {
+ public _getRootFragmentManager(): androidx.fragment.app.FragmentManager {
if (!this._rootManager && this._context) {
- this._rootManager = (this._context).getSupportFragmentManager();
+ this._rootManager = (this._context).getSupportFragmentManager();
}
return this._rootManager;
}
- public _getFragmentManager(): android.support.v4.app.FragmentManager {
+ public _getFragmentManager(): androidx.fragment.app.FragmentManager {
let manager = this._manager;
if (!manager) {
let view: View = this;
diff --git a/tns-core-modules/ui/core/view/view.d.ts b/tns-core-modules/ui/core/view/view.d.ts
index 5325ab9edd..a9d60c4186 100644
--- a/tns-core-modules/ui/core/view/view.d.ts
+++ b/tns-core-modules/ui/core/view/view.d.ts
@@ -707,11 +707,8 @@ export abstract class View extends ViewBase {
/**
* @private
*/
+ _getFragmentManager(): any; /* androidx.fragment.app.FragmentManager */
_handleLivesync(context?: { type: string, path: string }): boolean;
- /**
- * @private
- */
- _getFragmentManager(): any; /* android.support.v4.app.FragmentManager */
/**
* Updates styleScope or create new styleScope.
diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base.android.ts b/tns-core-modules/ui/editable-text-base/editable-text-base.android.ts
index 31d898372e..3f0158a30a 100644
--- a/tns-core-modules/ui/editable-text-base/editable-text-base.android.ts
+++ b/tns-core-modules/ui/editable-text-base/editable-text-base.android.ts
@@ -36,7 +36,7 @@ function dismissSoftInput(owner: EditableTextBase): void {
if (!dismissKeyboardTimeoutId) {
dismissKeyboardTimeoutId = setTimeout(() => {
const owner = dismissKeyboardOwner && dismissKeyboardOwner.get();
- const activity = (owner && owner._context) as android.support.v7.app.AppCompatActivity;
+ const activity = (owner && owner._context) as androidx.appcompat.app.AppCompatActivity;
const nativeView = owner && owner.nativeViewProtected;
dismissKeyboardTimeoutId = null;
dismissKeyboardOwner = null;
diff --git a/tns-core-modules/ui/frame/activity.android.ts b/tns-core-modules/ui/frame/activity.android.ts
index 9a4b9ce84a..c43f99d6c0 100644
--- a/tns-core-modules/ui/frame/activity.android.ts
+++ b/tns-core-modules/ui/frame/activity.android.ts
@@ -8,7 +8,7 @@ if ((global).__snapshot || (global).__snapshotEnabled) {
//@ts-ignore
@JavaProxy("com.tns.NativeScriptActivity")
-class NativeScriptActivity extends android.support.v7.app.AppCompatActivity {
+class NativeScriptActivity extends androidx.appcompat.app.AppCompatActivity {
private _callbacks: AndroidActivityCallbacks;
public isNativeScriptActivity;
constructor() {
diff --git a/tns-core-modules/ui/frame/fragment.transitions.android.ts b/tns-core-modules/ui/frame/fragment.transitions.android.ts
index 437698d8e9..d5e356627a 100644
--- a/tns-core-modules/ui/frame/fragment.transitions.android.ts
+++ b/tns-core-modules/ui/frame/fragment.transitions.android.ts
@@ -64,11 +64,11 @@ export function _setAndroidFragmentTransitions(
navigationTransition: NavigationTransition,
currentEntry: ExpandedEntry,
newEntry: ExpandedEntry,
- fragmentTransaction: android.support.v4.app.FragmentTransaction,
+ fragmentTransaction: androidx.fragment.app.FragmentTransaction,
frameId: number): void {
- const currentFragment: android.support.v4.app.Fragment = currentEntry ? currentEntry.fragment : null;
- const newFragment: android.support.v4.app.Fragment = newEntry.fragment;
+ const currentFragment: androidx.fragment.app.Fragment = currentEntry ? currentEntry.fragment : null;
+ const newFragment: androidx.fragment.app.Fragment = newEntry.fragment;
const entries = waitingQueue.get(frameId);
if (entries && entries.size > 0) {
throw new Error("Calling navigation before previous navigation finish.");
@@ -193,7 +193,7 @@ export function _setAndroidFragmentTransitions(
printTransitions(newEntry);
}
-export function _onFragmentCreateAnimator(entry: ExpandedEntry, fragment: android.support.v4.app.Fragment, nextAnim: number, enter: boolean): android.animation.Animator {
+export function _onFragmentCreateAnimator(entry: ExpandedEntry, fragment: androidx.fragment.app.Fragment, nextAnim: number, enter: boolean): android.animation.Animator {
let animator: android.animation.Animator;
switch (nextAnim) {
case AnimationType.enterFakeResourceId:
@@ -406,7 +406,7 @@ function clearAnimationListener(animator: ExpandedAnimator, listener: android.an
function clearExitAndReenterTransitions(entry: ExpandedEntry, removeListener: boolean): void {
if (sdkVersion() >= 21) {
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
const exitListener = entry.exitTransitionListener;
if (exitListener) {
const exitTransition = fragment.getExitTransition();
@@ -459,7 +459,7 @@ function clearEntry(entry: ExpandedEntry, removeListener: boolean): void {
clearExitAndReenterTransitions(entry, removeListener);
if (sdkVersion() >= 21) {
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
const enterListener = entry.enterTransitionListener;
if (enterListener) {
const enterTransition = fragment.getEnterTransition();
@@ -510,7 +510,7 @@ function clearEntry(entry: ExpandedEntry, removeListener: boolean): void {
}
}
-function allowTransitionOverlap(fragment: android.support.v4.app.Fragment): void {
+function allowTransitionOverlap(fragment: androidx.fragment.app.Fragment): void {
if (fragment) {
fragment.setAllowEnterTransitionOverlap(true);
fragment.setAllowReturnTransitionOverlap(true);
@@ -523,7 +523,7 @@ function setEnterTransition(navigationTransition: NavigationTransition, entry: E
// attach listener to JS object so that it will be alive as long as entry.
entry.enterTransitionListener = listener;
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
fragment.setEnterTransition(transition);
}
@@ -533,7 +533,7 @@ function setExitTransition(navigationTransition: NavigationTransition, entry: Ex
// attach listener to JS object so that it will be alive as long as entry.
entry.exitTransitionListener = listener;
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
fragment.setExitTransition(transition);
}
@@ -543,7 +543,7 @@ function setReenterTransition(navigationTransition: NavigationTransition, entry:
// attach listener to JS object so that it will be alive as long as entry.
entry.reenterTransitionListener = listener;
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
fragment.setReenterTransition(transition);
}
@@ -553,7 +553,7 @@ function setReturnTransition(navigationTransition: NavigationTransition, entry:
// attach listener to JS object so that it will be alive as long as entry.
entry.returnTransitionListener = listener;
- const fragment: android.support.v4.app.Fragment = entry.fragment;
+ const fragment: androidx.fragment.app.Fragment = entry.fragment;
fragment.setReturnTransition(transition);
}
diff --git a/tns-core-modules/ui/frame/frame.android.ts b/tns-core-modules/ui/frame/frame.android.ts
index bdf640b8ce..67118db5c7 100644
--- a/tns-core-modules/ui/frame/frame.android.ts
+++ b/tns-core-modules/ui/frame/frame.android.ts
@@ -239,13 +239,13 @@ export class Frame extends FrameBase {
return;
}
- const manager: android.support.v4.app.FragmentManager = this._getFragmentManager();
+ const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager();
const transaction = manager.beginTransaction();
transaction.remove(this._currentEntry.fragment);
transaction.commitNowAllowingStateLoss();
}
- private createFragment(backstackEntry: BackstackEntry, fragmentTag: string): android.support.v4.app.Fragment {
+ private createFragment(backstackEntry: BackstackEntry, fragmentTag: string): androidx.fragment.app.Fragment {
ensureFragmentClass();
const newFragment = new fragmentClass();
const args = new android.os.Bundle();
@@ -364,7 +364,7 @@ export class Frame extends FrameBase {
return;
}
- const manager: android.support.v4.app.FragmentManager = this._getFragmentManager();
+ const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager();
const clearHistory = newEntry.entry.clearHistory;
const currentEntry = this._currentEntry;
@@ -400,7 +400,7 @@ export class Frame extends FrameBase {
_setAndroidFragmentTransitions(animated, navigationTransition, currentEntry, newEntry, transaction, this._android.frameId);
if (currentEntry && animated && !navigationTransition) {
- transaction.setTransition(android.support.v4.app.FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
+ transaction.setTransition(androidx.fragment.app.FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
}
transaction.replace(this.containerViewId, newFragment, newFragmentTag);
@@ -411,7 +411,7 @@ export class Frame extends FrameBase {
super._goBackCore(backstackEntry);
navDepth = backstackEntry.navDepth;
- const manager: android.support.v4.app.FragmentManager = this._getFragmentManager();
+ const manager: androidx.fragment.app.FragmentManager = this._getFragmentManager();
const transaction = manager.beginTransaction();
if (!backstackEntry.fragment) {
@@ -618,8 +618,8 @@ class AndroidFrame extends Observable implements AndroidFrameDefinition {
}
}
- public get activity(): android.support.v7.app.AppCompatActivity {
- let activity: android.support.v7.app.AppCompatActivity = this.owner._context;
+ public get activity(): androidx.appcompat.app.AppCompatActivity {
+ let activity: androidx.appcompat.app.AppCompatActivity = this.owner._context;
if (activity) {
return activity;
}
@@ -651,7 +651,7 @@ class AndroidFrame extends Observable implements AndroidFrameDefinition {
return bar;
}
- public get currentActivity(): android.support.v7.app.AppCompatActivity {
+ public get currentActivity(): androidx.appcompat.app.AppCompatActivity {
let activity = this.activity;
if (activity) {
return activity;
@@ -691,7 +691,7 @@ class AndroidFrame extends Observable implements AndroidFrameDefinition {
}
}
-function findPageForFragment(fragment: android.support.v4.app.Fragment, frame: Frame) {
+function findPageForFragment(fragment: androidx.fragment.app.Fragment, frame: Frame) {
const fragmentTag = fragment.getTag();
if (traceEnabled()) {
traceWrite(`Finding page for ${fragmentTag}.`, traceCategories.NativeLifecycle);
@@ -724,7 +724,7 @@ function findPageForFragment(fragment: android.support.v4.app.Fragment, frame: F
}
}
-function startActivity(activity: android.support.v7.app.AppCompatActivity, frameId: number) {
+function startActivity(activity: androidx.appcompat.app.AppCompatActivity, frameId: number) {
// TODO: Implicitly, we will open the same activity type as the current one
const intent = new android.content.Intent(activity, activity.getClass());
intent.setAction(android.content.Intent.ACTION_DEFAULT);
@@ -755,7 +755,7 @@ function ensureFragmentClass() {
require("ui/frame/fragment");
if (!fragmentClass) {
- throw new Error("Failed to initialize the extended android.support.v4.app.Fragment class");
+ throw new Error("Failed to initialize the extended androidx.fragment.app.Fragment class");
}
}
@@ -773,7 +773,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
public entry: BackstackEntry;
@profile
- public onHiddenChanged(fragment: android.support.v4.app.Fragment, hidden: boolean, superFunc: Function): void {
+ public onHiddenChanged(fragment: androidx.fragment.app.Fragment, hidden: boolean, superFunc: Function): void {
if (traceEnabled()) {
traceWrite(`${fragment}.onHiddenChanged(${hidden})`, traceCategories.NativeLifecycle);
}
@@ -809,7 +809,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onCreate(fragment: android.support.v4.app.Fragment, savedInstanceState: android.os.Bundle, superFunc: Function): void {
+ public onCreate(fragment: androidx.fragment.app.Fragment, savedInstanceState: android.os.Bundle, superFunc: Function): void {
if (traceEnabled()) {
traceWrite(`${fragment}.onCreate(${savedInstanceState})`, traceCategories.NativeLifecycle);
}
@@ -830,7 +830,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onCreateView(fragment: android.support.v4.app.Fragment, inflater: android.view.LayoutInflater, container: android.view.ViewGroup, savedInstanceState: android.os.Bundle, superFunc: Function): android.view.View {
+ public onCreateView(fragment: androidx.fragment.app.Fragment, inflater: android.view.LayoutInflater, container: android.view.ViewGroup, savedInstanceState: android.os.Bundle, superFunc: Function): android.view.View {
if (traceEnabled()) {
traceWrite(`${fragment}.onCreateView(inflater, container, ${savedInstanceState})`, traceCategories.NativeLifecycle);
}
@@ -901,7 +901,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onSaveInstanceState(fragment: android.support.v4.app.Fragment, outState: android.os.Bundle, superFunc: Function): void {
+ public onSaveInstanceState(fragment: androidx.fragment.app.Fragment, outState: android.os.Bundle, superFunc: Function): void {
if (traceEnabled()) {
traceWrite(`${fragment}.onSaveInstanceState(${outState})`, traceCategories.NativeLifecycle);
}
@@ -909,7 +909,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onDestroyView(fragment: android.support.v4.app.Fragment, superFunc: Function): void {
+ public onDestroyView(fragment: androidx.fragment.app.Fragment, superFunc: Function): void {
if (traceEnabled()) {
traceWrite(`${fragment}.onDestroyView()`, traceCategories.NativeLifecycle);
}
@@ -918,7 +918,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onDestroy(fragment: android.support.v4.app.Fragment, superFunc: Function): void {
+ public onDestroy(fragment: androidx.fragment.app.Fragment, superFunc: Function): void {
if (traceEnabled()) {
traceWrite(`${fragment}.onDestroy()`, traceCategories.NativeLifecycle);
}
@@ -945,12 +945,12 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
}
@profile
- public onStop(fragment: android.support.v4.app.Fragment, superFunc: Function): void {
+ public onStop(fragment: androidx.fragment.app.Fragment, superFunc: Function): void {
superFunc.call(fragment);
}
@profile
- public toStringOverride(fragment: android.support.v4.app.Fragment, superFunc: Function): string {
+ public toStringOverride(fragment: androidx.fragment.app.Fragment, superFunc: Function): string {
const entry = this.entry;
if (entry) {
return `${entry.fragmentTag}<${entry.resolvedPage}>`;
@@ -968,7 +968,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
}
@profile
- public onCreate(activity: android.support.v7.app.AppCompatActivity, savedInstanceState: android.os.Bundle, intentOrSuperFunc: android.content.Intent | Function, superFunc?: Function): void {
+ public onCreate(activity: androidx.appcompat.app.AppCompatActivity, savedInstanceState: android.os.Bundle, intentOrSuperFunc: android.content.Intent | Function, superFunc?: Function): void {
if (traceEnabled()) {
traceWrite(`Activity.onCreate(${savedInstanceState})`, traceCategories.NativeLifecycle);
}
@@ -1012,7 +1012,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
}
@profile
- public onSaveInstanceState(activity: android.support.v7.app.AppCompatActivity, outState: android.os.Bundle, superFunc: Function): void {
+ public onSaveInstanceState(activity: androidx.appcompat.app.AppCompatActivity, outState: android.os.Bundle, superFunc: Function): void {
superFunc.call(activity, outState);
const rootView = this._rootView;
if (rootView instanceof Frame) {
@@ -1024,7 +1024,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
}
@profile
- public onNewIntent(activity: android.support.v7.app.AppCompatActivity, intent: android.content.Intent, superSetIntentFunc: Function, superFunc: Function): void {
+ public onNewIntent(activity: androidx.appcompat.app.AppCompatActivity, intent: android.content.Intent, superSetIntentFunc: Function, superFunc: Function): void {
superFunc.call(activity, intent);
superSetIntentFunc.call(activity, intent);
@@ -1190,7 +1190,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
});
}
- public resetActivityContent(activity: android.support.v7.app.AppCompatActivity): void {
+ public resetActivityContent(activity: androidx.appcompat.app.AppCompatActivity): void {
if (this._rootView) {
const manager = this._rootView._getFragmentManager();
manager.executePendingTransactions();
@@ -1209,7 +1209,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
// 3. Livesync if rootView has no custom _onLivesync. this._rootView should have been cleared upfront. Launch event should not fired
// 4. _resetRootView method. this._rootView should have been cleared upfront. Launch event should not fired
private setActivityContent(
- activity: android.support.v7.app.AppCompatActivity,
+ activity: androidx.appcompat.app.AppCompatActivity,
savedInstanceState: android.os.Bundle,
fireLaunchEvent: boolean
): void {
@@ -1300,10 +1300,10 @@ const notifyLaunch = profile("notifyLaunch", function notifyLaunch(intent: andro
return launchArgs.root;
});
-export function setActivityCallbacks(activity: android.support.v7.app.AppCompatActivity): void {
+export function setActivityCallbacks(activity: androidx.appcompat.app.AppCompatActivity): void {
activity[CALLBACKS] = new ActivityCallbacksImplementation();
}
-export function setFragmentCallbacks(fragment: android.support.v4.app.Fragment): void {
+export function setFragmentCallbacks(fragment: androidx.fragment.app.Fragment): void {
fragment[CALLBACKS] = new FragmentCallbacksImplementation();
}
diff --git a/tns-core-modules/ui/frame/frame.d.ts b/tns-core-modules/ui/frame/frame.d.ts
index 78ac207254..ef95ccb714 100644
--- a/tns-core-modules/ui/frame/frame.d.ts
+++ b/tns-core-modules/ui/frame/frame.d.ts
@@ -198,7 +198,7 @@ export class Frame extends View {
}
/**
- * Sets the extended android.support.v4.app.Fragment class to the Frame and navigation routine. An instance of this class will be created to represent the Page currently visible on the srceen. This method is available only for the Android platform.
+ * Sets the extended androidx.fragment.app.Fragment class to the Frame and navigation routine. An instance of this class will be created to represent the Page currently visible on the srceen. This method is available only for the Android platform.
*/
export function setFragmentClass(clazz: any): void;
@@ -398,12 +398,12 @@ export interface AndroidFrame extends Observable {
/**
* Gets the native [android Activity](http://developer.android.com/reference/android/app/Activity.html) instance associated with this Frame. In case of nested Frame objects, this property points to the activity of the root Frame.
*/
- activity: any /* android.support.v7.app.AppCompatActivity */;
+ activity: any /* androidx.appcompat.app.AppCompatActivity */;
/**
* Gets the current (foreground) activity for the application. This property will recursively traverse all existing Frame objects and check for own Activity property.
*/
- currentActivity: any /* android.support.v7.app.AppCompatActivity */;
+ currentActivity: any /* androidx.appcompat.app.AppCompatActivity */;
/**
* Gets the actionBar property of the currentActivity.
@@ -423,7 +423,7 @@ export interface AndroidFrame extends Observable {
cachePagesOnNavigate: boolean;
/**
- * Finds the native android.support.v4.app.Fragment instance created for the specified Page.
+ * Finds the native androidx.fragment.app.Fragment instance created for the specified Page.
* @param page The Page instance to search for.
*/
fragmentForPage(entry: BackstackEntry): any;
@@ -487,7 +487,7 @@ export interface iOSFrame {
//@endprivate
}
-export function setActivityCallbacks(activity: any /*android.support.v7.app.AppCompatActivity*/): void;
+export function setActivityCallbacks(activity: any /*androidx.appcompat.app.AppCompatActivity*/): void;
//@private
/**
* @private
@@ -496,5 +496,5 @@ export function reloadPage(): void;
/**
* @private
*/
-export function setFragmentCallbacks(fragment: any /*android.support.v4.app.Fragment*/): void;
+export function setFragmentCallbacks(fragment: any /*androidx.fragment.app.Fragment*/): void;
//@endprivate
diff --git a/tns-core-modules/ui/gestures/gestures.android.ts b/tns-core-modules/ui/gestures/gestures.android.ts
index b86f738174..f6d85fb918 100644
--- a/tns-core-modules/ui/gestures/gestures.android.ts
+++ b/tns-core-modules/ui/gestures/gestures.android.ts
@@ -294,7 +294,7 @@ export class GesturesObserver extends GesturesObserverBase {
if (type & GestureTypes.tap || type & GestureTypes.doubleTap || type & GestureTypes.longPress) {
initializeTapAndDoubleTapGestureListener();
- this._simpleGestureDetector = new android.support.v4.view.GestureDetectorCompat(target._context, new TapAndDoubleTapGestureListener(this, this.target, type));
+ this._simpleGestureDetector = new androidx.core.view.GestureDetectorCompat(target._context, new TapAndDoubleTapGestureListener(this, this.target, type));
}
if (type & GestureTypes.pinch) {
@@ -304,7 +304,7 @@ export class GesturesObserver extends GesturesObserverBase {
if (type & GestureTypes.swipe) {
initializeSwipeGestureListener();
- this._swipeGestureDetector = new android.support.v4.view.GestureDetectorCompat(target._context, new SwipeGestureListener(this, this.target));
+ this._swipeGestureDetector = new androidx.core.view.GestureDetectorCompat(target._context, new SwipeGestureListener(this, this.target));
}
if (type & GestureTypes.pan) {
diff --git a/tns-core-modules/ui/page/page.android.ts b/tns-core-modules/ui/page/page.android.ts
index 92720e252d..48243f85ff 100644
--- a/tns-core-modules/ui/page/page.android.ts
+++ b/tns-core-modules/ui/page/page.android.ts
@@ -59,7 +59,7 @@ export class Page extends PageBase {
[statusBarStyleProperty.getDefault](): { color: number, systemUiVisibility: number } {
if (device.sdkVersion >= "21") {
- const window = (this._context).getWindow();
+ const window = (this._context).getWindow();
const decorView = window.getDecorView();
return {
@@ -72,7 +72,7 @@ export class Page extends PageBase {
}
[statusBarStyleProperty.setNative](value: "dark" | "light" | { color: number, systemUiVisibility: number }) {
if (device.sdkVersion >= "21") {
- const window = (this._context).getWindow();
+ const window = (this._context).getWindow();
const decorView = window.getDecorView();
if (value === "light") {
@@ -91,7 +91,7 @@ export class Page extends PageBase {
[androidStatusBarBackgroundProperty.getDefault](): number {
if (device.sdkVersion >= "21") {
- const window = (this._context).getWindow();
+ const window = (this._context).getWindow();
return (window).getStatusBarColor();
}
@@ -99,7 +99,7 @@ export class Page extends PageBase {
}
[androidStatusBarBackgroundProperty.setNative](value: number | Color) {
if (device.sdkVersion >= "21") {
- const window = (this._context).getWindow();
+ const window = (this._context).getWindow();
const color = value instanceof Color ? value.android : value;
(window).setStatusBarColor(color);
}
diff --git a/tns-core-modules/ui/search-bar/search-bar.android.ts b/tns-core-modules/ui/search-bar/search-bar.android.ts
index c059dee029..2e9befcd34 100644
--- a/tns-core-modules/ui/search-bar/search-bar.android.ts
+++ b/tns-core-modules/ui/search-bar/search-bar.android.ts
@@ -12,11 +12,11 @@ const SEARCHTEXT = Symbol("searchText");
const QUERY = Symbol("query");
interface QueryTextListener {
- new (owner: SearchBar): android.support.v7.widget.SearchView.OnQueryTextListener;
+ new (owner: SearchBar): androidx.appcompat.widget.SearchView.OnQueryTextListener;
}
interface CloseListener {
- new (owner: SearchBar): android.support.v7.widget.SearchView.OnCloseListener;
+ new (owner: SearchBar): androidx.appcompat.widget.SearchView.OnCloseListener;
}
let QueryTextListener: QueryTextListener;
@@ -27,8 +27,8 @@ function initializeNativeClasses(): void {
return;
}
- @Interfaces([android.support.v7.widget.SearchView.OnQueryTextListener])
- class CompatQueryTextListenerImpl extends java.lang.Object implements android.support.v7.widget.SearchView.OnQueryTextListener {
+ @Interfaces([androidx.appcompat.widget.SearchView.OnQueryTextListener])
+ class CompatQueryTextListenerImpl extends java.lang.Object implements androidx.appcompat.widget.SearchView.OnQueryTextListener {
constructor(private owner: SearchBar) {
super();
return global.__native(this);
@@ -60,8 +60,8 @@ function initializeNativeClasses(): void {
}
}
- @Interfaces([android.support.v7.widget.SearchView.OnCloseListener])
- class CompatCloseListenerImpl extends java.lang.Object implements android.support.v7.widget.SearchView.OnCloseListener {
+ @Interfaces([androidx.appcompat.widget.SearchView.OnCloseListener])
+ class CompatCloseListenerImpl extends java.lang.Object implements androidx.appcompat.widget.SearchView.OnCloseListener {
constructor(private owner: SearchBar) {
super();
return global.__native(this);
@@ -105,7 +105,7 @@ function enableUserInteractionSearchView(nativeView: any, value: boolean) {
}
export class SearchBar extends SearchBarBase {
- nativeViewProtected: android.support.v7.widget.SearchView;
+ nativeViewProtected: androidx.appcompat.widget.SearchView;
private _searchTextView: android.widget.TextView;
private _searchPlate: android.widget.LinearLayout;
@@ -123,7 +123,7 @@ export class SearchBar extends SearchBarBase {
}
public createNativeView() {
- const nativeView = new android.support.v7.widget.SearchView(this._context)
+ const nativeView = new androidx.appcompat.widget.SearchView(this._context)
nativeView.setIconified(false);
return nativeView;
}
diff --git a/tns-core-modules/ui/styling/background.android.ts b/tns-core-modules/ui/styling/background.android.ts
index 123357b5d2..c23a327c01 100644
--- a/tns-core-modules/ui/styling/background.android.ts
+++ b/tns-core-modules/ui/styling/background.android.ts
@@ -27,7 +27,7 @@ export module ad {
function isSetColorFilterOnlyWidget(nativeView: android.view.View): boolean {
return (
nativeView instanceof android.widget.Button ||
- (nativeView instanceof android.support.v7.widget.Toolbar
+ (nativeView instanceof androidx.appcompat.widget.Toolbar
&& getSDK() >= 21 // There is an issue with the DrawableContainer which was fixed for API version 21 and above: https://code.google.com/p/android/issues/detail?id=60183
)
);
diff --git a/tns-core-modules/ui/tab-view/tab-view.android.ts b/tns-core-modules/ui/tab-view/tab-view.android.ts
index cb7b098c10..fd11e8dac7 100644
--- a/tns-core-modules/ui/tab-view/tab-view.android.ts
+++ b/tns-core-modules/ui/tab-view/tab-view.android.ts
@@ -21,7 +21,7 @@ const PRIMARY_COLOR = "colorPrimary";
const DEFAULT_ELEVATION = 4;
interface PagerAdapter {
- new(owner: TabView): android.support.v4.view.PagerAdapter;
+ new(owner: TabView): androidx.viewpager.widget.PagerAdapter;
}
const TABID = "_tabId";
@@ -84,10 +84,10 @@ function initializeNativeClasses() {
const POSITION_UNCHANGED = -1;
const POSITION_NONE = -2;
- class FragmentPagerAdapter extends android.support.v4.view.PagerAdapter {
+ class FragmentPagerAdapter extends androidx.viewpager.widget.PagerAdapter {
public items: Array;
- private mCurTransaction: android.support.v4.app.FragmentTransaction;
- private mCurrentPrimaryItem: android.support.v4.app.Fragment;
+ private mCurTransaction: androidx.fragment.app.FragmentTransaction;
+ private mCurrentPrimaryItem: androidx.fragment.app.Fragment;
constructor(public owner: TabView) {
super();
@@ -123,7 +123,7 @@ function initializeNativeClasses() {
const itemId = this.getItemId(position);
const name = makeFragmentName(container.getId(), itemId);
- let fragment: android.support.v4.app.Fragment = fragmentManager.findFragmentByTag(name);
+ let fragment: androidx.fragment.app.Fragment = fragmentManager.findFragmentByTag(name);
if (fragment != null) {
this.mCurTransaction.attach(fragment);
} else {
@@ -155,7 +155,7 @@ function initializeNativeClasses() {
this.mCurTransaction = fragmentManager.beginTransaction();
}
- const fragment: android.support.v4.app.Fragment = object;
+ const fragment: androidx.fragment.app.Fragment = object;
this.mCurTransaction.detach(fragment);
if (this.mCurrentPrimaryItem === fragment) {
@@ -170,7 +170,7 @@ function initializeNativeClasses() {
}
setPrimaryItem(container: android.view.ViewGroup, position: number, object: java.lang.Object): void {
- const fragment = object;
+ const fragment = object;
if (fragment !== this.mCurrentPrimaryItem) {
if (this.mCurrentPrimaryItem != null) {
this.mCurrentPrimaryItem.setMenuVisibility(false);
@@ -200,7 +200,7 @@ function initializeNativeClasses() {
}
isViewFromObject(view: android.view.View, object: java.lang.Object): boolean {
- return (object).getView() === view;
+ return (object).getView() === view;
}
saveState(): android.os.Parcelable {
@@ -309,7 +309,7 @@ export class TabViewItem extends TabViewItemBase {
}
}
- public _getChildFragmentManager(): android.support.v4.app.FragmentManager {
+ public _getChildFragmentManager(): androidx.fragment.app.FragmentManager {
const tabView = this.parent as TabView;
let tabFragment = null;
const fragmentManager = tabView._getFragmentManager();
@@ -367,7 +367,7 @@ export class TabViewItem extends TabViewItemBase {
}
function setElevation(grid: org.nativescript.widgets.GridLayout, tabLayout: org.nativescript.widgets.TabLayout) {
- const compat = android.support.v4.view.ViewCompat;
+ const compat = androidx.core.view.ViewCompat;
if (compat.setElevation) {
const val = DEFAULT_ELEVATION * layout.getDisplayDensity();
compat.setElevation(grid, val);
@@ -387,8 +387,8 @@ function iterateIndexRange(index: number, eps: number, lastIndex: number, callba
export class TabView extends TabViewBase {
private _tabLayout: org.nativescript.widgets.TabLayout;
- private _viewPager: android.support.v4.view.ViewPager;
- private _pagerAdapter: android.support.v4.view.PagerAdapter;
+ private _viewPager: androidx.viewpager.widget.ViewPager;
+ private _pagerAdapter: androidx.viewpager.widget.PagerAdapter;
private _androidViewId: number = -1;
constructor() {
diff --git a/tns-core-modules/ui/tab-view/tab-view.d.ts b/tns-core-modules/ui/tab-view/tab-view.d.ts
index 471f814606..b5a5c95224 100644
--- a/tns-core-modules/ui/tab-view/tab-view.d.ts
+++ b/tns-core-modules/ui/tab-view/tab-view.d.ts
@@ -92,7 +92,7 @@ export class TabView extends View {
/**
* Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.
*/
- android: any /* android.view.View */; //android.support.v4.view.ViewPager;
+ android: any /* android.view.View */; //androidx.core.view.ViewPager;
/**
* Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.
diff --git a/tns-core-modules/utils/utils.android.ts b/tns-core-modules/utils/utils.android.ts
index b050042f94..00f566b756 100644
--- a/tns-core-modules/utils/utils.android.ts
+++ b/tns-core-modules/utils/utils.android.ts
@@ -119,7 +119,7 @@ export module ad {
if (nativeView instanceof android.view.View) {
windowToken = nativeView.getWindowToken()
- } else if (androidApp.foregroundActivity instanceof android.support.v7.app.AppCompatActivity) {
+ } else if (androidApp.foregroundActivity instanceof androidx.appcompat.app.AppCompatActivity) {
const decorView = androidApp.foregroundActivity.getWindow().getDecorView();
windowToken = decorView ? decorView.getWindowToken() : null;
}
@@ -183,7 +183,7 @@ export module ad {
let result = 0;
try {
if (!attr) {
- attr = java.lang.Class.forName("android.support.v7.appcompat.R$attr")
+ attr = java.lang.Class.forName("androidx.appcompat.R$attr")
}
let colorID = 0;
@@ -335,7 +335,7 @@ Applications cannot access internal storage of other application on Android (see
const providerName = `${context.getPackageName()}.provider`;
traceWrite(`fully-qualified provider name [${providerName}]`, traceCategories.Debug);
- const apkURI = android.support.v4.content.FileProvider.getUriForFile(
+ const apkURI = androidx.core.content.FileProvider.getUriForFile(
context,
providerName,
new java.io.File(filePath),
diff --git a/tns-platform-declarations/android-17.d.ts b/tns-platform-declarations/android-17.d.ts
index d997003fd6..b6b58815a2 100644
--- a/tns-platform-declarations/android-17.d.ts
+++ b/tns-platform-declarations/android-17.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-18.d.ts b/tns-platform-declarations/android-18.d.ts
index d25910c048..5d6d6299fa 100644
--- a/tns-platform-declarations/android-18.d.ts
+++ b/tns-platform-declarations/android-18.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-19.d.ts b/tns-platform-declarations/android-19.d.ts
index a9b7974582..3088cb97be 100644
--- a/tns-platform-declarations/android-19.d.ts
+++ b/tns-platform-declarations/android-19.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-20.d.ts b/tns-platform-declarations/android-20.d.ts
index 318a25bbca..bdec75bdaf 100644
--- a/tns-platform-declarations/android-20.d.ts
+++ b/tns-platform-declarations/android-20.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-21.d.ts b/tns-platform-declarations/android-21.d.ts
index 0e0a3170ed..a4aa4cdd4d 100644
--- a/tns-platform-declarations/android-21.d.ts
+++ b/tns-platform-declarations/android-21.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-22.d.ts b/tns-platform-declarations/android-22.d.ts
index 7387fc4e21..fab8e7b190 100644
--- a/tns-platform-declarations/android-22.d.ts
+++ b/tns-platform-declarations/android-22.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-23.d.ts b/tns-platform-declarations/android-23.d.ts
index 0ddea7c17d..9514cfc7b7 100644
--- a/tns-platform-declarations/android-23.d.ts
+++ b/tns-platform-declarations/android-23.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-24.d.ts b/tns-platform-declarations/android-24.d.ts
index f55b3610e3..ccdb237b16 100644
--- a/tns-platform-declarations/android-24.d.ts
+++ b/tns-platform-declarations/android-24.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-25.d.ts b/tns-platform-declarations/android-25.d.ts
index e151a2d302..9f1efddd1e 100644
--- a/tns-platform-declarations/android-25.d.ts
+++ b/tns-platform-declarations/android-25.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-26.d.ts b/tns-platform-declarations/android-26.d.ts
index 6c6460273f..c913a0e139 100644
--- a/tns-platform-declarations/android-26.d.ts
+++ b/tns-platform-declarations/android-26.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-27.d.ts b/tns-platform-declarations/android-27.d.ts
index 40f751f590..da3a5c494b 100644
--- a/tns-platform-declarations/android-27.d.ts
+++ b/tns-platform-declarations/android-27.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android-28.d.ts b/tns-platform-declarations/android-28.d.ts
index 77e48b2e16..c65cfd7f55 100644
--- a/tns-platform-declarations/android-28.d.ts
+++ b/tns-platform-declarations/android-28.d.ts
@@ -1,3 +1,3 @@
///
-///
+///
///
\ No newline at end of file
diff --git a/tns-platform-declarations/android/android-support-17.d.ts b/tns-platform-declarations/android/android-support-17.d.ts
deleted file mode 100644
index ef0aa7ec8b..0000000000
--- a/tns-platform-declarations/android/android-support-17.d.ts
+++ /dev/null
@@ -1,30526 +0,0 @@
-declare module android {
- export module support {
- export module annotation {
- export class AnimRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.AnimRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class AnimatorRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.AnimatorRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class AnyRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.AnyRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class AnyThread extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.AnyThread interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class ArrayRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.ArrayRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class AttrRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.AttrRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class BinderThread extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.BinderThread interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class BoolRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.BoolRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class CallSuper extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.CallSuper interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class CheckResult extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.CheckResult interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- suggest(): string;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public suggest(): string;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class ColorInt extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.ColorInt interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class ColorLong extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.ColorLong interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class ColorRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.ColorRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class DimenRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.DimenRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class Dimension extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.Dimension interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- unit(): number;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public static PX: number;
- public static SP: number;
- public static DP: number;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- public unit(): number;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class DrawableRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.DrawableRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class FloatRange extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.FloatRange interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- from(): number;
- to(): number;
- fromInclusive(): boolean;
- toInclusive(): boolean;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public toInclusive(): boolean;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public fromInclusive(): boolean;
- public annotationType(): java.lang.Class;
- public from(): number;
- public toString(): string;
- public to(): number;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class FontRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.FontRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class FractionRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.FractionRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class GuardedBy extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.GuardedBy interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): string;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public value(): string;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class HalfFloat extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.HalfFloat interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class IdRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.IdRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class IntDef extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.IntDef interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): native.Array;
- flag(): boolean;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public value(): native.Array;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- public flag(): boolean;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class IntRange extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.IntRange interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- from(): number;
- to(): number;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public from(): number;
- public toString(): string;
- public to(): number;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class IntegerRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.IntegerRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class InterpolatorRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.InterpolatorRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class Keep extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.Keep interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class LayoutRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.LayoutRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class MainThread extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.MainThread interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class MenuRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.MenuRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class NavigationRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.NavigationRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class NonNull extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.NonNull interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class Nullable extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.Nullable interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class PluralsRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.PluralsRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class Px extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.Px interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class RawRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RawRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class RequiresApi extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RequiresApi interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): number;
- api(): number;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public api(): number;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public value(): number;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class RequiresPermission extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RequiresPermission interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): string;
- allOf(): native.Array;
- anyOf(): native.Array;
- conditional(): boolean;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public allOf(): native.Array;
- public conditional(): boolean;
- public hashCode(): number;
- public value(): string;
- public anyOf(): native.Array;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- export module RequiresPermission {
- export class Read extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RequiresPermission$Read interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): android.support.annotation.RequiresPermission;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public equals(param0: any): boolean;
- public toString(): string;
- public annotationType(): java.lang.Class;
- public value(): android.support.annotation.RequiresPermission;
- public hashCode(): number;
- }
- export class Write extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RequiresPermission$Write interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): android.support.annotation.RequiresPermission;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public equals(param0: any): boolean;
- public toString(): string;
- public annotationType(): java.lang.Class;
- public value(): android.support.annotation.RequiresPermission;
- public hashCode(): number;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class RestrictTo extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.RestrictTo interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): native.Array;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public value(): native.Array;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- export module RestrictTo {
- export class Scope {
- public static class: java.lang.Class;
- public static LIBRARY: android.support.annotation.RestrictTo.Scope;
- public static LIBRARY_GROUP: android.support.annotation.RestrictTo.Scope;
- public static GROUP_ID: android.support.annotation.RestrictTo.Scope;
- public static TESTS: android.support.annotation.RestrictTo.Scope;
- public static SUBCLASSES: android.support.annotation.RestrictTo.Scope;
- public static valueOf(param0: string): android.support.annotation.RestrictTo.Scope;
- public static values(): native.Array;
- public static valueOf(param0: java.lang.Class, param1: string): java.lang.Enum;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class Size extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.Size interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): number;
- min(): number;
- max(): number;
- multiple(): number;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public max(): number;
- public min(): number;
- public multiple(): number;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public value(): number;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class StringDef extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.StringDef interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- value(): native.Array;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- public value(): native.Array;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class StringRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.StringRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class StyleRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.StyleRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class StyleableRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.StyleableRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class TransitionRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.TransitionRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class UiThread extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.UiThread interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class VisibleForTesting extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.VisibleForTesting interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- otherwise(): number;
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public static PROTECTED: number;
- public static NONE: number;
- public static PRIVATE: number;
- public static PACKAGE_PRIVATE: number;
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public otherwise(): number;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class WorkerThread extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.WorkerThread interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module annotation {
- export class XmlRes extends java.lang.Object implements java.lang.annotation.Annotation {
- public static class: java.lang.Class;
- /**
- * Constructs a new instance of the android.support.annotation.XmlRes interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
- */
- public constructor(implementation: {
- annotationType(): java.lang.Class;
- equals(param0: any): boolean;
- hashCode(): number;
- toString(): string;
- });
- public constructor();
- public hashCode(): number;
- public equals(param0: any): boolean;
- public annotationType(): java.lang.Class;
- public toString(): string;
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module compat {
- export class BuildConfig extends java.lang.Object {
- public static class: java.lang.Class;
- public static DEBUG: boolean;
- public static APPLICATION_ID: string;
- public static BUILD_TYPE: string;
- public static FLAVOR: string;
- public static VERSION_CODE: number;
- public static VERSION_NAME: string;
- public constructor();
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module coreui {
- export class BuildConfig extends java.lang.Object {
- public static class: java.lang.Class;
- public static DEBUG: boolean;
- public static APPLICATION_ID: string;
- public static BUILD_TYPE: string;
- public static FLAVOR: string;
- public static VERSION_CODE: number;
- public static VERSION_NAME: string;
- public constructor();
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module coreutils {
- export class BuildConfig extends java.lang.Object {
- public static class: java.lang.Class;
- public static DEBUG: boolean;
- public static APPLICATION_ID: string;
- public static BUILD_TYPE: string;
- public static FLAVOR: string;
- public static VERSION_CODE: number;
- public static VERSION_NAME: string;
- public constructor();
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export class BuildConfig extends java.lang.Object {
- public static class: java.lang.Class;
- public static DEBUG: boolean;
- public static APPLICATION_ID: string;
- public static BUILD_TYPE: string;
- public static FLAVOR: string;
- public static VERSION_CODE: number;
- public static VERSION_NAME: string;
- public constructor();
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class BaselineLayout extends android.view.ViewGroup {
- public static class: java.lang.Class;
- public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
- public requestTransparentRegion(param0: android.view.View): void;
- public startActionModeForChild(param0: android.view.View, param1: android.view.ActionMode.Callback): android.view.ActionMode;
- public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
- public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
- public invalidateChildInParent(param0: native.Array, param1: android.graphics.Rect): android.view.ViewParent;
- public getBaseline(): number;
- public isLayoutRequested(): boolean;
- public clearChildFocus(param0: android.view.View): void;
- public addView(param0: android.view.View, param1: number, param2: android.view.ViewGroup.LayoutParams): void;
- public requestDisallowInterceptTouchEvent(param0: boolean): void;
- public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
- public requestChildRectangleOnScreen(param0: android.view.View, param1: android.graphics.Rect, param2: boolean): boolean;
- public showContextMenuForChild(param0: android.view.View): boolean;
- public getParent(): android.view.ViewParent;
- public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
- public addView(param0: android.view.View, param1: number): void;
- public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
- public sendAccessibilityEvent(param0: number): void;
- public requestLayout(): void;
- public requestChildFocus(param0: android.view.View, param1: android.view.View): void;
- public onMeasure(param0: number, param1: number): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet, param2: number);
- public bringChildToFront(param0: android.view.View): void;
- public removeView(param0: android.view.View): void;
- public updateViewLayout(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public getParentForAccessibility(): android.view.ViewParent;
- public invalidateChild(param0: android.view.View, param1: android.graphics.Rect): void;
- public addView(param0: android.view.View, param1: number, param2: number): void;
- public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
- public createContextMenu(param0: android.view.ContextMenu): void;
- public recomputeViewAttributes(param0: android.view.View): void;
- public focusableViewAvailable(param0: android.view.View): void;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable): void;
- public addView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public constructor(param0: android.content.Context);
- public addView(param0: android.view.View): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet);
- public focusSearch(param0: android.view.View, param1: number): android.view.View;
- public childDrawableStateChanged(param0: android.view.View): void;
- public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void;
- public getChildVisibleRect(param0: android.view.View, param1: android.graphics.Rect, param2: android.graphics.Point): boolean;
- public requestSendAccessibilityEvent(param0: android.view.View, param1: android.view.accessibility.AccessibilityEvent): boolean;
- public requestFitSystemWindows(): void;
- public focusSearch(param0: number): android.view.View;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class BottomNavigationItemView extends android.widget.FrameLayout implements android.support.v7.view.menu.MenuView.ItemView {
- public static class: java.lang.Class;
- public static INVALID_ITEM_POSITION: number;
- public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
- public startActionModeForChild(param0: android.view.View, param1: android.view.ActionMode.Callback): android.view.ActionMode;
- public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
- public setTitle(param0: string): void;
- public invalidateChildInParent(param0: native.Array, param1: android.graphics.Rect): android.view.ViewParent;
- public isLayoutRequested(): boolean;
- public clearChildFocus(param0: android.view.View): void;
- public showsIcon(): boolean;
- public getItemPosition(): number;
- public showContextMenuForChild(param0: android.view.View): boolean;
- public addView(param0: android.view.View, param1: number): void;
- public setCheckable(param0: boolean): void;
- public setIcon(param0: android.graphics.drawable.Drawable): void;
- public setChecked(param0: boolean): void;
- public requestChildFocus(param0: android.view.View, param1: android.view.View): void;
- public setEnabled(param0: boolean): void;
- public bringChildToFront(param0: android.view.View): void;
- public updateViewLayout(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public setIconTintList(param0: android.content.res.ColorStateList): void;
- public getParentForAccessibility(): android.view.ViewParent;
- public setTextColor(param0: android.content.res.ColorStateList): void;
- public addView(param0: android.view.View, param1: number, param2: number): void;
- public getItemData(): android.support.v7.view.menu.MenuItemImpl;
- public createContextMenu(param0: android.view.ContextMenu): void;
- public addView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public childDrawableStateChanged(param0: android.view.View): void;
- public getChildVisibleRect(param0: android.view.View, param1: android.graphics.Rect, param2: android.graphics.Point): boolean;
- public setItemPosition(param0: number): void;
- public requestFitSystemWindows(): void;
- public focusSearch(param0: number): android.view.View;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
- public requestTransparentRegion(param0: android.view.View): void;
- public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
- public initialize(param0: android.support.v7.view.menu.MenuItemImpl, param1: number): void;
- public addView(param0: android.view.View, param1: number, param2: android.view.ViewGroup.LayoutParams): void;
- public requestDisallowInterceptTouchEvent(param0: boolean): void;
- public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
- public requestChildRectangleOnScreen(param0: android.view.View, param1: android.graphics.Rect, param2: boolean): boolean;
- public prefersCondensedTitle(): boolean;
- public getParent(): android.view.ViewParent;
- public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
- public onCreateDrawableState(param0: number): native.Array;
- public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
- public sendAccessibilityEvent(param0: number): void;
- public setItemBackground(param0: number): void;
- public requestLayout(): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet, param2: number);
- public setShiftingMode(param0: boolean): void;
- public removeView(param0: android.view.View): void;
- public setShortcut(param0: boolean, param1: string): void;
- public invalidateChild(param0: android.view.View, param1: android.graphics.Rect): void;
- public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
- public recomputeViewAttributes(param0: android.view.View): void;
- public focusableViewAvailable(param0: android.view.View): void;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable): void;
- public constructor(param0: android.content.Context);
- public addView(param0: android.view.View): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet);
- public focusSearch(param0: android.view.View, param1: number): android.view.View;
- public requestSendAccessibilityEvent(param0: android.view.View, param1: android.view.accessibility.AccessibilityEvent): boolean;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class BottomNavigationMenu extends android.support.v7.view.menu.MenuBuilder {
- public static class: java.lang.Class;
- public static MAX_ITEM_COUNT: number;
- public constructor(param0: android.content.Context);
- public addSubMenu(param0: number, param1: number, param2: number, param3: number): android.view.SubMenu;
- public addInternal(param0: number, param1: number, param2: number, param3: string): android.view.MenuItem;
- public addSubMenu(param0: string): android.view.SubMenu;
- public addSubMenu(param0: number): android.view.SubMenu;
- public addSubMenu(param0: number, param1: number, param2: number, param3: string): android.view.SubMenu;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class BottomNavigationMenuView extends android.view.ViewGroup implements android.support.v7.view.menu.MenuView {
- public static class: java.lang.Class;
- public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
- public startActionModeForChild(param0: android.view.View, param1: android.view.ActionMode.Callback): android.view.ActionMode;
- public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void;
- public setItemTextColor(param0: android.content.res.ColorStateList): void;
- public invalidateChildInParent(param0: native.Array, param1: android.graphics.Rect): android.view.ViewParent;
- public isLayoutRequested(): boolean;
- public clearChildFocus(param0: android.view.View): void;
- public buildMenuView(): void;
- public showContextMenuForChild(param0: android.view.View): boolean;
- public addView(param0: android.view.View, param1: number): void;
- public requestChildFocus(param0: android.view.View, param1: android.view.View): void;
- public bringChildToFront(param0: android.view.View): void;
- public updateViewLayout(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public setIconTintList(param0: android.content.res.ColorStateList): void;
- public getParentForAccessibility(): android.view.ViewParent;
- public addView(param0: android.view.View, param1: number, param2: number): void;
- public createContextMenu(param0: android.view.ContextMenu): void;
- public getWindowAnimations(): number;
- public addView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void;
- public getItemTextColor(): android.content.res.ColorStateList;
- public setItemBackgroundRes(param0: number): void;
- public childDrawableStateChanged(param0: android.view.View): void;
- public getChildVisibleRect(param0: android.view.View, param1: android.graphics.Rect, param2: android.graphics.Point): boolean;
- public updateMenuView(): void;
- public requestFitSystemWindows(): void;
- public focusSearch(param0: number): android.view.View;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void;
- public initialize(param0: android.support.v7.view.menu.MenuBuilder): void;
- public requestTransparentRegion(param0: android.view.View): void;
- public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
- public getItemBackgroundRes(): number;
- public addView(param0: android.view.View, param1: number, param2: android.view.ViewGroup.LayoutParams): void;
- public requestDisallowInterceptTouchEvent(param0: boolean): void;
- public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
- public requestChildRectangleOnScreen(param0: android.view.View, param1: android.graphics.Rect, param2: boolean): boolean;
- public getSelectedItemId(): number;
- public getParent(): android.view.ViewParent;
- public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
- public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void;
- public setPresenter(param0: android.support.design.internal.BottomNavigationPresenter): void;
- public sendAccessibilityEvent(param0: number): void;
- public requestLayout(): void;
- public onMeasure(param0: number, param1: number): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet, param2: number);
- public removeView(param0: android.view.View): void;
- public invalidateChild(param0: android.view.View, param1: android.graphics.Rect): void;
- public invalidateDrawable(param0: android.graphics.drawable.Drawable): void;
- public recomputeViewAttributes(param0: android.view.View): void;
- public focusableViewAvailable(param0: android.view.View): void;
- public unscheduleDrawable(param0: android.graphics.drawable.Drawable): void;
- public constructor(param0: android.content.Context);
- public addView(param0: android.view.View): void;
- public constructor(param0: android.content.Context, param1: android.util.AttributeSet);
- public getIconTintList(): android.content.res.ColorStateList;
- public focusSearch(param0: android.view.View, param1: number): android.view.View;
- public onLayout(param0: boolean, param1: number, param2: number, param3: number, param4: number): void;
- public requestSendAccessibilityEvent(param0: android.view.View, param1: android.view.accessibility.AccessibilityEvent): boolean;
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class BottomNavigationPresenter extends java.lang.Object implements android.support.v7.view.menu.MenuPresenter {
- public static class: java.lang.Class;
- public setId(param0: number): void;
- public setUpdateSuspended(param0: boolean): void;
- public getId(): number;
- public collapseItemActionView(param0: android.support.v7.view.menu.MenuBuilder, param1: android.support.v7.view.menu.MenuItemImpl): boolean;
- public onRestoreInstanceState(param0: android.os.Parcelable): void;
- public updateMenuView(param0: boolean): void;
- public expandItemActionView(param0: android.support.v7.view.menu.MenuBuilder, param1: android.support.v7.view.menu.MenuItemImpl): boolean;
- public setCallback(param0: android.support.v7.view.menu.MenuPresenter.Callback): void;
- public initForMenu(param0: android.content.Context, param1: android.support.v7.view.menu.MenuBuilder): void;
- public constructor();
- public onCloseMenu(param0: android.support.v7.view.menu.MenuBuilder, param1: boolean): void;
- public setBottomNavigationMenuView(param0: android.support.design.internal.BottomNavigationMenuView): void;
- public onSubMenuSelected(param0: android.support.v7.view.menu.SubMenuBuilder): boolean;
- public getMenuView(param0: android.view.ViewGroup): android.support.v7.view.menu.MenuView;
- public flagActionItems(): boolean;
- public onSaveInstanceState(): android.os.Parcelable;
- }
- export module BottomNavigationPresenter {
- export class SavedState extends java.lang.Object implements android.os.Parcelable {
- public static class: java.lang.Class;
- public static CREATOR: android.os.Parcelable.Creator;
- public describeContents(): number;
- public writeToParcel(param0: android.os.Parcel, param1: number): void;
- }
- }
- }
- }
- }
-}
-
-declare module android {
- export module support {
- export module design {
- export module internal {
- export class ForegroundLinearLayout extends android.support.v7.widget.LinearLayoutCompat {
- public static class: java.lang.Class