AndroidUI4Web框架

AndroidUI4Web是一个高性能的WebApp框架, 在移动浏览器上有与原生App一致的体验.对Android开发者们来说, 更重要的是:框架移植自Android, 开发方式和API调用与Android开发保持一致, Android们可以低成本快速上手开发.

框架优点

流畅度. 框架使用Web Canvas渲染页面, 能有接近60fps的流畅度.

原生级别体验. 页面过渡动画, 滚动回弹, 点击响应等等细节都是原生级别的体验.

稳定. 所有UI组件都是移植自Android, 组件内部逻辑与原生Android的一致, 稳定度也一致.

易用. 对Android开发者可以超低成本上手开发.

开发者社区. 所有API文档用法和问题等都可以从Android社区找到.

目录:

1. Getting Started

Ready

WebStorm (new version is better)

CLI for AndroidUIX : npm install -g androidui-cli

Create a project

1.Create a empty directory for your project

2.Cd into the directory, run androidui create to create a hello world project in the directory.

3.Open WebStorm and open the directory, your project will looks like :

Created Project

Layout

Layout is same as Android's, files put at res/layout/xxxxx.xml, see the Docs.Layout

The created project's activity_main.xml

android:layout_height="match_parent"

android:layout_width="match_parent">

android:id="textView"

android:text="@string/hello_world"

android:layout_height="wrap_content"

android:layout_width="wrap_content"

android:layout_gravity="center"

android:textSize="20sp" />

JS Code

Use Typescript + ECMAScript6 to write the code.

Files put in the src

directory, the API is same as Android's. see Docs.JSCode

The created project's MainActivity.ts

///

///

module my.app {

import ActionBarActivity = android.app.ActionBarActivity;

import View = android.view.View;

import Bundle = android.os.Bundle;

export class MainActivity extends ActionBarActivity{

protected onCreate(savedInstanceState?:Bundle):void {

super.onCreate(savedInstanceState);

this.setContentView(R.layout.activity_main);

}

}

}

Preview

Right click the index_debug.html

file, choose Open in Browser

to see created project's page.

Open in Browser

Build Project

After you change the layout or modify the code, you should build your project before preview.

Debug Layout

Preview the index_debug.html

file, open the dev dashboard, you can see the position and size of views.

DebugLayout

Debug JS Code

Preview the index_debug.html

file, open the dev dashboard, you can debug the typescript code in browser.

DebugJSCode

Package App

see wiki: Package App

End

See the wiki to know more.

If you found document's mistake, help me to fix it, thank you.

android ui web,AndroidUI4Web:最适合Android开发者的WebApp框架相关推荐

  1. android转 web 开发者,转战 WebApp: 最适合 Android 开发者的 WebApp 框架

    为什么需要转战WebApp开发 随着移动端设备越来越多, 微信应用号即将发布, 越来越多的页面需要被移动浏览器承载, HTML5开发大热, 我们需要掌握Web开发的技能来适应时代变化. 合适的WebA ...

  2. android原生app转成web,转战WebApp: 最适合Android开发者的WebApp框架

    原文出处:林法鑫的博客. ps:原以为又是一篇前端从业者人云亦云的水文,其实是篇干货,文中提到的AndroidUI4Web也是作者开发的. 为什么需要转战WebApp开发 随着移动端设备越来越多, 微 ...

  3. 腾讯 android ui,腾讯开源的Android UI框架——QMUI Android

    各位同学,早上好,我是你们的老朋友D_clock爱吃葱花,前些天忙着发版本,最近也在看各种各样的新知识,有好多东西想写啊啊啊啊啊.嗯,先冷静捋一下,卖个关子.扯回正题,今天继续为大家推荐一个Githu ...

  4. GitHub上受欢迎的Android UI Library-项目开发实战篇:带各类框架链接地址详细解说及使用方法

    这是我列举的下列所有框架github地址:https : //github.com/opendigg/awesome-github-android-ui 抽屉菜单类的框架 MaterialDrawer ...

  5. android ui设计与开发工具,Android用户体验与UI设计

    Android用户体验与UI设计 编辑 锁定 讨论 上传视频 本词条缺少概述图,补充相关内容使词条更完整,还能快速升级,赶紧来编辑吧! 本书是一部介绍Android用户体验.UI设计理念和方法论的作品 ...

  6. android ios web兼容,js与android iOS 交互兼容

    js与android iOS 交互兼容 在Android与js交互方面还是要比iOS方便很多,而UIWebView只暴漏出- (BOOL)webView:(UIWebView *)webView sh ...

  7. Android查看web日志,详解Android WebView监听console错误信息

    根据需求,我们要拿到h5的错误信息,并将error信息进行上报.查询了下Android WebView的API发现了WebChromeClient这个方法可以满足要求: @Override publi ...

  8. android 访问web.py,Appium 测试 Android 时,python 用例调用 Webdriver.remote 后无回应

    大家好!遇到一个问题,希望大家能指点一下.我搭建好了 Appium 测试 Android 应用的测试环境,在运行 Python 编写的测试用例时,发现调用 Webdriver.remote 后,没有任 ...

  9. Android UI设计经验分享,掌握设计技巧,让你的应用独树一帜

    Android UI渲染是指Android应用程序中的用户界面如何被绘制.Android UI渲染很重要,因为渲染过程直接影响应用程序的性能和用户体验. 当用户在Android应用程序中进行交互时,应 ...

最新文章

  1. LeetCode题组:第543题-二叉树的直径
  2. Redis中的Cluster高可用和主从切换原理
  3. SQLite在指定列后面插入字段_个人学习系列 - 防止MySQL重复插入数据
  4. Android之 AudioTrack学习
  5. java打乱一组正序数字,Leetcode︱4.Median of Two Sorted Arrays寻找两个正序数组的中位数.java...
  6. 浅谈渗透测试之前期信息搜集
  7. OneGame V1.0 发布,开源免费页游联运系统
  8. 这二十个问题,可能是你技术人生中已经或即将遭遇的痛点,怎么解?
  9. arduino 中断 串口_【Arduino教程】第一讲:Arduino是什么?
  10. 用HTML和CSS制作简单的静态网页
  11. APP部分漏洞及解决方法
  12. VMware虚拟机win7安装教程
  13. java 像素点 生成图片_黑白图片的两种生成方法
  14. Uva_156 Ananagrams ( map 的应用 )
  15. 计算机桌面怎么全屏显示,如何让电脑显示器屏幕显示全屏
  16. Music Store(音乐商店)简易中文教程
  17. ORA-01109:数据库未打开 解决办法
  18. 希腊字母在数学计算中表示的含义
  19. 华为Smart Link与Monitor Link原理与配置
  20. 如何运行第一个C|C++语言程序

热门文章

  1. AD入门学习—元件库(原理图库)的创建
  2. 洛谷P1149(NOIP2008) 火柴棒等式 (C语言 + 详细注释)
  3. SPA项目开发之首页导航+左侧菜单
  4. Go2Shell 打开设置窗口
  5. oracle事务之oracle读一致性
  6. mysql和vba哪里自学_自学 VBA 到中等水平一般需要多久?
  7. chrome控制台设置网页自动刷新
  8. Unity矩阵乘法的区别
  9. java_猜拳小游戏——流之奥义
  10. 微服务项目--商城管理系统的整合与测试