找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 13354|回复: 40

[webOS开发] 更新!webOS-SDK-chapter1(EN-CN)中英文对照-1-090218

[复制链接]
发表于 2009-2-18 18:22 | 显示全部楼层 |阅读模式
首发于Hi-Pda,不是不重视这里,主要是因为crazygorilla发的pdf是在hipda上看到的。(实际上我的homepage就是这里)3 R! c) _" ]% ~" d

! }, S2 ], @/ U( \5 v; A# l' N感谢crazygorilla 发出PDF文档!
6 z# O$ y, Z, d/ w) Q. t. D
' p! h. w) k' f感谢14楼CasBoy 提出的那个不该有的错误!
2 U+ f" m' V5 h; ^: E( `6 |6 D3 ^* H- i" z* E6 T( Y( D" P; U
链接:
6 {3 b% Z& c) a
' |. m3 S3 U; B7 V8 H2 |http://www.hi-pda.com/forum/view ... 26amp%3Btypeid%3D64
# ]9 m" W( A$ V* G  \+ W
* {& q+ n9 U6 e' eOverview of webOS( a, H+ l4 W; J) y! ?$ f# ]- Z

  \6 P" }8 g3 I- \/ I总论' `' W- _: L, I
* e( [: X7 e# l+ q

" a* H0 s& {0 q2 Q, D4 p& O& {Palm® webOS™ is Palm's next generation operating system. Designed around an in-credibly fast and beautiful user experience and optimized for the multi-tasking user, webOS integrates the power of a window-based operating system with the simplicity of a browser. Applications are built using standard web technologies and languages, but have access to device-based services and data.% j2 n0 _1 ]9 |/ l0 v

& A7 X7 Z, C) O. \7 b" U5 w5 V6 x: W. ?Palm® webOS™是Palm公司新一代的操作系统。WebOS将窗口操作系统的强大功能和浏览器应用的简便性融合在一起,提供了非常快速并且华丽的用户界面,而且还为多任务操作进行了优化。可以使用任何标准的web技术和语言撰写WebOS的应用程序,同时这并不会影响到WebOS应用程序对设备底层服务和本地数据的访问。
  N& o" w5 [* L$ k; Q' [' c8 Y- y/ F. \1 ]% |$ C8 f* |+ ~; p- }& O/ _
Palm webOS is designed to run on a variety of hardware with different screen sizes, resolutions and orientations, with or without keyboards and works best with a touch-panel though doesn't require one. Because the user interface and application model are built around a web browser, the range of suitable hardware platforms is quite wide, requiring only a CPU, some memory, a wireless data connection, a display, and a means for interacting with the UI and entering text. % q8 s$ W5 H4 C  b/ K0 a
: q7 {* A& [2 F0 x& [! I
Palm webOS能够运行在许多设备上,这些设备在屏幕尺寸、分辨率以及用途上各不相同。Palm webOS支持键盘操作,尽管如此,在配备触摸屏的设备上表现更好。因为Palm webOS的用户界面和应用程序都是基于浏览器应用的,所以,只要硬件设备包含一个cpu、一些内存、支持无线数据连接、有显示设备、并且能够进行文本输入和用户界面操作,那么这个设备就能够使用Palm webOS。7 H: o: c# g, D
8 j; Z1 x: x$ P
You can think of webOS applications as native applications, but built from the same standard HTML, CSS and JavaScript that you'd use to develop web applications. Palm has extended the standard web development environment through a JavaScript frame-work that gives standardized UI widgets, and access to selected device hardware and services.
8 s0 d$ v. w; x! ^' O- o
& q5 R5 Y: h# X0 \. @, w, ]5 C; V尽管Palm webOS应用程序开发基于标准的HTML, CSS and JavaScript(这些语言都是开发web应用程序必备的---注:web应用程序是web应用程序,WebOS应用程序是WebOS应用程序,不是一码事儿),我们仍然可以认为WebOS应用程序就是本地程序。Palm已经通过一套完成的JavaScript frame-work对标准的web开发环境进行了扩展。这套JavaScript frame-work提供了标准化的用户界面组件,并且支持对设备硬件和服务的访问。
2 F& i2 X" O6 w* P; V- [! V+ S; ]: F: R; O. u
The user experience is optimized for launching and managing multiple applications at once. WebOS is designed around multi-tasking, and makes it utterly simple to run background applications, to switch between applications in a single step, and to easily handle interruptions and events without losing context. ! @4 w9 r/ F0 _% s

5 e8 v5 l! R3 q& o, k# E$ Z1 m' z用户可以在WebOS上同时启动并且管理多个应用程序,Palm为此对WebOS进行了专门优化。WebOS的设计初衷就是为了更好地支持多任务,因此WebOS能够很容易地运行后台程序、能够在多个程序间一部切换,而且还能够非常轻松地在不丢失当前输入的情况下处理各种中断和系统事件。
! Q7 ]8 E* D4 h: |- w& B! i7 x, q: e, d7 ]
You will build WebOS applications with common web development tools following typical design and implementation practices for Ajax applications. But your webOS applications are installed and run directly on the device, just as you are used to doing with native applications. 6 R7 ]8 |0 d. N. H8 v8 W/ T& y# a

1 P  l& w* @1 s/ U% q开发人员可以很容易地用常见的web开发工具进行开发,开发方式和开发Ajax应用程序一样。不同的是,WebOS应用程序直接安装并且运行在设备上,这一点和以前的palm应用程序没有任何区别。6 s. |, r) M# Y5 d1 ~

4 {4 q7 a0 }6 {  ?1 W; n
* C$ X: h  d) T* ^+ q& W6 ]( f. I/ M' }Application Model
+ n" c& F9 X! X; ^
$ L0 Q$ v( A5 k; J% f$ P& PAs shown in Figure 1, the original Palm OS has a typical native application model, as do many of the popular mobile operating systems. Under this model the application's data, logic and user interface are integrated within an executable installed on the native operating system, with direct access to the operating system's services and data. 5 m) P; N! ^6 u) }' l. Q; E8 ]

$ l# E& I! f7 K6 u* W如图一所示,最初的PalmOS应用程序和其他流行的移动操作系统一样都是本地程序。在这种情况下,程序的数据、逻辑以及用户界面都被整合在一个可执行应用程序中,然后安装在本地操作系统上,这样能就能够直接访问操作系统服务和数据。) X: ^/ E) d* q7 [

) h3 Q) H" R9 U$ s8 YClassic web applications are basic HTML-based applications that submit an HTTP request to a web server after every user action, and wait for a response before displaying an updated HTML page. More common in recent years are Ajax applications, which handle many user interactions directly and make web server requests asynchronously. As a result, Ajax applications are able to deliver a richer and more responsive user experience. Some of the best examples of this richer experience are the map applica-tions, which enable users to pan and zoom while asynchronously retrieving needed tiles from the web server.
: _7 {" v1 Z- k/ B+ D, q: _4 ]1 M) N; u# \* i* Q5 H
典型的web应用程序使用以HTML为基础的语言进行开发。在每一个用户动作之后,都会向一个web服务器提交HTTP请求,然后等待回应。收到回应之后,以HTML页面的形式对返回结果进行显示。最近几年更常见的是Ajax应用程序。Ajax应用程序能够直接处理用户动作,并且能够以异步的方式向web服务器发出请求。因此,Ajax就能够提供更丰富更快速的用户体验。地图程序就是个好例子。地图程序在持全景以及缩放功能的同时,也能够异步地从web服务器获取所需的数据。
6 E. H2 C# r! ~$ C9 q+ R2 a2 k  f/ p
Ajax applications have some significant advantages over embedded applications. They can be more easily deployed and updated through the same search and access techni-ques used for web pages. Developing web applications is far easier too; the simplicity of the languages and tools, particularly for building connected applications, allows de-velopers and designers to be more productive. Connected applications, or applications that leverage dynamic data or web services, are becoming the predominant form for modern applications.
0 q& N( K( d+ T! w$ H/ U
$ T8 y) M0 B. vAjax应用程序相比于嵌入式程序有很大的优势。普通网页使用搜索访问技术,用同样的技术就能够很轻松地部署、升级Ajax应用程序。同样,开发web应用程序也极其简单:开发语言和开发工具很简单,这就大大提高了开发设计人员的效率,尤其是开发需要数据连接的程序时。因此,实时数据应用程序(Connected applications,不知道翻译的是否准确)以及支持动态数据和web服务的应用程序就成了主流。
+ c# V; G7 b# {6 Z( e$ H1 O+ s. R7 b' U5 Z4 ^* U& P7 w  B
The webOS application model combines the ease of development and maintenance of a web application with the deep integration available to native applications, signifi-cantly advancing the mobile user experience, while keeping application development simple. 2 {+ K) b; e; S0 `
- i( r' ~. l6 A* l: [( u, p$ X1 L
然而,WebOS应用程序,却进一步把web应用程序开发维护的简便性和本地应用程序的整体性结合在一起。极大地改善了移动用户体验,同时又保留了简便易行的开发方式。- A' B% e- v- }) t) Q
8 a# f6 f5 X  \6 f, g4 K0 k
+ L  c! F9 Q: @6 i  B
**********************************- ~. C, G& p" l0 I

0 J2 X1 L9 X0 \( P: ]: lApplication Framework and OS 应用程序构架和OS# Q3 [) {, N9 \4 p! V
) H; s0 ~! j0 K- O, Y
Through Palm's application framework, applications can embed UI widgets with so-phisticated editing, navigation and display features, enabling more sophisticated ap-plication user interfaces. The framework also includes event handling, notification services and a multi-tasking model. Applications can run in the background, managing data, events and services behind the scenes while engaging the user when needed. ) l1 [) J' m# b* g
, }* w4 W# ~* i' c& I1 V! [" F
Palm的应用程序构架在用户界面组件里集成了复杂编辑、导航以及一些显示特性,这样就能够开发出更为复杂的用户界面。这套应用程序构架还包括了事件处理、通知服务、以及多任务支持。应用程序在后台运行的同时能够管理数据、事件以及相关服务,用户需要的时候可以轻易切换到显示界面。
* T9 u5 V' F4 f; [# t* O8 U2 N6 p! ]/ t& @
You can create and manage your own persistent data using HTML5 storage functions, and you can access data from some of webOS's core applications, such as Contacts and Calendar. You also have access to some basic system services, most of which are device-resident, such as Location services and Accelerometer data, along with some cloud services, such as XMPP messaging.
- V1 C( L* n) Q& U  G+ Y4 d8 i+ T. V( T* v% I3 S4 @
用户可以使用HTML5的存储函数对需要保存的数据进行管理,用户还能够访问WebOS核心应用程序的数据,比如联系人和日程的数据。用户也能够访问一些基本的系统服务,比如位置服务(应该和gps或者基站定位有关系)和重力感应器数据(这个应该是说WebOS支持重力感应应用,例如IPhone上的《古惑狼赛车》),这些系统服务都是常驻系统的,内嵌于设备的。除此之外,还支持一些晕服务,比如XMPP消息服务。
3 n' c1 S2 Y$ `3 u  c3 j' Z
/ d# @; p( g3 nArchitecturally, Palm webOS is an embedded Linux operating system that hosts a cus-tom User Interface (UI) System Manager built on standard browser technology. The System Manager provides a full range of system user interface features including: nav-igation, application launching and lifecycle management, event management and no-tifications, system status, local and web searches, and rendering application HTML/ CSS/JavaScript code.
8 K3 F$ e1 ^0 T3 v- K
" e9 D+ {' I  Z: x从整个构架上来说,Palm WebOS是一种嵌入式linux系统。在这个系统上,可以通过标准的浏览器技术构建可定制的用户界面管理器。这套用户界面管理器提供了一整套系统用户界面的特性,包括:导航、应用程序启动和终止、事件管理和消息通知、系统状态、本地以及web搜索、渲染解释应用程序的HTML/ CSS/JavaScript代码。5 ?* c( Q" F3 N0 ]. n: d# S& ?
6 @- R2 d8 u" H. ]+ ]  |5 W( n
You don't need to build a webOS application to make your web content accessible to webOS devices. Palm webOS has a separate browser application to handle standard web pages, and browser-based web applications. While it's expected that more and more web content and services will be delivered as webOS applications, there are mil-lions of legacy websites and information that will continue to be presented in ways best viewed with a classic web browser. Palm webOS supports traditional web content very competitively.
& y1 ^+ y+ \. h
" G1 f/ V/ }: W0 [7 h7 I用户不需要专门编写一个WebOS应用程序来浏览web内容。Palm WebOS提供了一个单独的浏览器来对web内容和基于浏览器的web应用程序进行处理。尽管我们预计日后会有越来越多的web内容以WebOS应用程序的形式出现,我们仍然需要认识到,网上还有相当多的信息和网站采用老式代码和构架,对这些信息和站点的浏览而言,传统的浏览器仍然是最好的选择。但是,Palm WebOS对传统内容的支持非常有竞争力。' f3 w+ @% }$ F; n
7 }+ e% i3 x  T! S+ C
Beyond the operating system, webOS includes a number of core applications: contacts, calendar, tasks, memos, phone, browser, email and messaging. Other applications are included in the initial release, such as a camera, photo viewer, audio/video player and map application, but the full application suite for a given webOS device will vary depending on the model and carrier configuration.   k: f9 t7 _6 q+ i/ K! T
; d! E9 \% i* E
除了基础的操作系统,WebOS还包括一整套核心应用程序:联系人、日程表、任务表、记事本、电话功能、浏览器、电子邮件以及短信。在最初发布的版本中,WebOS还会提供额外的应用程序,比如照相机、照片浏览器、音视频播放器以及地图程序。但是,因为具体的硬件配置以及运营商要求不同,特定的WebOS设备包含的应用程序也不尽相同。
0 U$ Y6 A6 m& {$ A( [; Z* G: J: w( {& q9 w4 Y

5 @  i  T2 e, |" {$ Y8 m4 DUser Interface 用户界面. `4 {/ P; [( c: z$ J5 ]
: }/ Y2 u- e. x( D1 M3 }' Q
Palm webOS is designed for mobile, battery-operated devices with limited though var-iable screen sizes, and a touch-driven user interface. User interaction is centered on one application at a time, though applications, once launched, continue to run until closed even when moved out of the foreground view. There is a rich notification system ena-bling applications to subtly inform or directly engage the user, at the application's discretion.   w& A% i% R0 j5 M* g, o

1 O2 f0 c. P- k# {Palm webOS主要应用于手持的、由电池供电的、配备了触摸屏的设备。尽管这些设备的屏幕尺寸不同,但是都有一定限制。每次只能允许一个应用程序显示在屏幕中央,但是其他应用程序一旦启动,就会一直运行(即便没有被显示在屏幕中央位置)直到被关闭。Palm webOS提供了丰富的通知功能,能够使得用户在使用当前程序的同时不会遗漏其他程序的通知。其他程序的通知可能是气泡式的,也能够直接切换到屏幕的中心位置。. [2 s7 k* e4 k3 I9 o+ Q- u
) B3 e. V" G0 K+ n: I
Navigation 导航1 L+ h  R' r& c7 h& m

9 U  h" e& u3 l  FNavigation is based upon a few simple gestures with optional extensions that create a rich vocabulary of commands to drive powerful navigation and editing features. To start with though, all you need to know is:
; u1 ^+ u3 y# Y" v5 P
' n' S+ L$ B1 \5 }* y& ]( `- b一些简单的手势操作就能够完成导航功能。这些手势操作还有一些可选的扩展功能。这样就能够用一套丰富的指令进行导航和编辑。一开始,用户需要掌握下一基本操作:1 e) ^7 b2 ^2 Q. I* q9 w# N

* D% e8 F/ T% }4 e9 d• tap (act on the indicated object). Commonly in a view that contains clusters or lists of items, tapping reveals information contained in an item. This can be thought of as an open function, which changes the nature or context of the view to be about the selected item exclusively. Alternately, a tap will change an object's state such as setting a checkbox or selecting an object. 2 H1 u6 o+ q9 P# S5 G

' p/ _6 K. f1 K3 ~Tap(对图标对象起作用):在包含了一系列图标的界面中使用这个动作,tap可以被用来启动应用程序。另外tap还能够改变当前应用程序的视图,还能够用于选择一个对象或是选中checkbox
. o% M, F; H1 n- e7 D; r·     back (the inverse of open). This feature looks like the opposite of a tap: the item compresses down to its summary in the containing context where it belongs. Typ-ically, it reverses a view transition, as going from a child view to a parent view. + |1 C% y5 U" s. M
0 L* g& z2 C% l8 ]5 q) k6 e. d
   Back(open的逆操作):实际上是tap的逆操作,被启动的程序会回到任务栏中(这里summary我暂时理解为类似于windows的任务栏),并且整个显示退回到程序启动前的界面。
- i3 I& d4 _$ S; M6 X3 w7 k& y) |2 n+ l% a/ w" S$ F
       ·     scroll (flick and quick drags are used to scroll through lists and other views.
+ \& }5 z' }6 V+ I# G* M  T
6 V$ I. P- ~9 \3 f9 T! i9 R     Scroll:滚动,用于在不同的列表和视图中进行切换。
& J2 z0 A8 p; Q  |; r; W4 S. ]
Beyond this, you can learn to pan, zoom, drag & drop, switch applications, switch views, search, filter lists and launch applications. But to begin with, only these three gestures are needed to use a webOS device. " m: R. f% Y$ m6 b* A; a  e
会了以上这些手势,用户就能进一步掌握pan(移动以获得全景)、缩放、拖放、切换程序、切换视图、搜索、过滤列表以及启动应用程序。但是一开始,只需要掌握这三个动作就能够使用WebOS设备。
+ p2 B0 i  q6 b- w8 g3 ~1 f
* c8 F$ f% o4 G5 {6 A/ aLauncher 启动器
4 B6 ?3 R& ]. N; p$ M1 n* z# ?2 u, e2 F" c# v
When you turn on a webOS device, the screen displays the selected wallpaper image with the status bar across the top of the screen and, hovering near the bottom, the Quick Launch bar. The Quick Launch bar is used to start up favorite applications or to bring up the Launcher for access to all applications on the device. From this view, a search can be initiated simply by typing the search string; searches can be performed on contacts, installed applications, or to start a web search. Figure 2 shows both the Quick Launch bar and the Launcher.
5 N1 [8 w; l" q, I8 U8 K/ q; P2 I. H( s: C- v; k  r$ b
当用户打开一个WebOS设备时,屏幕上会显示壁纸,屏幕顶部会显示状态栏,同时在屏幕底部漂浮着一个Quick Launch bar。Quick Launch bar用来启动最常用的应用程序,也能够切换出胖子们都很熟悉的Launcher界面以便于看到设备上所有的应用程序。在Launcher界面里,单击“搜索string”(抱歉,没看到真机,不知道这个search string是什么东西)就能够在联系人以及其他应用程序里进行搜索,还能够用这种方式进行web搜索。图2所示即为Quick Launch bar 和 Launcher。
4 {0 `0 h1 A/ R: b" ]/ {9 S6 w9 _/ O3 s1 c0 u6 f+ _
The launched application takes over the available screen becoming the foreground ap-plication; the application's view replaces the wallpaper image and the Quick Launch bar is dismissed. The status bar remains and is always visible except for full screen mode, which is available to applications such as the video player, or others that request it. This sequence is fluid and smooth, as you will see with all webOS transitions.
! z) V( b6 Y# t* _8 |4 ~, D2 ~5 G( c+ W! _- N- ^3 c0 S' \: ^
被启动的应用程序接着就会被显示在主要区域;当前应用程序界面替换了壁纸。并且Quick Launch bar也不再显示。除了某些应用程序的全屏显示(比如视频播放器),状态栏一直都位于屏幕顶端。整个过程非常流畅平滑,所有的webOS界面切换都是这样的。. r4 ?/ v2 J/ i- b- b' B
5 f$ w; A- n7 P$ u6 `9 |8 e* }3 g
Card View 卡片式界面
- X9 j4 d; @; ^5 R! |
3 w8 D! O5 y' Q# x, }9 F6 R6 bFigure 3 shows an application's main view, in this case the email application's folder view. The application view includes UI elements that make up the basic email appli-cation, in this case the inbox view displays specific folders, which when selected will open a new card with a detail view of the messages contained within the selected folder. At the bottom, the floating icons that you see are menu items. A tap to the menu icons will typically reveal another view associated with the menu action, a sub-menu or a dialog.
5 r2 o3 S4 p2 `3 }' {' P+ c7 k: {, n3 M/ v$ P7 _
图3显示了邮件程序的主界面。在这个界面里,一些UI组件构成了这个基本的电子邮件程序。其中,收件箱界面显示特定的文件夹,选定这个文件夹时,就会切换到一个新界面,这个界面显示的是当前文件夹里邮件的一些详细内容。这时,在底部漂浮的图标就是菜单按钮。点击这种漂浮图标将会打开菜单、显示子菜单或者打开对话框。
6 w* j/ K$ ]" \But running one application at a time, or performing one activity at a time, can be terribly restrictive, and inefficient. Palm webOS was designed to make it easy to work on more than one thing at a time. Simply pressing the Center button brings up a new view, the Card view , an example of which is shown in Figure 4. From the Card view, you can switch to another activity simply by scrolling to and tapping the card repre-senting the activity. Alternately, you can launch another application from the Quick Launch bar. & m$ W( M! F8 V: ]% M: V

( H8 V4 U: n6 q+ O3 q; p& f" L但是,一次运行一个程序,或者执行一个任务,显然无法发挥WebOS的能力。WebOS设计的初衷就是能够同时运行多个程序,并在这些程序间切换,协调这些程序之间的合作。只需要按一下Center button(中键?)整个界面就会变成卡片式界面,如图四所示。在卡片式界面里,用户可以使用tapping和scrolling手势轻松地切换应用程序和显示界面。或者,也可以直接从Quick Launch bar里启动新的应用程序。) e1 k2 _" l* |, n, T4 L9 [$ r# d
2 |+ O1 L5 C4 C2 M' d' W
The Card view was inspired by the way one handles a deck of cards. Cards can be fanned out to see what card is where. Within a deck of cards, any single card can be selected or removed with a simple gesture, or moved to a new location by slipping it between adjacent cards. The webOS Card view can be manipulated in similar ways by scrolling through the cards, selecting and flicking cards off the top to remove them or selecting and dragging a card to a new location. 5 e9 w1 S2 Q! A3 q! C
) \4 T# G* l. J. G3 b: Z
我们从平时玩纸牌的动作中获得灵感,由此开发了卡片式界面。用户可以摊开卡片,以便于看到哪张卡片在哪里。现实生活中,一副卡片里,用户可以通过简单的动作对卡片进行选择或者移动,也可以把一张卡片放在两个相邻卡片之间。WebOS的卡片界面操作方式与此类似,用户可以在卡片间scrolling、选择并且单击卡片以便于移开、或者选择并且拖拽卡片到一个新的位置。+ c: k. s7 w7 O9 O( V
1 w) u& i9 z# ]5 I2 l8 r3 W, P" N6 r3 J; |
We've introduced the term activity, which needs further explanation. Often by design, you will work on one activity at a time with many applications, but with some appli-cations it is more natural to work on several activities in parallel. A common email activity is writing a new email, but in the middle of writing that email, you may want to return to the inbox to look up some information in another email or perhaps read an urgent mail that has just arrived.
) [% f+ N% R$ X! t; q1 x7 p& I, P( ?! g
尽管前面已经提到activity这个概念,这里仍然有必要对这个概念做进一步的解释。通常,用户能够同时运行很多程序,但是每次只能够执行一个activity,但是在某些情况下,同时进行多个activity更加自然合理。举个例子,一个常见的邮件activity就是写一封新的电子邮件,但是在写这封邮件的时候,用户也许需要返回到收件箱查看其它邮件里的信息,或者正写着当前邮件,又来了一封紧急邮件。
- B* ?$ s1 k5 z. y% X5 Z, B: y  J; `' [: @* \5 }7 c; D5 w6 j
With a webOS device, the draft email has its own card separate from the email inbox card. In fact, you can have as many draft emails, each in their own card, as you need; each is considered a separate activity and independently accessible. Switching between emails is as simple as switching between applications and your data is safe, as it is always saved. Figure 5 shows the Card view with the Email application's inbox card and a draft email compose card.
: j4 Q) W" v  S, [7 x, k& m  F
/ p% `& a! A$ S1 o* q: ^在webOS设备上,邮件程序有独立的草稿卡片。事实上,只要用户需要,就可以同时撰写多个邮件草稿,每个邮件草稿都对应一个卡片。每个卡片都被看作是分别的独立的activity,并且能够分别查看并编辑不同的卡片。在不同的邮件间进行切换与在不同的应用程序间进行切换一样简单。用户不用担心自己的数据会丢失(到底还是有一些palm的精髓----不需要“保存”,就像我以前写过的,“palm就像是一堆用不完的白纸”)。图5显示的就是电子邮件程序的卡片界面。$ _0 t2 M1 u, |, I
: M! b( w, ^; X. r8 j
***************************
9 Z3 c% T' [( g& f: w
8 e( [# m5 p. C4 f今天先到这里,明天继续更新。谢谢关注。
5 q7 j9 Q' u4 R: F* A: U' c* z( W# k3 t/ x5 q. I
[ 本帖最后由 CyberVsQ 于 2009-4-2 01:41 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入我们

×

评分

参与人数 7威望 +169 收起 理由
sky981 + 20 谢谢分享
CyberVsQ + 20 谢谢分享
hinull + 49
KING + 20 谢谢分享
ursace + 30 期待继续更新
zhouxi6868 + 10 谢谢分享
2b6c3d729918489 + 20 谢谢分享..

查看全部评分

回复

使用道具 举报

发表于 2009-2-18 18:41 | 显示全部楼层
欢迎常来.这个东东我们发得比Hi-PDA上要早一些..如果没记错的话,我们抢先了半天比其他的网站先发出的..
6 }6 ^' e7 l9 P- p2 n8 Q* e3 C* r* q) j8 y! h/ z
不过没关系啦..& |4 O! e# b: G
大家都是一家.: T( j  c) _  |1 i; a

/ Z7 \' j! t2 ?尤其跟Hi-PDA.更是不分你我了...这里有很多资料都是从那边整理来的呢
回复 支持 反对

使用道具 举报

发表于 2009-2-18 20:37 | 显示全部楼层
不错,顶一下
回复 支持 反对

使用道具 举报

发表于 2009-2-19 11:17 | 显示全部楼层
哈哈,一进来就有好东西看
回复 支持 反对

使用道具 举报

发表于 2009-2-19 12:32 | 显示全部楼层
楼猪辛苦佬!:)1
回复 支持 反对

使用道具 举报

发表于 2009-2-19 12:34 | 显示全部楼层
学习了.
回复 支持 反对

使用道具 举报

发表于 2009-2-19 16:36 | 显示全部楼层
看到楼主来吹友很高兴哇,昨天还想着要不要把这帖子转来吹友呢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-19 17:40 | 显示全部楼层
Notifications and the Dashboard 事件通知和dashboard% }  c% j$ b/ m9 h3 p
: `4 ]4 C% J, }- K7 w
What happens to the current foreground application when you switch to a new appli-cation? The previous application is not closed but continues to run as a background application. Background applications can get events, read and write data, access services, repaint themselves and are generally not restricted other than to run at a lower priority than the foreground application. 5 Q( c2 W/ Z) U

* V: i* L0 L( Y: d如果用户切换到一个新的程序,在屏幕的主界面上会发生什么?新程序之前的那个程序并没有被关闭,只是转为后台运行。转为后台运行的程序照样可以获得系统事件、读写数据、访问系统服务、改变自己的界面,只不过比当前显示在主界面的程序而言,运行优先级低了一点。( y! o* J) e, H
8 R* c6 S9 s' K: F% n
To enable background applications to communicate with the user, Palm provides a notification system with two types of notifications: 3 G% G& p$ H! J" g* O

9 J  E  O, B: [: e$ Z4 p/ b0 kPalm提供了一个通知系统来帮助用户和后台程序进行沟通,这个通知系统有两种类型的通知:7 g9 v0 l' K( |4 e

0 @/ S7 v; _2 N% h: D, {·     Popup. Non-modal dialogs which are of fixed height and include at least one button to dismiss the dialog & e, m9 M! h5 x" a. Y3 M
·     气泡式通知:一个固定高度的非模式化对话框,包括至少一个关闭按钮。(此概念与模式化对话框modal dialogs相对,指在不关闭当前对话框的情况下仍然可以进行其他任务,而模式化对话框则需要先行关闭当前对话框才能够进行其他的任务。)
7 ]8 z0 J. T+ f; M1 I, K·     Banner. Non-modal icon and single non-styled string of text 9 k" b5 }; q$ B4 Y, b6 S7 C  p
·     横幅式通知:非模式化的图标,外加一行无风格的文本信息(这里non-styled应该是指对字体没有经过色彩或者其他形式的渲染)
+ `7 N3 h. U1 X. ]" K6 J4 tPopup notifications are disruptive, appropriate for incoming phone calls, calendar alarms, navigation notifications and other time sensitive or urgent notifications. Users are forced to take action with pop-ups or explicitly clear them but since they are not modal, users are not required to respond immediately.
* e- n  _" d$ I2 a6 i0 W: p& J" x
气泡式通知具有抢占性。用于来电、日程提醒、导航通知以及其他对时间敏感的或者紧急的通知事件。当出现气泡式通知时,用户必须对气泡式通知采取相关动作,或者直接清除它们。但是,因为气泡式通知是非模式化的通知,所以用户不一定要立即对他们做出回应。
. g& G$ N5 ?. D8 J3 V3 C1 c% K$ l1 }7 E. {! U1 i4 j" V1 z
Banner notifications are displayed in a slow crawl along the bottom of the screen within the Notification bar, which sits just below the application window in what is called negative space since it is outside of the card's window. After being displayed, banner notifications can selectively leave a summary icon in the Notification bar as a reminder to the user. Figure 6 shows an example of a banner notification and the summary icons are shown in Figure 7 indicating that the music player is active and that there is an upcoming calendar event and new messages.
: S/ x+ j2 _6 T- b. o1 E8 o' v2 \' t  n+ t9 E0 U4 B3 T
横幅式通知显示在屏幕底部的Notification bar,并且会缓慢的横向移动(有点像led电子横幅)。Notification bar位置就在应用程序窗口正下方,因为这个位置在卡片窗口之外,所以被称作negative space(导航空间?)。在显示了横幅式通知之后,用户可以选择是否在Notification bar里保留这个横幅式通知的summary icon(概要图标?),以便于随后提醒用户还有未处理的通知。图6显示了一个横幅式通知,图7显示的summary icon(概要图标?)告诉用户后台还运行着一个音乐播放器、有一个即将出现的日程提醒、并且还有一条新短信。
6 h' W( x( ^3 q- s# U- Z- c/ L8 r" C; L
7 H* N* A$ c2 A4 r6 G) \" I
7 Y& p; W$ ]4 BAt any time, the user can tap the Notification bar, which brings up the dashboard, shown in Figure 8. Notifications that are not cleared will display their current status within a dashboard panel. : A1 ?. |9 ?8 y' a
- {. P. X! W% l  [& t0 c! a1 @3 ?
用户可以在任意时间点击Notification bar,随后就会出现dashboard,dashboard里面显示着所有通知事件的详细内容,如图8所示。没有被清空的通知事件将会在dashboard面板里显示他们的当前状态。! V: b( }/ m! r- v* i! f
5 S: p* {+ b1 A  `( [' k
Dashboard panels though are more than just summaries of notifications but are dy-namic views enabling any background application to display ambient information or status. For example, the calendar application always displays the next event on the calendar even before the event notification has been issued. In Figure 8, the Music application shows the current song along with playback controls that you can manipulate to pause the music or change the selection. - a, E1 z0 Y: p% ~) r

- b2 [" W& u0 G+ hDashboard面板不仅仅显示了通知事件的概要,而且还能够动态地显示每个后台程序的当前状态和动态信息。比如,在dashboard里,尽管还没有到指定提醒时间,日历程序仍然会显示下一个日历事件。在图8里,dashboard里的音乐播放器程序就显示了当前正在播放的歌曲名称、专辑名以及一个控制面板,用户可以使用这个控制面板直接控制乐曲的播放或者更换乐曲,完全不需要切换到音乐播放器程序本身。; b3 _# Y9 b" }. }  Z/ L6 T5 d

/ L! T9 m" T; {The Notification Bar and Dashboard manage interruptions and events, keeping you abreast of changes in information without disrupting your current activities. It may help to think of them as an event-driven model for viewing and managing your world, while the Card view provides you with task-oriented navigation tools. The combination gives you a few powerful tools from which you can quickly track and access what you need when you need it.
$ y+ ], v0 Q. K9 ^# z2 X' x
1 \( @9 l, p; |- c$ S$ r& WNotification Bar and Dashboard能够很好地管理系统事件和各种中断,使得用户可以及时掌握信息的变化,却不用停下手头正在干的活儿。如果不好理解,那么可以把这个通知系统看成是一个由事件驱动的系统,而相应的,卡片界面则可以被看作是一个由任务驱动的系统。这两者结合在一起,可以极大的提高用户的工作效率,可以随时获取用户所需要的信息,而又不用停止当前任务。
% ]  l' h& e, x2 B$ h9 L
4 ]! N3 g  e/ x3 P! A$ N0 m4 ]Headless applications are those that can be completely served through the dashboard, as their entire purpose is to monitor and present information. For example, a weather application could display the current weather for a targeted location in a dashboard without having a card view at all. ; M; K8 O# D, m4 x* a4 r$ r: r

! `: h* F* U0 Q% ^Headless applications指的是那些不需要主界面显示,只需要dashboard就能够完全控制的应用程序。因为这种程序的唯一目的就是监控并且显示信息。比如,一个天气预报程序的功能也不过是现实某个指定地点的天气情况,完全不需要占用卡片界面,显示在dashboard就足够了。4 G8 A; J8 z# z6 m" J! b$ A
1 E' W& K( D" T% ^' M4 I; Z
" v! B$ C' L  U

6 @  N/ H6 E1 `4 a& J2 X# o/ bYou will tend to use the Card view to switch between tasks, launch applications and otherwise perform activities. Dashboard is used to monitor your world, to see what's changed or what events have taken place, which will often drive new activities. 8 [; L' k- _$ y5 @8 d) o2 d

" E: U1 s3 t( t  ?# T9 ]# A用户会习惯于使用卡片界面来切换程序、启动程序或者用来执行某些任务。Dashboard则能够像个贴心助手那样帮助用户监控信息变化,看看什么即将发生,或者已经发生了什么,然后再由用户决定是否需要开展新的任务。" l2 j+ k4 Y& u/ p8 X1 C

3 e( J! ]/ x  W# r! F0 R9 ?**********************
3 o4 X/ s) K7 s
: o- l0 T' P; m! m& V. c3 x6 v" D8 X- }& w5 |9 S* g. E
User Interface Principles 用户界面的一些原则+ P$ [5 V, D+ K/ F2 X2 y7 E
4 U0 M6 y9 R2 l  K- y2 {
There are some foundational principles or values that support the overall webOS user experience; application designers can exploit these same principles to more deeply in-tegrate the application into the overall device experience and enhance the user's expe-rience. Developers can rely on the framework to provide most of what is required at an implementation level, but the application design should anticipate these needs. 2 Z6 Q5 W- c2 N0 R

( x0 H# J. X1 ^0 J- [WebOS的用户界面开发需要遵循一些基本的原则。开发人员按照这些原则进行开发将能够吧应用程序的体验和对设备整体的体验全面地结合在一起,使用户察觉不到程序间的差异,以及程序和整个系统之间的差异(PalmOS就遵循这样的原则,每个程序看起来风格都很统一)应用程序的开发可以依赖SDK实现所需功能,但是设计程序的时候一定要考虑到这些基本原则。2 S/ K5 C; |6 d/ u6 j& x
; }3 y/ l6 s" \  ?( L. m
Here are the key principles to keep in mind while designing your application: + S8 j! `6 ^# o

5 ?8 q# n9 w; \4 |下列就是在程序设计阶段,开发人员需要牢记在心的东西:
3 ?( H" F$ g! J/ s·     Physical metaphors are reinforced through direct interaction with application ob-jects and features, instant response to actions, followed by smooth display and object transitions with physics-based scrolling and other movement. For example, objects are deleted by flicking off screen and editing is in place without auxiliary dialogs or scenes. 6 ]2 j9 ~# m; ^4 C5 d+ M+ F
·     要尽量真实,模仿现实情况,秉承palm的一贯特色。通过直接和应用程序对象互动能够增强真实性。程序对动作的反应要足够快,要能够流畅显示操作对象的变化,这些只需要用户做出最自然的动作即可。比如,在屏幕上轻轻拨动就能够删除一些东西,或者不需要繁琐的对话框就能够直接编辑文本。
+ v5 o& B- P8 v( ^·     Maintain a sense of place with repeatable actions, reversible actions, stable object placement and visual transitions taking the user from one place to the next. ! j! ^/ R- {1 Z1 Q& |! \  \
·     要有场景的概念(sense of place),可重复、可逆的操作、程序对象在屏幕上相对固定的位置,以及视觉上的变化都应该能够把用户从一个场景带到另一个场景里。, S. E, R0 L5 b/ |* _- B4 ?
·     Always display up-to-date data, which requires both pushing and pulling the latest data onto the device so that the user is never looking at stale data when more recent data is available. But this also means managing on-device caches so that when the device is out of coverage or otherwise off-line, the user has access to the last data received.
8 u& U( R1 R3 P  \要保证所显示的数据是最新的。这就要求应用程序获取最新的数据,并且及时显示在设备上。这样,用户就能够及时掌握信息变化。但是,这也意味着应用程序要和设备的cache打交道。因为,当设备不在信号区或者离线,用户应当能够获取设备在离线之前收到的最新信息。" y+ E; e; X6 e3 O  L* a
·     Palm webOS is fast and simple to use; all features should be designed for instant response, easy for novices to learn while efficient for experienced users. / {4 h0 |+ H5 y4 v" P
·     Palm WebOS用起来应该很快,但是却很简单。所有的动作都要立即响应。对新手应该是很容易上手的,而对老鸟,则应该是非常高效的。(到底还是有palm的血统)
0 E: a4 u5 E; y& _$ Z( K: C9 y·     Minimize the steps for all common functions; put frequently executed commands on the screen, the next most frequent under the menus. Avoid preferences and settings where possible and where not, keep them minimal.
/ E" p5 y/ d9 H  S·     省去一切不该有的步骤!把最常用的命令直接显示在屏幕上,次之的放在菜单里。尽可能的避免诸如“特性”“设置”之类的菜单,就算需要这一类东西,也要尽量简洁明了。7 v0 p1 e) Z, }( V0 j1 |( m5 g1 k) k
·     Don't block the user; don't use a modal control when the same function can be carried out non-modally.
+ Z2 o' M0 T6 k·     不要妨碍用户!在不需要模式化的地方,就不要用模式化!(比如尽量不要“打开”、“保存”之类的对话框或按钮,还是那句话,palm在手里,就好象一堆用不完的白纸!)* i% ^# X# N9 Z1 q
·     Be consistent; help the user learn new tasks and features by leveraging what they have already learned. - V, b1 I' ?, T" j
·     要保持一致。要利用用户已经掌握的的东西来帮助用户学会新的任务,掌握新的程序特点。 * d! F4 a7 r( Q0 F
Palm applications have always been built around a direct interaction model, where the user touches the screen to select, navigate, and edit. Palm webOS applications have a significantly expanded vocabulary for interaction, but they start at the same place. Your application design should be strongly centered on direct interaction, with clear and distinguishable targets. The platform will provide physical metaphors through display and navigation, but applications need to extend the metaphor with instantaneous re-sponse to user actions, to smoothly transitioning display changes, and object transi-tions.
1 _2 ~. T: P7 V6 o0 U% C1 ~2 {
5 p' }4 I! a5 i1 P! p) XPalm应用程序一直以来都采用直接互动模式。在这种模式下,用户只需要在屏幕上触摸就能够进行选择、导航、编辑等动作。Palm webOS应用程序比起Palm应用程序而言,支持更多的互动方式。但是Palm webOS应用程序的基本操作都一样。开发人员设计程序时,一定要围绕着“直接互动”这一模式,要让用户觉得直观明了。Palm webOS通过自己的导航和显示功能,真实地模拟了实际情况。但是,应用程序则需要在这个基础上进一步提高对用户动作的响应速度,进一步模拟真实情况(要把Palm当成手头上一堆用不完的白纸!不需要打开,不需要保存,更不需要看见某种恶心的沙漏式的东西!)。
, C& q* s& y/ C- f2 l6 U- @  ?; u
6 f% \" o3 J; C2 tYou can find a lot more on the user interface guidelines and design information in the Palm webOS SDK under the Design Guide. We'll touch on the principles and reference standard style guidelines in the next few chapters, but will not be covering this topic in depth. % M1 W) h$ Q( l  z7 T
在Palm WebOS SDK的Design Guide(设计指南)里,开发人员能够找到更多的有关于程序设计和用户界面的信息。在随后的章节里,我们将会进一步介绍这些原则,还会介绍一些标准设计的指导方针,但是,不会谈的太深。

评分

参与人数 1威望 +49 收起 理由
hinull + 49 好人

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2009-2-21 09:10 | 显示全部楼层
此系统很值得期待....应该很不错
回复 支持 反对

使用道具 举报

发表于 2009-2-21 12:32 | 显示全部楼层
我们关心680能不能安装palm webos
回复 支持 反对

使用道具 举报

发表于 2009-2-21 13:14 | 显示全部楼层
lz很勤奋,比那个超版卒厉害多了
回复 支持 反对

使用道具 举报

发表于 2009-2-28 14:54 | 显示全部楼层
谢谢楼主,学习了
回复 支持 反对

使用道具 举报

发表于 2009-3-1 08:34 | 显示全部楼层
期待WCDMA版本的尽快上市啊!:)1
回复 支持 反对

使用道具 举报

发表于 2009-3-3 00:03 | 显示全部楼层
好东西。 收藏了
回复 支持 反对

使用道具 举报

发表于 2009-3-6 17:10 | 显示全部楼层
默默地等待。
回复 支持 反对

使用道具 举报

发表于 2009-3-10 16:25 | 显示全部楼层
翘首以待,望眼欲穿,望断秋水,心急火燎。。。  n( m1 k4 u2 i# A  Q
好像已经到了盼”梨(Pre)三境界了:‘昨夜西风凋碧树。独上高楼,望尽天涯路’;‘衣带渐宽终不悔,为“梨”消得人憔悴。’;‘众里寻“梨”千百度,蓦然回首,那“梨”却在,灯火阑珊处’。
3 J+ T; ~$ f6 c' T1 M. C
5 h# U3 B$ I5 d6 u顺顶楼主辛苦!!!
回复 支持 反对

使用道具 举报

发表于 2009-3-11 21:20 | 显示全部楼层
看介绍,好像我的750都可以进入webos的,不知道是不是真的
回复 支持 反对

使用道具 举报

发表于 2009-3-14 00:15 | 显示全部楼层
不错 学习了 更加期待
回复 支持 反对

使用道具 举报

发表于 2009-3-18 13:40 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2009-4-6 21:04 | 显示全部楼层
顶LZ,如果我有空就去学学怎么开发!
回复 支持 反对

使用道具 举报

发表于 2009-4-13 03:30 | 显示全部楼层
本章完整的翻译在置顶贴,大家移步那边
回复 支持 反对

使用道具 举报

发表于 2009-4-19 18:43 | 显示全部楼层
好东西。
回复 支持 反对

使用道具 举报

发表于 2009-4-21 23:02 | 显示全部楼层
PRE现在多少钱啊。》》》》》??
回复 支持 反对

使用道具 举报

发表于 2009-6-7 00:06 | 显示全部楼层
不错!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

发表于 2009-6-8 11:24 | 显示全部楼层
关注中。。。
回复 支持 反对

使用道具 举报

发表于 2009-6-8 23:30 | 显示全部楼层
好东西阿,新一代OS开发者指南总揽,多谢。
回复 支持 反对

使用道具 举报

发表于 2009-6-9 00:30 | 显示全部楼层
发哪里都是为胖友着想,我们是无所谓了。
回复 支持 反对

使用道具 举报

发表于 2009-7-10 12:38 | 显示全部楼层
nice job......
回复 支持 反对

使用道具 举报

发表于 2009-8-9 15:29 | 显示全部楼层
“吹友吧内部学习使用”挡住了真不爽。。
回复 支持 反对

使用道具 举报

发表于 2009-8-11 21:21 | 显示全部楼层
LZ辛苦了!
回复 支持 反对

使用道具 举报

发表于 2009-8-12 00:09 | 显示全部楼层
楼主辛苦了,我们有福了
回复 支持 反对

使用道具 举报

发表于 2010-4-25 13:19 | 显示全部楼层
楼主辛苦了,只要有你这样的palmer存在,palm会生存下去的。
回复 支持 反对

使用道具 举报

发表于 2010-7-17 23:20 | 显示全部楼层
原汁原味
回复 支持 反对

使用道具 举报

发表于 2010-7-18 12:27 | 显示全部楼层
考虑学习学习,从头
回复 支持 反对

使用道具 举报

发表于 2010-7-19 12:34 | 显示全部楼层
webos是不是基于webkit的?还有就是可否运行gtk或者qt的东西?
回复 支持 反对

使用道具 举报

发表于 2010-8-7 16:05 | 显示全部楼层
此贴一定要顶啊,对新手帮助很多
回复 支持 反对

使用道具 举报

发表于 2010-9-2 21:03 | 显示全部楼层
礼貌回帖`刷积分买机
回复 支持 反对

使用道具 举报

发表于 2010-11-16 14:30 | 显示全部楼层
这可比操作手册好看多了
回复 支持 反对

使用道具 举报

发表于 2010-11-21 12:08 | 显示全部楼层
做个记号 我要学学 待我学会也可以有事不求人了 哈哈哈
回复 支持 反对

使用道具 举报

发表于 2011-6-11 20:28 | 显示全部楼层
想学 !!!!!!!!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-11-5 16:12 , Processed in 0.364943 second(s), 18 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表