<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Android Tutorial 2: &#8220;Hit&#8221; testing on a View (MapView)</title>
	<atom:link href="http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/</link>
	<description>Know Anywhere</description>
	<lastBuildDate>Fri, 12 Mar 2010 16:01:21 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-575</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-575</guid>
		<description>wow fast response. That worked, thanks so much!</description>
		<content:encoded><![CDATA[<p>wow fast response. That worked, thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-574</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Wed, 10 Mar 2010 16:16:39 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-574</guid>
		<description>Hi Andrew,

You should use this:

MapLocationViewer mlv = (MapLocationViewer)this.findViewById(R.id.map_location_viewer); 
MapView mp = mlv.getMapView();</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>You should use this:</p>
<p>MapLocationViewer mlv = (MapLocationViewer)this.findViewById(R.id.map_location_viewer);<br />
MapView mp = mlv.getMapView();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-573</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 10 Mar 2010 06:44:04 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-573</guid>
		<description>Your tutorial is amazing. Thanks a lot! I just have one question though.

I noticed you have a getter for the mapview in your MapLocationViewer which looks to be a java layout. Is there a way to call that getter? I&#039;ve tried using 

mv = (MapView)this.findViewById(R.id.map_location_viewer); 

in the MapActivity class but since MapLocationViewer is a linear layout, it throws an error because it&#039;s not a MapView. I mainly wanted to get the MapView so I can move to the user&#039;s current gps location. Thanks!</description>
		<content:encoded><![CDATA[<p>Your tutorial is amazing. Thanks a lot! I just have one question though.</p>
<p>I noticed you have a getter for the mapview in your MapLocationViewer which looks to be a java layout. Is there a way to call that getter? I&#8217;ve tried using </p>
<p>mv = (MapView)this.findViewById(R.id.map_location_viewer); </p>
<p>in the MapActivity class but since MapLocationViewer is a linear layout, it throws an error because it&#8217;s not a MapView. I mainly wanted to get the MapView so I can move to the user&#8217;s current gps location. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandrar</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-402</link>
		<dc:creator>sandrar</dc:creator>
		<pubDate>Thu, 10 Sep 2009 20:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-402</guid>
		<description>Hi! I was surfing and found your blog post... nice! I love your blog.  :) Cheers! Sandra. R.</description>
		<content:encoded><![CDATA[<p>Hi! I was surfing and found your blog post&#8230; nice! I love your blog.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers! Sandra. R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Tseng</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-345</link>
		<dc:creator>Ben Tseng</dc:creator>
		<pubDate>Sat, 06 Jun 2009 02:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-345</guid>
		<description>Thank you very huge!!
I tried to display information windows by onTap()
However,I always failed to remove other windows.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thank you very huge!!<br />
I tried to display information windows by onTap()<br />
However,I always failed to remove other windows.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxJyen</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-322</link>
		<dc:creator>xxJyen</dc:creator>
		<pubDate>Mon, 25 May 2009 04:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-322</guid>
		<description>layout

- com.pocketjourney.view.mapLocationviewer
- com.pocketjourney.view.TransparentPanel //id:xx
--- Button
--- ImageView
--- TextView</description>
		<content:encoded><![CDATA[<p>layout</p>
<p>- com.pocketjourney.view.mapLocationviewer<br />
- com.pocketjourney.view.TransparentPanel //id:xx<br />
&#8212; Button<br />
&#8212; ImageView<br />
&#8212; TextView</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxJyen</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-321</link>
		<dc:creator>xxJyen</dc:creator>
		<pubDate>Mon, 25 May 2009 04:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-321</guid>
		<description>hi, Anthony.

i read the two tutorials again.

tutorial2 teaches me how to draw on the canvas directly when user clicks the overlayitems.

tutorial5 teaches me how to show an anime when user clicks the button.

is that right?

i want to modify the tutorial2. when users clicks the overlayitems, show the info by pop a transparency panel instead of drawing on the canvas.

so first i create a layout like this



 // id:xx



...


second, i try to change the method of displaying info.
in the MapLocationOverlay void draw(Canvas, MapView, Boolean)

// drawMapLocations(canvas, mapView, shadow)
// drawInfoWindow  (canvas, mapView, shadow)
// i try to display some infomation just like tutorail5, so..

TransparentPanel popup= (TransparentPanel)findViewById(R.id.xx); 
...
...
popup.setVisibility(View.VISIBLE);
popup.startAnimation( animShow );
showButton.setEnabled(false);
hideButton.setEnabled(true);

but the code cant pass the compile :(

xxJyen</description>
		<content:encoded><![CDATA[<p>hi, Anthony.</p>
<p>i read the two tutorials again.</p>
<p>tutorial2 teaches me how to draw on the canvas directly when user clicks the overlayitems.</p>
<p>tutorial5 teaches me how to show an anime when user clicks the button.</p>
<p>is that right?</p>
<p>i want to modify the tutorial2. when users clicks the overlayitems, show the info by pop a transparency panel instead of drawing on the canvas.</p>
<p>so first i create a layout like this</p>
<p> // id:xx</p>
<p>&#8230;</p>
<p>second, i try to change the method of displaying info.<br />
in the MapLocationOverlay void draw(Canvas, MapView, Boolean)</p>
<p>// drawMapLocations(canvas, mapView, shadow)<br />
// drawInfoWindow  (canvas, mapView, shadow)<br />
// i try to display some infomation just like tutorail5, so..</p>
<p>TransparentPanel popup= (TransparentPanel)findViewById(R.id.xx);<br />
&#8230;<br />
&#8230;<br />
popup.setVisibility(View.VISIBLE);<br />
popup.startAnimation( animShow );<br />
showButton.setEnabled(false);<br />
hideButton.setEnabled(true);</p>
<p>but the code cant pass the compile <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>xxJyen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-320</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Sun, 24 May 2009 18:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-320</guid>
		<description>Hi xxJyen,

You should reread the two tutorials as all the information is in there.  You don&#039;t need to do anything special with LocationOverlay and LocationViewer other than what&#039;s in the tutorial.  Not sure why you would need the findViewByid method in OverLay.

Anthony</description>
		<content:encoded><![CDATA[<p>Hi xxJyen,</p>
<p>You should reread the two tutorials as all the information is in there.  You don&#8217;t need to do anything special with LocationOverlay and LocationViewer other than what&#8217;s in the tutorial.  Not sure why you would need the findViewByid method in OverLay.</p>
<p>Anthony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xxJyen</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-319</link>
		<dc:creator>xxJyen</dc:creator>
		<pubDate>Sun, 24 May 2009 16:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-319</guid>
		<description>hello!

i want users click the specific location on map and pop it&#039;s information(transparentPanel).

i have tried to modify LocationOverlay and LocationViewer, but i cant get the instance of popup, location_name..etc

becuz the findViewByid method doesnt work in OverLay.
how could I solve this problem</description>
		<content:encoded><![CDATA[<p>hello!</p>
<p>i want users click the specific location on map and pop it&#8217;s information(transparentPanel).</p>
<p>i have tried to modify LocationOverlay and LocationViewer, but i cant get the instance of popup, location_name..etc</p>
<p>becuz the findViewByid method doesnt work in OverLay.<br />
how could I solve this problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/#comment-318</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Sat, 23 May 2009 17:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=8#comment-318</guid>
		<description>Hi xxJyen,

Just display the panel when the user touches the screen. I.e. listen for the onTouchEvent and then display the popup.

Anthony</description>
		<content:encoded><![CDATA[<p>Hi xxJyen,</p>
<p>Just display the panel when the user touches the screen. I.e. listen for the onTouchEvent and then display the popup.</p>
<p>Anthony</p>
]]></content:encoded>
	</item>
</channel>
</rss>
