Using Remote Views to Add Widget InteractivityApp Widgets inherit the  dịch - Using Remote Views to Add Widget InteractivityApp Widgets inherit the  Việt làm thế nào để nói

Using Remote Views to Add Widget In

Using Remote Views to Add Widget Interactivity
App Widgets inherit the permissions of the processes within which they run, and most home screen apps run with full permissions, making the potential security risks significant. As a result of these security implications, Widget interactivity is carefully controlled.
Widget interaction is generally limited to the following:
Adding a Click Listener to one or more Views
► Changing the UI based on selection changes


Transitioning between Views within a Collection View Widget
(¿yi There is no supported technique for entering text directly into an App Widget. If you need text input from your Widget, best practice is to add a Click Listener to the Widget that displays an Activity that accepts input.
Using a Click Listener
The simplest and most powerful way to add interactivity to your Widget is by adding a Click Listener to its Views. This is done using the setOnClickPendingIntent method on a Remote Views object.
Use this method to specify a Pending Intent that will be fired when the user clicks the specified View, as shown in Listing 14-11.


0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Using Remote Views to Add Widget InteractivityApp Widgets inherit the permissions of the processes within which they run, and most home screen apps run with full permissions, making the potential security risks significant. As a result of these security implications, Widget interactivity is carefully controlled. Widget interaction is generally limited to the following:Adding a Click Listener to one or more Views► Changing the UI based on selection changes Transitioning between Views within a Collection View Widget(¿yi There is no supported technique for entering text directly into an App Widget. If you need text input from your Widget, best practice is to add a Click Listener to the Widget that displays an Activity that accepts input.Using a Click ListenerThe simplest and most powerful way to add interactivity to your Widget is by adding a Click Listener to its Views. This is done using the setOnClickPendingIntent method on a Remote Views object.Use this method to specify a Pending Intent that will be fired when the user clicks the specified View, as shown in Listing 14-11.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Sử dụng từ xa xem để Thêm Widget tương tác
App Widgets kế thừa quyền truy cập của các quy trình trong đó họ chạy, và hầu hết các ứng dụng màn hình chủ chạy với quyền đầy đủ, làm cho rủi ro an ninh tiềm năng đáng kể. Như một kết quả của những tác động an ninh, Widget tương tác được kiểm soát cẩn thận.
Tương tác Widget thường được giới hạn như sau:
Thêm một lý nhấp chuột vào một hoặc nhiều lần xem
► Thay đổi giao diện người dùng dựa trên những thay đổi lựa chọn Chuyển giữa xem trong vòng một Bộ sưu tập Xem Widget (¿ yi không có kỹ thuật hỗ trợ cho việc nhập văn bản trực tiếp vào một widget ứng dụng. Nếu bạn cần nhập văn bản từ widget của bạn, tốt nhất là thêm một lý nhấp chuột vào widget hiển thị một Hoạt động chấp nhận đầu vào. Sử dụng một lý nhấp chuột đơn giản nhất và cách mạnh mẽ nhất để thêm các tương tác vào widget của bạn bằng cách thêm một lý nhấp chuột để xem nó. Điều này được thực hiện bằng cách sử dụng phương pháp setOnClickPendingIntent trên một đối tượng xem từ xa. sử dụng phương pháp này để xác định một ý định chờ sẽ được kích hoạt khi người dùng nhấp chuột định Xem, như thể hiện trong Liệt kê 14-11.









đ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 ©2024 I Love Translation. All reserved.

E-mail: