Sunday, April 15, 2012

[android-developers] Declaring fragments in XML

Hello all,

When adding a fragment to an XML layout file, it seems that one can
use either the class attribute or the android:name attribute to
declare the fragment class, i.e. both :
<fragment class="my.awesome.fragment" /> or <fragment
android:name="my.awesome.fragment" /> seem to work.

Is there any difference between the two? Which attribute should a
fellow prefer: class or android:name?


--
http://www.opgenorth.net

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate