Use of mapfragment in Android Baidu map application

1、 Introduction texturemapfragment: used to display map fragments. 2、 Example 3 -- demo03mapfragment.cs file name: demo02mapfragment.cs introduction: describes the use of maps under the fragment framework. Details: describes how to add a texturemapfragment control under the fragment framework; 1. The effect of running screenshot in x86 simulator is as follows:

2. The design steps are based on the examples in the previous section. You only need to add the following steps. (1) Modifying the layout file Demo02_ Fragment.xml is renamed Demo02_ Fragment.xml. The purpose of this is to facilitate the observation of the layout file corresponding to the example. (2) Add demo03mapfragment.cs and add the file under srcsdkdemos.

(3) Modify mainactivity.cs and add the following code to the demos field definition in the mainactivity.cs file.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>