开发者

How to Set Layout like TitleWindow or BackButton on MapView

开发者 https://www.devze.com 2023-02-26 15:48 出处:网络
I have made an application in which I am getting the direction by parse the ready made URL to the Google MapView. Now I want to set the Back Button and the my own header On the top of the layout.

I have made an application in which I am getting the direction by parse the ready made URL to the Google MapView. Now I want to set the Back Button and the my own header On the top of the layout. How could it be possible? Please help me. . . My code is as below:

StringBuffer mapUrl = new StringBuffer();

// onC开发者_StackOverflow社区reate Method

@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    mapUrl.append("http://maps.google.com/maps?");
    mapUrl.append("saddr="+21.22794190505816+","+72.8173828125);
    mapUrl.append("&daddr="+23.039297747769726+","+72.59765);

    System.out.println("MapUrl: "+mapUrl.toString());

    Intent i = new Intent("android.intent.action.VIEW", Uri.parse(mapUrl.toString()));
    startActivity(i);
}

Now how could be possible to set the Back Button and Title on the MapDirection Page.

Please help me. . .


I have already answer this questions please check this

How to Set Layout with Mapview

if you find it as useful please mark it as an answer

Best Regards, Anup

0

精彩评论

暂无评论...
验证码 换一张
取 消