`
rensanning
  • 浏览: 3518347 次
  • 性别: Icon_minigender_1
  • 来自: 大连
博客专栏
Efef1dba-f7dd-3931-8a61-8e1c76c3e39f
使用Titanium Mo...
浏览量:37579
Bbab2146-6e1d-3c50-acd6-c8bae29e307d
Cordova 3.x入门...
浏览量:604650
C08766e7-8a33-3f9b-9155-654af05c3484
常用Java开源Libra...
浏览量:678516
77063fb3-0ee7-3bfa-9c72-2a0234ebf83e
搭建 CentOS 6 服...
浏览量:87540
E40e5e76-1f3b-398e-b6a6-dc9cfbb38156
Spring Boot 入...
浏览量:400045
Abe39461-b089-344f-99fa-cdfbddea0e18
基于Spring Secu...
浏览量:69129
66a41a70-fdf0-3dc9-aa31-19b7e8b24672
MQTT入门
浏览量:90644
社区版块
存档分类
最新评论
文章列表
视频维度图表
What is QuickTiGame2d? QuickTiGame2d is a 2-dimensional game engine module for Titanium Mobile that provides quick and easy api to create casual 2d games on Titanium. QuickTiGame2d runs much faster on mobile devices because it is based on OpenGL ES: the industry-standard graphics library on embedded ...
微软投入大量精力打造Windows Phone的UI:Metro,在界面,用户体验上确实相当的酷!这里我们介绍通过使用Titanium来实现Metro UI的TiMetro。 最初表示的首页 选择Panel后,将表示一个TableView。转化的动画是相当的酷! 以下是演示的动画!(YouTube的需要FQ) TiMetro DEMO @ YouTube TiMetro的源代码: TiMetro Source
目前版本的Titanium的一个弱点就是不能画图!这回我们说说通过flot在Titanium中画图表。 flot的下载 flot的主页:http://code.google.com/p/flot/ 下载flot-0.7.zip后,把以下文件拷贝到自己的工程中: jquery.flot.js jquery.js flot的测试 作成以下flot测试用的plot_window.js: var win = Ti.UI.currentWindow; var webView = Ti.UI.createWebView({ url: 'plot.html' }); win.add( ...
在JavaScript中定义函数有三种方法: Function Declaration 定义式 Function Expression 匿名式 Function Constructor 构造函数式 // Function Declaration function testFunc() { return void(0); } // Function Expression var testFunc = function() { return void(0); }; // Function Constructor var testFunc = n ...
使用Titanium中开发的应用的速度在某种程度上不是很理想,为了提高应用的速度有很多方法,今天说说使用JSONDB来代替默认的SQLite来让你的应用提速100倍!!! 关于JSONDB的Module参考一下官方Blog: » JSONDB – NoSQL DB for your mobile apps! « Appcelerator Developer Center JSONDB的Module通过Open Mobile Marketplace可以下载,收费的$14.99 » JSONDB by IRL Gaming Pty Ltd | Appcelerator ■如何使用 Refere ...
获取Gesture : 首先不是直接的取得加速度传感器的值,而是通过获取Gesture之后进行操作。 当我们握紧iPhone设备,左右稍微摇晃手机,运行中的应用处理就会停止。像这样的应用有很多。在标准的MMS等应用里,写信息的过程中,摇晃手机后,就会调用Gesture弹出来是否取消编辑信息的确认对话框。 我们也试着将这个功能编写到Twitter的客户端中去。在message_window.js中追加以下代码。 Titanium.Gesture.addEventListener( 'shake', function(){ var alertDial ...
使用照相机 在前一篇我们说了一下iPhone中的几个功能,GPS和地图的表示,这篇我们将说说照相机的使用。能够从已经照好的照片中选择照片,而且选择的方式通过Option Dialog罗列,然后将照片发布到TwitPic。 ImageView的准备 要能够预览选择的照片,我们需要准备表示照片的View。这部分和前一篇中的表示地图部分是一样的。 我们在前一篇中作成的message_window.js中追加一下代码: var imageView = Titanium.UI.createImageView( { width: 'auto', h ...
虽然Titanium里已有实现多语言的API可以非常方便地实现多语言国际化的功能,但其有一定的局限性,即不能在app里随时更换不同的语言,一定要直接更改整个手机里的语言设置才可生效,具体使用可以查看官方教程。 我这里介绍 ...
用户拍照上传图片,或者在相册里选取图片上传,iPhone原则上一张拍照的图片应该都会超过1M多,所以这上传及费流量又费时间。那么如何在Titanium中将图片压缩到指定大小。 这里我们给出一个裁剪或压缩图片的方法。根据应用所需的大小,设定Width和Height. Titanium.Media.openPhotoGallery({ success:function(event) { var image = event.media; Ti.API.info(image.height +' x '+ image.width); ...
ForgedUI is a visual design tool that allows Titanium Studio developers to quickly and easily design and develop app interfaces for iPhone and Android platforms. Developers have continued to choose the popular Titanium Studio development tool to develop mobile apps because of the low-learning curv ...
【原文】Handling Device Orientation Run-time Device Orientation Detection You can detect the current device orientation by checking value of the Ti.UI.orientation property. This value will match one of the orientation constants defined under the Ti.UI namespace: Ti.UI.PORTRAIT Ti.UI.UPSIDE_PORTRAIT Ti ...
在iPhone中,图片的缩放,移动,旋转以及Pinch Gesture功能在Titanium Mobile中并不支持这样Gesture。这里有人做了一个Module来实现这个功能。(只限于iOS) Gesture-Recognizer 在view中将rotateGesture、pinchGesture设置为true后,就能处理rotate,pinch的事件了。 Gesture完成后,将触发rotateend、pinchend事件。 代码大概是下边这样: var window = Ti.UI.createWindow({ orientationModes:[ ...
介绍在Titanium中,将WebView中通过canvas绘制的图像保存为文件的方法。 用户通过canvas所绘制的图像,在很多时候需要保存为文件。如何将WebView的canvas数据传递给Titanium有2个方法。 1.在html文件中(包含canvas标签的html文件)通过JavaScript(Titanium.App.fireEvent)通信将canvas的数据作为该事件的参数传递过去。 2.在Titanium的JS中只用WebView的evalJS方法,调用html文件中能够返回绘制的canvas图像数据的JavaScript。 第一种方法以前提到过了。这里我们说说第2中 ...
由于Titanium对Android的支持还不是很好,很多功能Titanium自身没有提供,当我们需要这些功能的时候,就不得不创建Module来实现。Titanium还提供了一种不用创建Module,直接把你的Android代码导入的功能。这样一来,对于一些使用Titanium比较难实现的页面,就可以用原生的Android开发,然后导入到Titanium工程中。 (1)按照以下结构把Android代码放入Titanium工程下。需要特别注意的是:R.java文件也需要Copy过来。 platform\android\res         drawable         layout   ...
Global site tag (gtag.js) - Google Analytics