-
1 votesanswersviews
如何在Android Studio中调试NativeScript Java代码?
我'm quite new to NativeScript. Currently, one of my projects is using NativeScript to develop cross-platform app. It has a 3rd-party lib which is written in java. But the result is not as good as I ex... -
1 votesanswersviews
NativeScript会识别页面是否完全呈现
如果NativeScript页面完全呈现并且对用户可见,如何识别? Best是一种方法,我可以在其中调用timestamp / console.log . NativeScript有两种版本,NS Core和NS Angular . 我不太确定这是否符合要求? 对于NS / Cores:页面加载事件的事件处理程序 . function pageLoaded(){ console.lo... -
-1 votesanswersviews
ActivityIndicator不显示外部stacklayout
我有这个简单的页面布局: <ActionBar title="Events" class="action-bar"></ActionBar> <StackLayout class="page"> <ListView [items]="events" class=&quo... -
0 votesanswersviews
将ObservableArray传递给Model对话框参数显示RadListView数据有[Object Object]
我已将Observable数组传递给模态对话框参数 . 打开模态对话框时,我从radlistview获得了一个具有[object Object]的值 . 但如果我使用listview它的工作正常 . 只有使用radlistview我才能解决这个问题 . HomeComponent.ts: public obsArr: ObservableArray<App>; ngOnInit... -
0 votesanswersviews
强制重新加载Nativescript中的组件
我想在导航到同一页面时重新创建并动画相同的视图 . this.routerExtension.navigate(['/home']); 目前,如果我在主页并且在触发上述代码的同一页面中点击按钮,则不重新加载该组件 . 我想强制重新加载并将相同的视图设置为堆栈动画 . -
1 votesanswersviews
本机模块在nativescript中无法正常工作
我试图使用这个android包在nativescript中制作模糊效果 . https://github.com/wasabeef/Blurry 所以在nativescript包括我的app.gradle中的编译在/app/App_Resources/Android/app.gradle中 然后重建一切都很好, Build 很好 . 但是当我开始使用库时,我尝试使用console.dir(glob... -
0 votesanswersviews
未找到Nativescript / Angular - 模板中的绑定点击功能
试图用两个可点击的项目创建一个动作栏,这将导致不同的路线,但我似乎无法将简单的功能绑定到点击事件 . 这是我的模板: <ActionBar title="Map" icon="" class="action-bar"> <ActionItem (tap)="goToTextMode()"> ... -
0 votesanswersviews
NativeScript / NativeScript Angular - 如何为页面设置背景图像?
我正在尝试创建一个背景图片,但我似乎无法这样做..我看了这个问题: Nativescript background-image fullscreen 但没有任何运气 . 它似乎没有使用 nativescript-angular ,因为当你按照建议使用 <Page></Page> 时会出现错误 . 并且this issue说 Page 不应该't be used with a... -
0 votesanswersviews
Nativescript Angular iOS - “registerElement”导致“Segementation fault:11”
在过去的两个月里,我一直在为Android的Nativescript应用程序工作,现在我想把它带到iOS,所以我买了一台MacBook并设置了一切(已经花了好几天) . 现在,我可以在没有错误的情况下为iOS构建应用程序,但它不能在模拟器上运行 . 它抛出的错误非常不明确: (UIKitApplication:org.nativescript.BeYou[0x3de3][1786][11743])... -
0 votesanswersviews
如何从Nativescript中的兄弟路由传递参数到子路由
我在我的应用程序中使用 <page-router-outlet> 作为主要插座 . 在其中一个.html页面中,我有几个导航按钮和一个 <router-outlet> ,因为我想将这些按钮的结果渲染到 <router-outlet> . 在路由级别,该页面具有子路由: const groceryListRoutes: Routes = [ { pa... -
0 votesanswersviews
如何使用nativescript-angular预先填充radautocompletetextview
如何使用nativescript-angular预先填充radautocompletetextview? 这是我试图这样做的方式: HTML: <RadAutoCompleteTextView id="rice-cake" (didAutoComplete)="onTokenSelected($event)" marginTop="40px&... -
1 votesanswersviews
将NativeScript应用程序转换为Web应用程序
是否可以将NativeScript应用程序(Angular 5打字稿)转换为移动应用程序 . 通过谷歌搜索,我发现NativeScripting和nativescript-ng2-magic,但这没有多大用处 . 我的问题是如何将nativescript转换为Web代码?互联网上没有一个例子可以这样做 . 有人建议如何实现这一目标吗? -
0 votesanswersviews
NativeScript:XML模板到HTML
我是NativeScript的新手,我正在使用TypeScript,Angular和HTML开发NativeScript应用程序 . 我想在我的应用程序中使用this plugin .我成功安装了插件,没有遇到任何错误, tns run android 成功运行 .在文档中,他们已经定义了以XML方式使用它的方式: <Page xmlns="http://schemas.nativ... -
0 votesanswersviews
如何访问RadListView tkListItemSwipeTemplate中的项上下文
使用NativeScript 3 Angular 5 . 我需要允许用户在RadListView中刷一个项目以显示关于该项目的简短描述 . <RadListView [items]="featuredVideos" pullToRefresh="true" selectionBehavior=&quo... -
1 votesanswersviews
如何正确引用NativeScript 4中的模态
我用NativeScript Angular构建了一个应用程序(现在在v4.1上) . 我使用下面的代码在Android上设置状态栏颜色,通过使用角度路由可以很好地处理“常规”视图: if (isAndroid) { if (app.android && device.sdkVersion >= '21') { const nativeColor = new Co... -
1 votesanswersviews
NativeScript-Angular中Router-Outlet内的Page-Router-Outlet
我想使用NativeScript-Angular实现一个简单的应用程序行为,通常是使用导航栏和特定屏幕(例如ListView)路由到主屏幕,使用Page-Router-路由到详细信息屏幕Outlet,所以我可以使用Back Button Behavior创建历史记录 . 例如,WhatsApp有此行为,您可以访问导航栏中的联系人列表,并通过分页转到对话 . 我试图在互联网上找到一个样本,但没有成功... -
0 votesanswersviews
nativescript“安装Android SDK Platform 25”失败
我正在使用nativescript创建一个应用程序 . 我已经添加了android平台如下 tns platform add android --sdk 22 因为我想为API级别22构建 . 当我构建应用程序时,我收到以下错误 . at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl... -
0 votesanswersviews
nativescript-filter-select在angular 5版本中不起作用
我使用我的原生脚本项目的angular 5版本 . 我已经添加并遵循插件nativescript-filter-select的说明来过滤列表视图 . 它显示普通页面甚至没有得到错误 . .ts文件 import * as elementRegistryModule from 'nativescript-angular/element-registry'; elementRegistryModule... -
0 votesanswersviews
在nativescript中以angular角度导航到其他模块组件
我有如下配置的路由,当我在它加载的主要组件中添加LandingModuleComponent时,但如果我包含不同的模块则不行 . const routes: Routes = [ { path: '', redirectTo: '/landing', pathMatch: 'full' }, { path: 'landing', component: LandingModuleCo... -
0 votesanswersviews
NativeScript Angular应用程序中的安全访问
我开始学习 NativeScript Angular (我习惯使用 Angular 开发webapp /网站),我仍然对如何在NativeScript应用程序上创建一些限制访问,或限制特定路由和/或集合感到困惑的路线 . 例如,在Angular中我使用 uiRouter 来定义一些数据,如下所示: data: { requireLogin: true } 在每个页面转换中,我检查是否存在... -
0 votesanswersviews
Nativescript:页面路由器外部的角度绑定在iOS中不起作用
我在页面路由器插座外面有角度绑定问题 . 它们最初被评估,但是在值改变之后,虚假元素被移除,但是真实的元素不能在操场上重现该问题 . 不工作:https://github.com/epicuro/epicuro-ios-test 工作:https://play.nativescript.org/?template=play-ng&id=SGyB3g 5秒后的预期输出是两次看到文本“否”,而... -
1 votesanswersviews
无法在NativeScript中获取元素的本机视图
我试图用Angular改变NativeScript中一些Switch元素的宽度,因为在我看来它们太小了 . 我发现通过NativeScript的CSS子集无法做到这一点,这意味着我必须对原生对象本身进行更改 . 为此,我为模板中的每个开关添加了一个模板引用变量,如下所示: <Switch #switch checked="false"></Switch>... -
0 votesanswersviews
使用IOS静态库问题创建NativeScript插件
我已经创建了.a静态库(在Xcode中测试本机ios项目并且它工作正常)现在我正在关注这个https://github.com/NativeScript/nativescript-plugin-seed使用.a静态框架创建nativescript插件 . 插件结构 module.modulemap 文件是由我创建的,它看起来像这样 module libstaticlibrary { umb... -
-1 votesanswersviews
使用nativescript和node.js(后端)的约会提醒
我是nativescript的新手 . 我想构建一个nativescript IOS应用程序,为约会设置提醒,并在预定日期前一天收到推送通知 . 是否建议使用nativescript中的 setInterval 始终在每个给定时间 e.g: every 10secs 从后端(node.js)请求检查当前日期是否在预定日期之前的1天 . 问题: setInterval 不会't trigger i... -
0 votesanswersviews
使用Angular Nativescript模板将数据绑定到RadListView的正确方法是什么?
Overview 我想在nativescript中创建下面的数据表 经过一些互联网搜索,我发现这可以使用 RadListView 完成 . 所以我找到了Playground和ListView/getting-started Problem 我现在面临的问题是我的 RadListView 没有与数据绑定 . 开发者工具快照: 控制台快照: 输出: What I've tried home.compo... -
0 votesanswersviews
Nativescript:在页面转换过程中显示ActivityIndicator
我正在使用Nativescript Typescript / Angular2 . 我有一个非常繁重的页面加载(它包含一个tabview和一个 Map )所以我想在点击引用页面的routerlink时显示一个ActivityIndicator,并在加载页面时隐藏它 . 我想我可能会利用 Page 类的 load 事件(如上所述here)来实现它,但是在文档中它还不清楚如何在Angular Nati... -
0 votesanswersviews
Nativescript - 禁用滚动视图滚动
首先感谢您对此主题的关注 . 这是我的问题:我在ScrollView布局中有一个Google Map . 在iOS上一切正常,ScrollView滚动并且 Map 完全可用 . 但是在android上,当从 Map 引发触摸事件时,滚动视图的手势事件将首先触发并将解除 Map 之一 . 因此,无法在滚动视图中使用 Map . 为了解决这个问题,我想简单地禁用一个可以处理的scrollview ... -
0 votesanswersviews
如何让* ngFor在Nativescript中使用ObservableArray?
ObservableArray 适用于 <ListView [items]="feedsComments" ,其中 feedsComments 是NativeScript中的 ObservableArray . 但当我用以下内容替换 ListView 时: <StackLayout *ngFor="let item of feedsComments&qu... -
0 votesanswersviews
用于NativeScript的Angular BrowserModule
由于我们使用 BrowserModule 在网络区域中使用 ngModel ,并且在创建新的 ng 应用程序时默认导入,因此在NativeScript中它的等价物是什么? -
1 votesanswersviews
NativeScript Angular 6双向绑定在TextField上不起作用
Introduction NativeScript版本4.2.4 Angular版本6.0 这是我在nativescript上的第一个应用程序 . 我对angular很熟悉,所以我需要选择nativescript over ionic来构建本机混合应用程序 . Scenario 我使用sidekick创建了这个应用程序 . 现在,首先我创建了两个TextField,并使用一些字符串属性绑定它们的文...