Invading the Home ScreenWHAT’S IN THIS CHAPTER? ^ Creating home screen dịch - Invading the Home ScreenWHAT’S IN THIS CHAPTER? ^ Creating home screen Việt làm thế nào để nói

Invading the Home ScreenWHAT’S IN T

Invading the Home Screen
WHAT’S IN THIS CHAPTER?
^ Creating home screen Widgets
^ Creating collection-based home screen Widgets
^ Using Content Providers to populate Widgets
> Surfacing search results to the Quick Search Box
> Creating Live Wallpaper
Widgets, Live Wallpaper, and the Quick Search Box (QSB) let you populate a piece of the user’s home screen, providing either a window to your application or a stand-alone source of information directly on the home screen. They’re exciting innovations for users and developers:
^ Users get instant access to interesting information without needing to open an application.
^ Developers get an entry point to their applications directly from the home screen.
A useful home screen Widget or Live Wallpaper increases user engagement, decreasing the
chance that an application will be uninstalled and increasing the likelihood of its being used. With such power comes responsibility. Widgets run constantly as subprocesses of the home screen, so you need to be particularly careful when creating them to ensure they remain responsive and don’t drain system resources.
This chapter demonstrates how to create and use App Widgets and Live Wallpaper, detailing what they are, how to use them, and some techniques for incorporating interactivity into these application components. The chapter also describes how to surface search results from your application through the QSB.
INTRODUCING HOME SCREEN WIDGETS
Home screen Widgets, more properly AppWidgets, are visual application components that can be added to other applications. The most notable example is the default Android home screen, where users can add Widgets to their phone-top. This functionality is typically implemented by alternative home screen replacements, although any application can become an AppHost and support embed¬ding third-party Widgets.
Widgets enable your application to populate a piece of interactive screen real estate, and embed an entry point, directly on the user’s home screen. A good App Widget provides useful, concise, and timely information with a minimal resource cost.
Widgets can be either stand-alone applications (such as the native clock) or compact but highly vis¬ible components of larger applications — such as the Calendar and Media Player Apps Widgets.
Figure 14-1 shows five of the standard home screen Widgets available on Android devices: the Quick Search Box, Power Control, News & Weather, Media Player, and the Photo Gallery.

FIGURE 14-1

To add an App Widget to the home screen prior to Android 3.0, long-press a piece of empty space and select Widgets. You will be presented with a list of available Widgets to add to your home screen.
In Android 3.0 and above, App Widgets are added using the application launcher. Clicking the “Widgets” tab at the top of the launcher tray presents the list of available Widgets. Click
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Invading the Home ScreenWHAT’S IN THIS CHAPTER? ^ Creating home screen Widgets^ Creating collection-based home screen Widgets^ Using Content Providers to populate Widgets> Surfacing search results to the Quick Search Box> Creating Live WallpaperWidgets, Live Wallpaper, and the Quick Search Box (QSB) let you populate a piece of the user’s home screen, providing either a window to your application or a stand-alone source of information directly on the home screen. They’re exciting innovations for users and developers:^ Users get instant access to interesting information without needing to open an application.^ Developers get an entry point to their applications directly from the home screen.A useful home screen Widget or Live Wallpaper increases user engagement, decreasing thechance that an application will be uninstalled and increasing the likelihood of its being used. With such power comes responsibility. Widgets run constantly as subprocesses of the home screen, so you need to be particularly careful when creating them to ensure they remain responsive and don’t drain system resources.This chapter demonstrates how to create and use App Widgets and Live Wallpaper, detailing what they are, how to use them, and some techniques for incorporating interactivity into these application components. The chapter also describes how to surface search results from your application through the QSB. INTRODUCING HOME SCREEN WIDGETSHome screen Widgets, more properly AppWidgets, are visual application components that can be added to other applications. The most notable example is the default Android home screen, where users can add Widgets to their phone-top. This functionality is typically implemented by alternative home screen replacements, although any application can become an AppHost and support embed¬ding third-party Widgets.Widgets enable your application to populate a piece of interactive screen real estate, and embed an entry point, directly on the user’s home screen. A good App Widget provides useful, concise, and timely information with a minimal resource cost.Widgets can be either stand-alone applications (such as the native clock) or compact but highly vis¬ible components of larger applications — such as the Calendar and Media Player Apps Widgets.Figure 14-1 shows five of the standard home screen Widgets available on Android devices: the Quick Search Box, Power Control, News & Weather, Media Player, and the Photo Gallery. FIGURE 14-1To add an App Widget to the home screen prior to Android 3.0, long-press a piece of empty space and select Widgets. You will be presented with a list of available Widgets to add to your home screen.In Android 3.0 and above, App Widgets are added using the application launcher. Clicking the “Widgets” tab at the top of the launcher tray presents the list of available Widgets. Click
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Xâm nhập Home Screen
GÌ TRÊN CHƯƠNG NÀY?
^ Tạo Widget màn hình chủ
^ Tạo Widget màn hình chủ dựa trên tập hợp
^ Sử dụng các nhà cung cấp nội dung để cư Widgets
> bề mặt kết quả tìm kiếm vào hộp tìm kiếm nhanh
> Tạo Live Wallpaper
Widgets, Live Wallpaper, và nhanh Search Box (QSB) cho phép bạn cư một mảnh của màn hình chủ của người sử dụng, cung cấp hoặc là một cửa sổ ứng dụng của bạn hoặc một nguồn độc lập của thông tin trực tiếp trên màn hình chủ. Họ là những đổi mới thú vị cho người dùng và các nhà phát triển:
^ Người dùng có thể truy cập nhanh đến thông tin thú vị mà không cần phải mở một ứng dụng.
^ Các nhà phát triển có được một điểm vào các ứng dụng của họ trực tiếp từ màn hình chủ.
Một Widget màn hình chủ có ích hoặc Live Wallpaper tăng người sử dụng tham gia, làm giảm
cơ hội mà một ứng dụng sẽ được gỡ bỏ và tăng khả năng của nó đang được sử dụng. Với sức mạnh như vậy là trách nhiệm. Widgets chạy liên tục như quy trình con của màn hình chủ, do đó bạn cần phải đặc biệt cẩn thận khi tạo ra chúng để đảm bảo họ vẫn đáp ứng và không tiêu hao tài nguyên hệ thống.
Chương này trình bày cách tạo và sử dụng ứng dụng Widget và Live Wallpaper, chi tiết những gì họ là, làm thế nào để sử dụng chúng, và một số kỹ thuật để kết hợp các tương tác vào các thành phần ứng dụng. Chương này cũng mô tả làm thế nào để ra các kết quả tìm kiếm từ các ứng dụng của bạn thông qua QSB.
GIỚI THIỆU CHỦ màn hình Tiện ích
Home Widgets màn hình, đúng hơn AppWidgets, là thành phần ứng dụng hình ảnh có thể được thêm vào các ứng dụng khác. Các ví dụ đáng chú ý nhất là mặc định màn hình chủ Android, nơi người dùng có thể thêm Widgets để họ điện thoại-top. Chức năng này thường được thực hiện bằng cách thay thế màn hình chủ thay thế, mặc dù bất kỳ ứng dụng có thể trở thành một AppHost và hỗ trợ embed¬ding bên thứ ba Widgets.
Widgets cho phép ứng dụng của bạn để cư một mảnh của màn hình bất động sản tương tác, và nhúng một điểm vào, trực tiếp trên màn hình chủ của người dùng. Một ứng dụng Widget tốt cung cấp thông tin hữu ích, súc tích, và kịp thời với một chi phí tài nguyên tối thiểu.
Widgets có thể là độc lập các ứng dụng (chẳng hạn như đồng hồ bản địa) hoặc các thành phần nhỏ gọn nhưng rất vis¬ible của các ứng dụng lớn hơn - như Calendar và . Media Player Apps Widgets
hình 14-1 cho thấy năm người Widgets màn hình nhà tiêu chuẩn có sẵn trên các thiết bị Android. Hộp tìm kiếm nhanh, kiểm soát năng lượng, Tin tức và thời tiết, Media Player, và Phòng trưng bày hình ảnh hÌNH 14-1 Để thêm một ứng dụng widget màn hình chủ trước khi Android 3.0, nhấn lâu một mảnh của không gian trống và chọn Widgets. Bạn sẽ được trình bày với một danh sách có sẵn Widgets để thêm vào màn hình chủ của bạn. Trong Android 3.0 trở lên, App Widgets được thêm vào bằng cách sử dụng khởi chạy ứng dụng. Nhấp vào "Widget" tab ở phía trên cùng của khay launcher trình bày danh sách có sẵn Widgets. Nhấp chuột




đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: