<?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 Layout Trick #2: Include to Reuse</title>
	<atom:link href="http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 09:31:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Henrik</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-4616</link>
		<dc:creator>Henrik</dc:creator>
		<pubDate>Thu, 04 Nov 2010 15:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-4616</guid>
		<description>The include problem has a workaround, see comment #9 at http://code.google.com/p/android/issues/detail?id=2863#c9

In short, you need to specify BOTH layout_width and layout_height if you want to override any layout_* attributes.

Noone seems to want to fix the issue, though...</description>
		<content:encoded><![CDATA[<p>The include problem has a workaround, see comment #9 at <a href="http://code.google.com/p/android/issues/detail?id=2863#c9" rel="nofollow">http://code.google.com/p/android/issues/detail?id=2863#c9</a></p>
<p>In short, you need to specify BOTH layout_width and layout_height if you want to override any layout_* attributes.</p>
<p>Noone seems to want to fix the issue, though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dev</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-4055</link>
		<dc:creator>dev</dc:creator>
		<pubDate>Mon, 23 Aug 2010 22:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-4055</guid>
		<description>layout_margin and other layout_* parameter does not work.</description>
		<content:encoded><![CDATA[<p>layout_margin and other layout_* parameter does not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swinefeaster</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-3954</link>
		<dc:creator>swinefeaster</dc:creator>
		<pubDate>Sun, 08 Aug 2010 16:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-3954</guid>
		<description>if i want to reuse a  definition can i do so using #include? Or do i need to wrap that button in a LinearLayout, which would violate you Trick#3 Optimize section ;)

thanks.</description>
		<content:encoded><![CDATA[<p>if i want to reuse a  definition can i do so using #include? Or do i need to wrap that button in a LinearLayout, which would violate you Trick#3 Optimize section ;)</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jyhsu</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-3948</link>
		<dc:creator>jyhsu</dc:creator>
		<pubDate>Fri, 06 Aug 2010 07:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-3948</guid>
		<description>I also have a similar question. How do you get the correct view in the code with findViewById when you are including a layout for three times? The sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this:


	
	


Do I end up with three TextViews with id firstText, and another three with secondText? Isn&#039;t there an id collision? Then how do I find the secondText TextView in the third included layout with findViewById? What should I input in the findViewById method?</description>
		<content:encoded><![CDATA[<p>I also have a similar question. How do you get the correct view in the code with findViewById when you are including a layout for three times? The sample here is overwriting the layout id, not the id of the views IN this layout. For example, if the workspace_screen.xml looks like this:</p>
<p>Do I end up with three TextViews with id firstText, and another three with secondText? Isn&#8217;t there an id collision? Then how do I find the secondText TextView in the third included layout with findViewById? What should I input in the findViewById method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhoffman</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-3933</link>
		<dc:creator>jhoffman</dc:creator>
		<pubDate>Wed, 28 Jul 2010 21:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-3933</guid>
		<description>I&#039;m having the same issue that Matthias discussed a year ago.

Would it be possible to get some sample code of how to properly set up the ids in values?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same issue that Matthias discussed a year ago.</p>
<p>Would it be possible to get some sample code of how to properly set up the ids in values?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajaykasam</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-3286</link>
		<dc:creator>ajaykasam</dc:creator>
		<pubDate>Fri, 26 Feb 2010 07:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-3286</guid>
		<description>Hi,

 In the above sited example.


    
    
    




How can I enable a scrollbar for the three included workspace screen, to scroll across the three screens.

Thanks and Regards,
Ajay Kasam</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> In the above sited example.</p>
<p>How can I enable a scrollbar for the three included workspace screen, to scroll across the three screens.</p>
<p>Thanks and Regards,<br />
Ajay Kasam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hron84</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-3009</link>
		<dc:creator>hron84</dc:creator>
		<pubDate>Tue, 01 Dec 2009 23:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-3009</guid>
		<description>@Hary Mitchell: Use pastebin.com or pastie.org</description>
		<content:encoded><![CDATA[<p>@Hary Mitchell: Use pastebin.com or pastie.org</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Mitchell</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-2996</link>
		<dc:creator>Harry Mitchell</dc:creator>
		<pubDate>Tue, 24 Nov 2009 00:09:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-2996</guid>
		<description>How do I include formatted xml with my post?</description>
		<content:encoded><![CDATA[<p>How do I include formatted xml with my post?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Mitchell</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-2995</link>
		<dc:creator>Harry Mitchell</dc:creator>
		<pubDate>Mon, 23 Nov 2009 23:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-2995</guid>
		<description>Let&#039;s try this again...

Hello,

I wrote a test app to test this functionality.  The LinearLayout(s) are added but the text on the button is not displayed and the button.  What am I missing?

Here is the LinearLayout with the button:
&lt;code&gt;


    

&lt;/code&gt;

Here is the other included LinearLayout:
&lt;code&gt;


    

&lt;/code&gt;

Here is the LinearLayout that includes the other two:
&lt;code&gt;








&lt;/code&gt;

Thanks,
Harry</description>
		<content:encoded><![CDATA[<p>Let&#8217;s try this again&#8230;</p>
<p>Hello,</p>
<p>I wrote a test app to test this functionality.  The LinearLayout(s) are added but the text on the button is not displayed and the button.  What am I missing?</p>
<p>Here is the LinearLayout with the button:<br />
<code></p>
<p></code></p>
<p>Here is the other included LinearLayout:<br />
<code></p>
<p></code></p>
<p>Here is the LinearLayout that includes the other two:<br />
<code></p>
<p></code></p>
<p>Thanks,<br />
Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Mitchell</title>
		<link>http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/comment-page-1/#comment-2994</link>
		<dc:creator>Harry Mitchell</dc:creator>
		<pubDate>Mon, 23 Nov 2009 23:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.curious-creature.org/?p=608#comment-2994</guid>
		<description>Hello,

I wrote a test app to test this functionality.  The LinearLayout(s) are added but the text on the button is not displayed and the button.  What am I missing?

Here is the LinearLayout with the button:
[code]


    

[/code]

Here is the other included LinearLayout:
[code]


    

[/code]

Here is the LinearLayout that includes the other two:
[code]








[/code]

Thanks,
Harry</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I wrote a test app to test this functionality.  The LinearLayout(s) are added but the text on the button is not displayed and the button.  What am I missing?</p>
<p>Here is the LinearLayout with the button:<br />
[code]</p>
<p>[/code]</p>
<p>Here is the other included LinearLayout:<br />
[code]</p>
<p>[/code]</p>
<p>Here is the LinearLayout that includes the other two:<br />
[code]</p>
<p>[/code]</p>
<p>Thanks,<br />
Harry</p>
]]></content:encoded>
	</item>
</channel>
</rss>

