Thursday, March 21, 2013

[android-developers] Re: Preferred coding style to reference internal Android resources?

Anyone?

On Wednesday, January 11, 2012 3:16:49 PM UTC, Ricardo Amaral wrote:
When referencing internal Android resources in my app (mostly in a parent attribute of a style element, haven't really tested anywhere else) I see different examples:

Option 1)
<style name="NotificationTitle" parent="@android:style/TextAppearance.StatusBar.EventContent.Title" />

Option 2)
<style name="NotificationTitle" parent="android:TextAppearance.StatusBar.EventContent.Title" />

Both work just fine. But I'm wondering, is there a difference between them? Is one preferred over the other?

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate