当前位置: 首页 > 软件库 > 手机/移动开发 > >

nativescript-screens

授权协议 Readme
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 孔宇
操作系统 iOS
开源组织
适用人群 未知
 软件概览

Proof of Concept: Nativescript + Liferay Screens

This is just a proof of concept. It's nothing official in Liferay Inc. If you want to contribute, you can open a pull request and i will review it.

Installation

  • Check your Node.js version with node --version. If you have at least v6, please go to the third step.

  • If you don't have Node.js installed, please run brew update and brew install node@6.

  • To install the Nativescript CLI run npm install -g nativescript.

  • You can verify the installation was successful by running tns in your terminal. You should see something like:

    # NativeScript
    
    ┌─────────┬─────────────────────────────────────────────────────────────────────┐
    │ Usage   │ Synopsis                                                            │
    │ General │ $ tns <Command> [Command Parameters] [--command <Options>]          │
    │ Alias   │ $ nativescript <Command> [Command Parameters] [--command <Options>] │
    └─────────┴─────────────────────────────────────────────────────────────────────┘
    

 

  • Clone this repo in your computer with git clone git@github.com:dgarciasarai/nativescript-screens.git.
  • Move to the repo folder and run tns run android for Android and tns run ios for iOS.
  • 基本概念 supports-screens用于设置屏幕相关,处于Manifest的子标签中。 使您能够指定应用支持的屏幕尺寸,并为比应用支持的最大屏幕还大的屏幕启用屏幕兼容性模式。请务必始终在应用中使用此元素指定应用支持的屏幕尺寸。 注意:建议不要在屏幕兼容性模式下运行应用,因为它会因缩放而导致界面中出现像素化和模糊。让应用在大屏幕上正常运行的正确方法是遵循屏幕兼容性概览中的说明,并为不同尺寸的屏

 相关资料
  • NativeScript 可以使用 Javascript,CSS, XML 创建真正的 Native 跨平台应用,支持 iOS Android,NativeScript 将您的跨平台代码翻译成目标平台的代码。 UI 使用 XML 描述,CSS 样式,在编译时将 UI 转化成本地原生代码,最终得到正在的 Native 原生应用。 Telerik 公开了用于创建安卓、iOS和Windows Unive

  • NativeScript Command-Line Interface The NativeScript CLI lets you create, build, and deploy NativeScript-based apps on iOS and Android devices. Get it using: npm install -g nativescript What is Native

  • NativeScript-Snackbar �� �� �� NativeScript plugin for Material Design SnackBar component. Installation: NativeScript 7+:tns plugin add @nstudio/nativescript-snackbar NativeScript version prior to 7:t

  • Nativescript-Ripple This plugin aims to bring a native (or close to native) ripple implementation on Android and iOS. The android version uses a RippleDrawable and conserves the previous background, a

  • NativeScript-FloatingActionButton NativeScript plugin for Material Design Floating Action Button UI component. Installation Nativescript 7+: ns plugin add @nstudio/nativescript-floatingactionbutton Na

  • NativeScript CardView A NativeScript plugin to provide an XML widget to implement the Material Design CardView component. Installation NativeScript 7+: ns plugin add @nstudio/nativescript-cardview Nat