Widgets - 窗口小部件
Widgets display glanceable views of an app's most important data and functionality.
【翻譯】
小部件顯示應(yīng)用程序最重要的數(shù)據(jù)和功能的可見(jiàn)視圖焕参。
Usage - 用法
Home screen widgets display your app’s new and interesting content in a consolidated form. They link to richer detail within the app.
Users can move and, if supported, resize widgets across their home screen panels.
【翻譯】
主屏幕小部件以合并的形式顯示您應(yīng)用的新內(nèi)容和有趣的內(nèi)容丈氓。他們鏈接到更豐富的細(xì)節(jié)在應(yīng)用程序內(nèi)湃缎。
用戶可以移動(dòng),如果支持尝艘,可以在其主屏幕面板上調(diào)整小部件的大小闯估。
Types of widgets - 窗口小部件的類型
Information widgets - 信息小部件
Information widgets display a few elements of importance to a user and track how that information changes over time, such as weather or sports scores. Tapping the widget launches the associated app into a detail view.
【翻譯】
信息小部件向用戶顯示一些重要的元素顺又,并跟蹤該信息隨時(shí)間的變化缎罢,例如天氣或運(yùn)動(dòng)成績(jī)。點(diǎn)擊小部件將相關(guān)聯(lián)的應(yīng)用程序啟動(dòng)到詳細(xì)視圖饼问。
An information widget
【翻譯】
信息小部件
Collection widgets - 集合小部件
Collection widgets display multiple elements of the same type, such as a collection of articles from a news app. They focus on two interactions:
Browsing a collection
Opening an element’s detail view
Collection widgets can scroll vertically.
【翻譯】
集合小部件顯示同一類型的多個(gè)元素影兽,例如來(lái)自新聞應(yīng)用程序的文章集合。 他們專注于兩個(gè)互動(dòng):
瀏覽集合
打開(kāi)元素的詳細(xì)視圖
集合小部件可以垂直滾動(dòng)莱革。
Collection widgets
【翻譯】
集合小部件
Control widgets - 控件小部件
Control widgets display frequently used functions. These functions may be triggered from the home screen without opening the app. For example, music app widgets allow the user to play, pause, or skip music tracks from outside the music app.
Control widgets may or may not progress to a detail view.
【翻譯】
控件窗口小部件顯示常用功能峻堰。 這些功能可以從主屏幕觸發(fā)而不打開(kāi)應(yīng)用程序。 例如驮吱,音樂(lè)應(yīng)用程序小部件允許用戶從音樂(lè)應(yīng)用程序外部播放茧妒,暫停或跳過(guò)音樂(lè)曲目左冬。
控件窗口小部件可能或可能不會(huì)進(jìn)入詳細(xì)視圖桐筏。
[圖片上傳失敗...(image-9a026a-1552292469493)]
A control widget
【翻譯】
控件窗口小部件
Hybrid widgets - 混合小部件
Many widgets are hybrids that combine elements of the different types above. Center your widget around one of these types and add elements of others as needed.
For example, a music player widget combines a control widget with elements of an information widget. The result keeps the user informed about which track is currently playing.
【翻譯】
許多小部件是混合以上不同類型的元素。 將您的窗口小部件放置在其中一種類型之間拇砰,并根據(jù)需要添加其他元素梅忌。
例如狰腌,音樂(lè)播放器窗口小部件將控制窗口小部件與信息小窗口的元件組合。 結(jié)果保持用戶知道當(dāng)前正在播放哪個(gè)音軌牧氮。
A hybrid widget
【翻譯】
混合小部件
Behavior - 行為
**Navigation - 導(dǎo)航 **
Your widgets should provide navigation links to frequently used areas of your app, including:
Functions that allow the user to create new content, such as a new document or message
Access to the top level of your app
【翻譯】
您的小部件應(yīng)提供指向應(yīng)用常用區(qū)域的導(dǎo)航鏈接琼腔,其中包括:
允許用戶創(chuàng)建新內(nèi)容的功能,例如新文檔或消息
訪問(wèn)應(yīng)用的頂級(jí)
Widget resizing - 小部件調(diào)整大小
Resizing allows users to adjust the height or width of a widget. This allows users to influence the layout of widgets on home panels.
Your app may be completely resizable or constrained to horizontal or vertical size changes.
【翻譯】
調(diào)整大小允許用戶調(diào)整窗口小部件的高度或?qū)挾弱飧稹_@允許用戶影響家用面板上的小部件的布局丹莲。
您的應(yīng)用程式可能完全可調(diào)整大小,或限制為橫向或縱向大小變更尸诽。
A long press and subsequent release sets resizable widgets into resize mode. Users can use the drag handles or the widget corners to set the desired size.
【翻譯】
長(zhǎng)按和后續(xù)發(fā)布將可調(diào)整大小的小部件設(shè)置為調(diào)整大小模式甥材。用戶可以使用拖動(dòng)手柄或小部件角來(lái)設(shè)置所需的大小。
Scrollable widgets - 可滾動(dòng)小部件
List or grid-based collection widgets usually expand or contract the vertical scrolling area. Regardless of the widget's size, the user can still scroll all elements into view.
Determine how much of your app's information should surface. For smaller sizes concentrate on the essential and then add more contextual information as the widget grows.
【翻譯】
列表或基于網(wǎng)格的集合小部件通常會(huì)展開(kāi)或收縮垂直滾動(dòng)區(qū)域性含。無(wú)論小部件的大小洲赵,用戶仍然可以滾動(dòng)所有元素到視圖。
確定應(yīng)用程序的信息應(yīng)顯示多少商蕴。對(duì)于較小的大小集中在必要的叠萍,然后添加更多的上下文信息作為小部件增長(zhǎng)。
Non-scrollable widgets - 不可滾動(dòng)小部件
Information widgets are not scrollable. All content and layout must dynamically fit as sized by the user.
【翻譯】
信息小部件不可滾動(dòng)绪商。所有內(nèi)容和布局必須動(dòng)態(tài)適合用戶的大小苛谷。
Responsive resizing - 響應(yīng)調(diào)整大小
Widgets should accommodate different spacing requirements across devices, including cell number, size, and spacing variations.
【翻譯】
窗口小部件應(yīng)適應(yīng)不同設(shè)備的不同間距要求,包括單元格編號(hào)部宿,大小和間距變化抄腔。
Configuring widgets - 配置小部件
Android widgets display their configuration choices once placed on a home panel.
【翻譯】
Android小部件在放置在主面板上時(shí)會(huì)顯示其配置選項(xiàng)。
Configuration best practices:
Keep configuration light and don't present more than 2-3 configuration elements
Present configuration choices using dialogs, rather than full-screen, to retain the user's context
Once setup, widgets do not typically show a "Setup" or "Configuration" button.
【翻譯】
配置最佳實(shí)踐:
保持配置光理张,并且不超過(guò)2-3個(gè)配置元素
當(dāng)前的配置選擇使用對(duì)話框,而不是全屏绵患,保留用戶的上下文
一旦設(shè)置雾叭,小部件通常不會(huì)顯示“設(shè)置”或“配置”按鈕。