Display of the map of the German map

Source: Internet
Author: User

Learned a long time of the German navigation map to organize the initial map configuration.

There are two ways to display a map, one of which is to add the following code to the XML layout file

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/72/wKiom1Zn5VzBvULsAAAiU7eoe0U369.png "title=" QQ picture 20151209162432.png "alt=" Wkiom1zn5vzbvulsaaaiu7eoe0u369.png "/>

This addition method must overload the activity life cycle with the following methods: OnCreate (), OnPause (), Onresume (), OnDestroy (), onsaveinstancestate (), activity code as shown below

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/77/71/wKioL1Zn6CniE0XUAABivsTh8mI610.png "title=" QQ picture 20151209163400.png "alt=" Wkiol1zn6cnie0xuaabivsth8mi610.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/77/72/wKiom1Zn58zBPUj6AABGiJy7aB0110.png "title=" QQ picture 20151209163419.png "alt=" Wkiom1zn58zbpuj6aabgijy7ab0110.png "/>



The second method can add the following code to the XML

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/71/wKioL1Zn6KyTN77EAAAm1BTDFSI311.png "title=" QQ picture 20151209163652.png "alt=" Wkiol1zn6kytn77eaaam1btdfsi311.png "/>

Change the inherited class 650) this.width=650 in activity; "src=" http://s3.51cto.com/wyfs02/M00/77/71/ Wkiol1zn6pswmyuwaaapqy3w4mi173.png "title=" qq picture 20151209163757.png "alt=" Wkiol1zn6pswmyuwaaapqy3w4mi173.png "/> For Fragmentactivity, write in the code as follows:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/77/71/wKioL1Zn6XCxuHY5AAAviHxYiYs821.png "title=" QQ picture 20151209163934.png "alt=" Wkiol1zn6xcxuhy5aaavihxyiys821.png "/>

Both methods can display the map, which is convenient for which kind.

Display of the map of the German map

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.