<?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/"
		>
<channel>
	<title>Comments on: Android Two-Dimensional ScrollView</title>
	<atom:link href="http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/</link>
	<description>Web Sites that Grow Your Business - our blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 23:06:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Matt Clark</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-29193</link>
		<dc:creator>Matt Clark</dc:creator>
		<pubDate>Tue, 17 Jan 2012 14:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-29193</guid>
		<description>Sarath, I&#039;m not sure what to recommend, but my original code is a few years old and probably has been superceded by the Wasikuss reference.  See if the StackOverflow solution mentioned above works for you.  -Matt</description>
		<content:encoded><![CDATA[<p>Sarath, I&#8217;m not sure what to recommend, but my original code is a few years old and probably has been superceded by the Wasikuss reference.  See if the StackOverflow solution mentioned above works for you.  -Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarath</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-29123</link>
		<dc:creator>sarath</dc:creator>
		<pubDate>Tue, 17 Jan 2012 04:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-29123</guid>
		<description>Thanks Matt Clark s,  i have used your code for implementing two dimensional dynamic table with edit texts which looks like a grid.Since my complete activity layout is very heavy.I have used scroll view as the parent of the activity and your custom two-D class for one part.But its working fine for horizontal but not working for the vertical.If I remove the parent scroll view of the activity,its working fine for both dimensions.Could please help in solving this?</description>
		<content:encoded><![CDATA[<p>Thanks Matt Clark s,  i have used your code for implementing two dimensional dynamic table with edit texts which looks like a grid.Since my complete activity layout is very heavy.I have used scroll view as the parent of the activity and your custom two-D class for one part.But its working fine for horizontal but not working for the vertical.If I remove the parent scroll view of the activity,its working fine for both dimensions.Could please help in solving this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wasikuss</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-21430</link>
		<dc:creator>Wasikuss</dc:creator>
		<pubDate>Mon, 07 Nov 2011 10:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-21430</guid>
		<description>simpliest way

http://stackoverflow.com/questions/3866499/two-directional-scroll-view/8035250#8035250

wasikuss</description>
		<content:encoded><![CDATA[<p>simpliest way</p>
<p><a href="http://stackoverflow.com/questions/3866499/two-directional-scroll-view/8035250#8035250" rel="nofollow">http://stackoverflow.com/questions/3866499/two-directional-scroll-view/8035250#8035250</a></p>
<p>wasikuss</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Clark</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-18068</link>
		<dc:creator>Matt Clark</dc:creator>
		<pubDate>Fri, 23 Sep 2011 03:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-18068</guid>
		<description>James, you probably uncovered a bug!  The code is two years old and if the fill_parent works, then perhaps that code is not needed.  Thanks for the feedback and posting. --Matt</description>
		<content:encoded><![CDATA[<p>James, you probably uncovered a bug!  The code is two years old and if the fill_parent works, then perhaps that code is not needed.  Thanks for the feedback and posting. &#8211;Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James McMurray</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-17982</link>
		<dc:creator>James McMurray</dc:creator>
		<pubDate>Wed, 21 Sep 2011 14:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-17982</guid>
		<description>Looks great! I was confused by the fact that it limits horizontal scrolling based on the child layout&#039;s height but not vertical scrolling. I noticed in measureChildWithMargins you use different formulas for height and width.          

final int childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, getPaddingLeft() + getPaddingRight() + lp.leftMargin + lp.rightMargin + widthUsed, lp.width);

final int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.topMargin + lp.bottomMargin, MeasureSpec.UNSPECIFIED);

I changed it to use the same method for getting the width:

final int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.leftMargin + lp.rightMargin, MeasureSpec.UNSPECIFIED);

The scrolling seems to work great in both directions without the need to specify a height or width (i.e. it looks good using fill_parent instead of xxx dip).

I&#039;m curious what the original reason was for using different formulas, since I&#039;d hate to break something with the change.</description>
		<content:encoded><![CDATA[<p>Looks great! I was confused by the fact that it limits horizontal scrolling based on the child layout&#8217;s height but not vertical scrolling. I noticed in measureChildWithMargins you use different formulas for height and width.          </p>
<p>final int childWidthMeasureSpec = getChildMeasureSpec(parentWidthMeasureSpec, getPaddingLeft() + getPaddingRight() + lp.leftMargin + lp.rightMargin + widthUsed, lp.width);</p>
<p>final int childHeightMeasureSpec = MeasureSpec.makeMeasureSpec(lp.topMargin + lp.bottomMargin, MeasureSpec.UNSPECIFIED);</p>
<p>I changed it to use the same method for getting the width:</p>
<p>final int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(lp.leftMargin + lp.rightMargin, MeasureSpec.UNSPECIFIED);</p>
<p>The scrolling seems to work great in both directions without the need to specify a height or width (i.e. it looks good using fill_parent instead of xxx dip).</p>
<p>I&#8217;m curious what the original reason was for using different formulas, since I&#8217;d hate to break something with the change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence D’Oliveiro</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-15006</link>
		<dc:creator>Lawrence D’Oliveiro</dc:creator>
		<pubDate>Mon, 15 Aug 2011 06:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-15006</guid>
		<description>You can cut down the memory usage by only caching a bit beyond the visible part of the view. Then regenerate the cache in a background thread to match to the new scroll position.

Here’s some code for a two-dimensional scroller illustrating this technique:

https://github.com/ldo/view_cache_demo_android</description>
		<content:encoded><![CDATA[<p>You can cut down the memory usage by only caching a bit beyond the visible part of the view. Then regenerate the cache in a background thread to match to the new scroll position.</p>
<p>Here’s some code for a two-dimensional scroller illustrating this technique:</p>
<p><a href="https://github.com/ldo/view_cache_demo_android" rel="nofollow">https://github.com/ldo/view_cache_demo_android</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Brambley</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-14878</link>
		<dc:creator>Rob Brambley</dc:creator>
		<pubDate>Sat, 13 Aug 2011 20:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-14878</guid>
		<description>Thanks so much... this saved me so much time. Awesome post.</description>
		<content:encoded><![CDATA[<p>Thanks so much&#8230; this saved me so much time. Awesome post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HungDL</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-13640</link>
		<dc:creator>HungDL</dc:creator>
		<pubDate>Thu, 28 Jul 2011 00:28:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-13640</guid>
		<description>i add a extends of View class into TwoDScrollView to draw images by canvas. But it cann&#039;t draw anything, onDraw() event is&#039;nt called!

If i use a FrameLayout to add that class, i can draw the images.

How can i use TwoDScrollView for my app?</description>
		<content:encoded><![CDATA[<p>i add a extends of View class into TwoDScrollView to draw images by canvas. But it cann&#8217;t draw anything, onDraw() event is&#8217;nt called!</p>
<p>If i use a FrameLayout to add that class, i can draw the images.</p>
<p>How can i use TwoDScrollView for my app?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nasir</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-13099</link>
		<dc:creator>Nasir</dc:creator>
		<pubDate>Thu, 21 Jul 2011 10:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-13099</guid>
		<description>I got it working.</description>
		<content:encoded><![CDATA[<p>I got it working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nasir</title>
		<link>http://blog.GORGES.us/2010/06/android-two-dimensional-scrollview/comment-page-1/#comment-12977</link>
		<dc:creator>Nasir</dc:creator>
		<pubDate>Wed, 20 Jul 2011 13:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.GORGES.us/?p=240#comment-12977</guid>
		<description>can anyone tell me the steps how to get this TwoDScrollView working. I need horizontal and vertical scrolling for my GUI.</description>
		<content:encoded><![CDATA[<p>can anyone tell me the steps how to get this TwoDScrollView working. I need horizontal and vertical scrolling for my GUI.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

