20.11.2016 Views

ANDROID APP

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mapView.addView(tv, mScreenLayoutParams);<br />

การใช้ Google Maps<br />

273<br />

x = 250;<br />

y = 250;<br />

mScreenLayoutParams =<br />

new MapView.LayoutParams(MapView.LayoutParams.WRAP_CONTENT,<br />

MapView.LayoutParams.WRAP_CONTENT,<br />

x,y,<br />

MapView.LayoutParams.BOTTOM_CENTER);<br />

Button clickMe = new Button(this);<br />

clickMe.setText("Click Me");<br />

clickMe.setOnClickListener(new OnClickListener() {<br />

public void onClick(View v) {<br />

tv.setTextColor(Color.RED);<br />

tv.setText("Let’s play");<br />

}<br />

});<br />

}<br />

mapView.addView(clickMe, mScreenLayoutParams);<br />

}<br />

@Override<br />

protected boolean isRouteDisplayed() { return false; }

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!