<?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 #4.2: Passing custom attributes via XML resource files</title>
	<atom:link href="http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/</link>
	<description>Know Anywhere</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:23:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Miguel</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-654</link>
		<dc:creator>Miguel</dc:creator>
		<pubDate>Wed, 02 Jun 2010 10:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-654</guid>
		<description>Changing Resources.StyledAttributes to TypedArray is enough to make it work.

Thanks for the easy-to-follow tutorial!</description>
		<content:encoded><![CDATA[<p>Changing Resources.StyledAttributes to TypedArray is enough to make it work.</p>
<p>Thanks for the easy-to-follow tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Leong</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-621</link>
		<dc:creator>Chris Leong</dc:creator>
		<pubDate>Thu, 22 Apr 2010 06:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-621</guid>
		<description>I was correct about Resources.StyledAttributes, but the second thing I thought was a mistake actually wasn&#039;t. Passing in R.styleable.TextOnlyButton works - I actually mistyped the schema name in the XML. I managed to access android:text (which was in another namespace) by passing in the new int[]{android.R.attr.text}. This made me think that I needed to pass in an array of specific attributes rather than just using R.styleable.MyStyleableDeclaration. Of course, if you want to access attributes that aren&#039;t defined in attrs.xml, then you will have to individually specify them.</description>
		<content:encoded><![CDATA[<p>I was correct about Resources.StyledAttributes, but the second thing I thought was a mistake actually wasn&#8217;t. Passing in R.styleable.TextOnlyButton works &#8211; I actually mistyped the schema name in the XML. I managed to access android:text (which was in another namespace) by passing in the new int[]{android.R.attr.text}. This made me think that I needed to pass in an array of specific attributes rather than just using R.styleable.MyStyleableDeclaration. Of course, if you want to access attributes that aren&#8217;t defined in attrs.xml, then you will have to individually specify them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Biosopher</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-620</link>
		<dc:creator>Biosopher</dc:creator>
		<pubDate>Thu, 22 Apr 2010 05:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-620</guid>
		<description>Thanks Chris,

As you probably noticed, this tutorial is nearly 2 years old so what worked then probably changed.  I&#039;ll have to update this tutorial when I have the chance.

Your advice saves me some research though so much appreciated.

Cheers,
Anthony</description>
		<content:encoded><![CDATA[<p>Thanks Chris,</p>
<p>As you probably noticed, this tutorial is nearly 2 years old so what worked then probably changed.  I&#8217;ll have to update this tutorial when I have the chance.</p>
<p>Your advice saves me some research though so much appreciated.</p>
<p>Cheers,<br />
Anthony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Leong</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-619</link>
		<dc:creator>Chris Leong</dc:creator>
		<pubDate>Thu, 22 Apr 2010 04:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-619</guid>
		<description>Your code isn&#039;t correct:

Resources.StyledAttributes a = getContext().obtainStyledAttributes(attrs,R.styleable.TextOnlyButton);

Returns a TypedArray rather than a Resources.StyledAtttributes. Additionally, you can&#039;t just pass in R.styleable.TextOnlyButton as the numbers will be incorrect. You have to individually select the attributes you want (or call a function to subtract a constant from each value).</description>
		<content:encoded><![CDATA[<p>Your code isn&#8217;t correct:</p>
<p>Resources.StyledAttributes a = getContext().obtainStyledAttributes(attrs,R.styleable.TextOnlyButton);</p>
<p>Returns a TypedArray rather than a Resources.StyledAtttributes. Additionally, you can&#8217;t just pass in R.styleable.TextOnlyButton as the numbers will be incorrect. You have to individually select the attributes you want (or call a function to subtract a constant from each value).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asad</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-412</link>
		<dc:creator>asad</dc:creator>
		<pubDate>Mon, 23 Nov 2009 19:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-412</guid>
		<description>how do i install the andriod over the air ?</description>
		<content:encoded><![CDATA[<p>how do i install the andriod over the air ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jiang</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-398</link>
		<dc:creator>Jiang</dc:creator>
		<pubDate>Tue, 11 Aug 2009 07:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-398</guid>
		<description>Thank you for the tip. I was wondering how I was to use these attributes ;p</description>
		<content:encoded><![CDATA[<p>Thank you for the tip. I was wondering how I was to use these attributes ;p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sushil</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-299</link>
		<dc:creator>Sushil</dc:creator>
		<pubDate>Fri, 10 Apr 2009 06:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-299</guid>
		<description>Hi Hanjo,

How can I use these customized attributes in styles.xml.

I&#039;m getting error &quot;attribute not found&quot;

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Hanjo,</p>
<p>How can I use these customized attributes in styles.xml.</p>
<p>I&#8217;m getting error &#8220;attribute not found&#8221;</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-292</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sat, 21 Mar 2009 16:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-292</guid>
		<description>Thanks for the tutorial.  It has helped me as well.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial.  It has helped me as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bose Pandian</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-270</link>
		<dc:creator>Bose Pandian</dc:creator>
		<pubDate>Thu, 05 Feb 2009 07:52:32 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-270</guid>
		<description>Hello..
Pocket Journey Team..
Thankyou very much for this useful tutorial..
Regards,
Bose.C</description>
		<content:encoded><![CDATA[<p>Hello..<br />
Pocket Journey Team..<br />
Thankyou very much for this useful tutorial..<br />
Regards,<br />
Bose.C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://blog.pocketjourney.com/2008/05/02/android-tutorial-42-passing-custom-variables-via-xml-resource-files/#comment-123</link>
		<dc:creator>siva</dc:creator>
		<pubDate>Sat, 09 Aug 2008 12:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://pocketjourney.wordpress.com/?p=33#comment-123</guid>
		<description>hi 
i am siva
 i have a problem ,can you please help me,
how to pass an xml file as a parameter to class file in command prompt to execute a java class file

like 
  i tried this         &quot; java classfilename inputfilename(.XML file) &quot;</description>
		<content:encoded><![CDATA[<p>hi<br />
i am siva<br />
 i have a problem ,can you please help me,<br />
how to pass an xml file as a parameter to class file in command prompt to execute a java class file</p>
<p>like<br />
  i tried this         &#8221; java classfilename inputfilename(.XML file) &#8220;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
