code snippet PA4AD_Ch13_Mapping/src/MyDynamicItemizedOverlay.javaPinni dịch - code snippet PA4AD_Ch13_Mapping/src/MyDynamicItemizedOverlay.javaPinni Việt làm thế nào để nói

code snippet PA4AD_Ch13_Mapping/src

code snippet PA4AD_Ch13_Mapping/src/MyDynamicItemizedOverlay.java
Pinning Views to the Map and Map Positions
You can pin any View-derived object to a Map View (including layouts and other View Groups), attaching it to either a screen position or a geographical map location.
In the latter case, the View moves to follow its pinned position on the map, effectively acting as an interactive map marker. As a more resource-intensive solution, this is usually reserved for supplying the detail “balloons”often displayed on mashups to provide further detail when a marker is clicked.
You implement both pinning mechanisms by calling addView on the MapView, usually from the onCreate or onRestore methods within the MapActivity containing it. Pass in the View you want to pin and the layout parameters to use.
The MapView.LayoutParams parameters you pass in to addView determine how, and where, the View is added to the map.
To add a new View to the map relative to the screen, specify a new MapView.LayoutParams, including arguments that set the height and width of the View, the x/y screen coordinates to pin to, and the alignment to use for positioning, as shown in Listing 13-20.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
code snippet PA4AD_Ch13_Mapping/src/MyDynamicItemizedOverlay.javaPinning Views to the Map and Map PositionsYou can pin any View-derived object to a Map View (including layouts and other View Groups), attaching it to either a screen position or a geographical map location.In the latter case, the View moves to follow its pinned position on the map, effectively acting as an interactive map marker. As a more resource-intensive solution, this is usually reserved for supplying the detail “balloons”often displayed on mashups to provide further detail when a marker is clicked.You implement both pinning mechanisms by calling addView on the MapView, usually from the onCreate or onRestore methods within the MapActivity containing it. Pass in the View you want to pin and the layout parameters to use.The MapView.LayoutParams parameters you pass in to addView determine how, and where, the View is added to the map.To add a new View to the map relative to the screen, specify a new MapView.LayoutParams, including arguments that set the height and width of the View, the x/y screen coordinates to pin to, and the alignment to use for positioning, as shown in Listing 13-20.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
đoạn mã PA4AD_Ch13_Mapping / src / MyDynamicItemizedOverlay.java
Tìm niên xem vào bản đồ và bản đồ vị trí
Bạn có thể pin bất kỳ Xem có nguồn gốc từ đối tượng đến một bản đồ (bao gồm cả bố trí và Xem nhóm khác), gắn nó vào hoặc là một màn hình vị trí hoặc một vị trí bản đồ địa lý .
Trong trường hợp sau, View di chuyển theo vị trí gắn của nó trên bản đồ, quả là hoạt động như một điểm đánh dấu bản đồ tương tác. Là một giải pháp tài nguyên-chuyên sâu hơn, điều này thường dành riêng để cung cấp các chi tiết "bong bóng" thường được hiển thị trên mashup để cung cấp chi tiết hơn nữa khi một dấu hiệu được nhấp.
Bạn thực hiện cả hai ghim cơ chế bằng cách gọi addView trên MapView, thường là từ onCreate hoặc onRestore phương pháp trong MapActivity chứa nó. Pass trong các Xem bạn muốn ghim và các thông số bố trí sử dụng.
Các MapView.LayoutParams thông số bạn vượt qua để addView xác định như thế nào, và ở đâu, các View được thêm vào bản đồ.
Để thêm một View mới cho bản đồ tương đối so với màn hình, chỉ định một MapView.LayoutParams mới, bao gồm lập luận rằng thiết lập chiều cao và chiều rộng của View, màn hình x / y tọa độ để ghim vào, và sự liên kết để sử dụng cho việc định vị, như trong Liệt kê 13-20.
đ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: